简体   繁体   English

使用Paypal网站付款Pro API进行现场定期付款

[英]Onsite Recurring Payments using Paypal Website Payments Pro API

I want to accept recurring payments on my site using paypal without having the user ever leave my site. 我想使用Paypal接受我的网站上的定期付款,而无需用户离开我的网站。 Based on the paypal documentation it appears you have to send the user offsite to paypal (express checkout) first and then have them come back to your site. 根据Paypal文档,您似乎必须先将用户非现场发送到Paypal(快速结帐),然后让他们回到您的网站。

Is their a different way of using the api so the user stays on site the entire time? 他们使用api的方式不同吗,以便用户始终呆在网站上?

To Process payments not on PayPal's website, you need to use Website Payments Pro. 要处理不在贝宝网站上的付款,您需要使用Website Payments Pro。


To use PayPal's recurring payment system, without programming your own: 要使用贝宝(PayPal)的定期付款系统,而无需自行编程:


Program your own recurring payment functionality: 编写自己的定期付款功能:

  • Save cc info to a database and make DoDirectPayment API calls based on your criteria 将抄送信息保存到数据库,并根据您的条件进行DoDirectPayment API调用
  • Process an initial payment when someone signs up for your recurring service, save the transaction ID, and then call DoReferenceTransaction in the future (based on your criteria). 当有人注册您的定期服务时处理初次付款,保存交易ID,然后在将来(根据您的条件) 致电DoReferenceTransaction Always use the newest transaction ID as they only last a year. 请始终使用最新的交易ID,因为它们只能使用一年。 Also, you need to call PayPal to apply for this feature ($0). 另外,您需要致电PayPal申请此功能($ 0)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM