星期日, 8月 14, 2016

[Paypal] paypal direct payment 直接使用信用卡付款

測試paypal direct payment api的筆記過程。

Website Payments Pro 解決方案

https://developer.paypal.com/docs/classic/products/website-payments-pro/

在Website Payments Pro這一包的產品下,裡面包含以下的整合技術
Direct Payment, Express Checkout, and additional PayPal solutions and tools — like Virtual Terminal, Fraud Management Filters, and reference transactions.

簡介Website Payments Pro
https://developer.paypal.com/docs/classic/paypal-payments-pro/integration-guide/WPWebsitePaymentsPro/


Direct Payment API 說明

https://developer.paypal.com/docs/classic/api/merchant/DoDirectPayment_API_Operation_NVP/

REST SDK

https://developer.paypal.com/docs/api/rest-sdks/

支援的地區


https://developer.paypal.com/docs/integration/direct/rest-api-payment-country-currency-support/


Direct Credit Card Payments

For direct credit card payments, PayPal accepts buyer credit cards issued in any country. However, the merchant must have a Pro UK merchant account with PayPal to process PayPal REST API direct credit card payments. This is the only supported merchant account for REST API direct credit card payments at this time. UK Pro merchants can refer to supported currencies for details.

https://developer.paypal.com/docs/classic/api/currency_codes/#creditcard


如果不支援的地區則會噴以下的錯誤(回傳格式請參考api)
錯誤代碼10565
錯誤訊息 The merchant country is not supported.

可測試用的信用卡


http://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm

錯誤代碼

https://developer.paypal.com/docs/classic/api/errorcodes/?mark=81100

參考

https://developer.paypal.com/docs/classic/api/merchant/DoDirectPayment_API_Operation_NVP/

https://developer.paypal.com/docs/classic/paypal-payments-pro/integration-guide/WPDPGettingStarted/

http://paypal.github.io/sdk/sample-apps/

https://developer.paypal.com/docs/classic/paypal-payments-pro/integration-guide/WPDirectPayment/

y
https://www.smashingmagazine.com/2011/09/getting-started-with-the-paypal-api/




沒有留言:

張貼留言

留個話吧:)

其他你感興趣的文章

Related Posts with Thumbnails