简体   繁体   English

使用贝宝处理定期付款

[英]Handle recurring payments with paypal

I'am having troubles about how to handle the paypal recurrent payment system.我在如何处理贝宝定期付款系统方面遇到了麻烦。

I followed every instruction in the website, but once i create the profile, paypal puts it in pending, making me doubt about the reliability of the service itself.我遵循了网站上的每一条说明,但是一旦我创建了个人资料,paypal 就会将其置于待处理状态,这让我怀疑服务本身的可靠性。

I tried to look over the internet but i didn't really get how this should work...我试图查看互联网,但我并没有真正了解它应该如何工作......

i made the first call with SetExpressCheckout in order to create the request, when the token is returned, i send the token to the paypal page, the user confirms the payment, then i call the CreateRecurringPaymentsProfile method to confirm the operation (passing PAYERID and TOKEN and setting the AMT value for the first payment and the PROFILESTARTDATE as now +1 month for the future payments)我使用SetExpressCheckout进行了第一次调用以创建请求,当返回令牌时,我将令牌发送到SetExpressCheckout宝页面,用户确认付款,然后我调用CreateRecurringPaymentsProfile方法来确认操作(通过PAYERIDTOKEN并将第一笔付款的AMT值和PROFILESTARTDATE为现在 +1 个月以供将来付款)

Now when i try to read the response from the last call (or if i go to the buyer/seller paypal account) i see that the payment is in pending and i have to wait an undefined amount of time before this payment is activated.现在,当我尝试读取上次调用的响应(或者如果我转到买方/卖方的贝宝帐户)时,我看到付款处于待处理状态,我必须等待一段不确定的时间才能激活此付款。

Now the real question is: can i trust the fact that even if the payment is in pending, i'll receive the payment and so i can set set the user as member or i have to check and wait until the status is 'active' with the GetRecurringPaymentsProfileDetails method?现在真正的问题是:我能否相信这样一个事实,即使付款处于待处理状态,我也会收到付款,因此我可以将用户设置为成员,否则我必须检查并等待状态为“活动”使用GetRecurringPaymentsProfileDetails方法?

PS: i'm doing this in the sandbox version, maybe the official version is a bit faster and more reliable? PS:我是在沙盒版做的,也许正式版会更快更可靠一点?

Thank you!谢谢!

In Sandbox as in Live when you call CreateRecurringPaymentsProfile you will also get the response in which it will give you the status of the profile (ActiveProfile or PendingProfile).在 Sandbox 和 Live 中一样,当您调用 CreateRecurringPaymentsProfile 时,您还将获得响应,其中将提供配置文件的状态(ActiveProfile 或 PendingProfile)。 When the status is in Penidng it means that the system is in process of creating the recurring payment profile.当状态为 Penidng 时,表示系统正在创建定期付款配置文件。 You can then check your IPN messages for an update.然后,您可以检查您的 IPN 消息以获取更新。 It is normal but obviously if you notice that all the profiles you create get into Pending and never activate then there could be a bug but should not be the case.这是正常的,但很明显,如果您注意到您创建的所有配置文件都处于待处理状态并且从未激活,那么可能存在错误,但不应该是这种情况。 In here is the PayPal technical guide for this API: https://developer.paypal.com/docs/classic/api/merchant/CreateRecurringPaymentsProfile_API_Operation_NVP/这里是此 API 的 PayPal 技术指南: https : //developer.paypal.com/docs/classic/api/merchant/CreateRecurringPaymentsProfile_API_Operation_NVP/

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

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