1

我是 PayPal 集成的新手,需要集成 PayPal 定期订阅。我用谷歌搜索,但我对以下问题感到困惑。

  1. 我应该将哪个 API 用于 PayPal 定期结账、WPS 或 Paypal 快速结账?哪一个会好?
  2. 有什么好的例子或帮助来整合它吗?

提前致谢。

4

1 回答 1

3

Good overview of recurring payments: Handling recurring payments

I'm using the Lionite PHP Paypal class. It's not free, but even if you're not going to use it, read through that page because it contains some useful info that is omitted from the Paypal docs.

If I understand correctly, Express Checkout requires your customer to set up a Paypal account, so Website Payments Standard would be a better option.

Unfortunately the Paypal SDK only has code examples for direct payment. If you want to use Website Payments Pro with Direct Payment, be aware of PCI compliance (which can be expensive and time-consuming) and also be aware that services like BrainTree exist which have transparent redirect, thus helping you to avoid PCI compliance (I haven't used this service however).

Express checkout code example: https://github.com/hrendoh/PayPal-Recurring-Payment-example

Set up your sandbox account at http://developer.paypal.com

Update: IPN for recurring payments is a nightmare. Not only are the recurring payment IPN responses completely undocumented, but none of the support staff I talked to had a clue about them either (in some cases they gave me incorrect answers to questions). Here is a list that others have put together, but all of these resources are incomplete:

https://www.x.com/developers/community/blogs/ppmacole/recurring-payments-ipns?page=1

http://docs.ipn-easy.com/html/T_Rolosoft_IpnEasy_Net_PayPal_TxnType.htm

Unfortunately because of the limits placed on recurring payments with express checkout, direct payment was the only option for me. I strongly suggest that if you need to do direct payment with recurring payments that you find a different payment provider.

于 2012-05-15T17:40:16.267 回答