我的网站的功能是会员订阅 - 每月/每年我想要自动付款(重复)。
我使用过" easyPayPal yii extension"对于我网站上的Paypal付款, 它运行良好的一次付款,但我想在其中添加对定期付款的支持,我不太了解它,因为我是Paypal集成和使用yii的新手。
所以希望有人可以帮助我。 我已经发布了我使用的扩展程序的链接以及我成功支付交易后的Paypal响应。
我使用的扩展链接 http://www.yiiframework.com/extension/easypaypal/
Paypal对交易成功的回应:
/*
Below you can see a sample successfull response of a payment process from paypal
Array
(
[TOKEN] => EC-1AG000796M3683304
[SUCCESSPAGEREDIRECTREQUESTED] => false
[TIMESTAMP] => 2013-12-12T11:57:17Z
[CORRELATIONID] => 89a33a155e512
[ACK] => Success
[VERSION] => 65.1
[BUILD] => 8725992
[TRANSACTIONID] => 7S255873FM437633X
[TRANSACTIONTYPE] => expresscheckout
[PAYMENTTYPE] => instant
[ORDERTIME] => 2013-12-12T11:57:17Z
[AMT] => 1800.00
[FEEAMT] => 52.50
[TAXAMT] => 0.00
[CURRENCYCODE] => USD
[PAYMENTSTATUS] => Completed
[PENDINGREASON] => None
[REASONCODE] => None
[PROTECTIONELIGIBILITY] => Eligible
[INSURANCEOPTIONSELECTED] => false
[SHIPPINGOPTIONISDEFAULT] => false
[PAYMENTINFO_0_TRANSACTIONID] => 7S255873FM437633X
[PAYMENTINFO_0_TRANSACTIONTYPE] => expresscheckout
[PAYMENTINFO_0_PAYMENTTYPE] => instant
[PAYMENTINFO_0_ORDERTIME] => 2013-12-12T11:57:17Z
[PAYMENTINFO_0_AMT] => 1800.00
[PAYMENTINFO_0_FEEAMT] => 52.50
[PAYMENTINFO_0_TAXAMT] => 0.00
[PAYMENTINFO_0_CURRENCYCODE] => USD
[PAYMENTINFO_0_PAYMENTSTATUS] => Completed
[PAYMENTINFO_0_PENDINGREASON] => None
[PAYMENTINFO_0_REASONCODE] => None
[PAYMENTINFO_0_PROTECTIONELIGIBILITY] => Eligible
[PAYMENTINFO_0_PROTECTIONELIGIBILITYTYPE] => ItemNotReceivedEligible,UnauthorizedPaymentEligible
[PAYMENTINFO_0_ERRORCODE] => 0
[PAYMENTINFO_0_ACK] => Success
)
*/
提前感谢:)
答案 0 :(得分:0)
我有类似的问题,您可以查看以下帖子:
How to set mixture of recurring and one time payment in Paypal
Recurring payment IPN request rp_invoice_id field
Recurring payments billing period problems
您可以找到好的REST API API库here。它有很好的文档记录,工作正常。它也支持定期付款。