简体   繁体   English

在Paypal上重复付款的第一笔付款

[英]First payment for reccuring payment on Paypal

I'm currently setting a recurring paypal payment. 我目前正在设置贝宝(Paypal)定期付款。 I'm not sure to understand when the first payment is done. 我不确定何时完成第一笔付款。 In my case, I want to first payment to be done when the user subscribe, and automaticaly renew after 3 month. 就我而言,我希望在用户订阅时先付款,然后在3个月后自动续订。 I'm not sure if the " INITAMT " parameter if the good way to do that. 我不确定“ INITAMT ”参数是否是实现此目的的好方法。

Moreover, when I try to set the parameter " INITAMT " in sandbox, the résulting profile is always " PengindProfile " 此外,当我尝试在沙箱中设置参数“ INITAMT ”时,结果配置文件始终为“ PengindProfile

Here is my parameters : 这是我的参数:

'METHOD' => 'CreateRecurringPaymentsProfile',
'TOKEN' => $token,
'PAYERID' => $payerId,
'USER' => $user,
'SIGNATURE' => $signature,
'PWD' =>$password,
'VERSION' => 74.0,
'PROFILESTARTDATE' => gmdate("Y-m-d\TH:i:s\Z"),
'DESC' => 'My subscription',
'BILLINGPERIOD' => 'Month',
'BILLINGFREQUENCY' => '3',
'AMT' => 10,
'CURRENCYCODE' => 'EUR',
'PAYERID' => XXX,
'MAXFAILEDPAYMENTS' => 3,
'INITAMT' => 10

And a finale question, how does the reccuring Payment works ? 最后一个问题是,后继付款如何运作? Paypal send the money on my account each 3 month ? Paypal每3个月将钱存入我的帐户一次吗? It is possible to get a notification on a PHP serveur to update the subscription status ? 是否可以在PHP服务器上获得通知以更新订阅状态?

Thanks for your help ! 谢谢你的帮助 !

I'd definitely look into using the PayPal PHP SDK instead of trying to use their REST API directly or via some minimal library. 我绝对会考虑使用PayPal PHP SDK,而不是尝试直接或通过一些最小的库使用其REST API。 Their SDK provides much convenience working with the service and has plenty of use-case based examples including recurring billing and subscriptions. 他们的SDK为使用该服务提供了极大的便利,并提供了大量基于用例的示例,包括循环计费和订阅。

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

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