PayPal API Reccuring payments

2019-05-11 11:26发布

I need add recurring payments to my site. Before registration user must pay for example 10 GBP for 1 month and thereafter 9 GBP every month. I try to create recurring payment according to [PayPal][1]. But in IPN i am not recieved responce subscr_signup or other. When i completed doExpressChechoutPayment i recieved status Pending. How much time i must wait for authorization is complete? i use sandbox.

1条回答
兄弟一词,经得起流年.
2楼-- · 2019-05-11 12:04
 'PAYMENTREQUEST_0_PAYMENTACTION'=>urlencode('Authorization'),

Should be:

 'PAYMENTREQUEST_0_PAYMENTACTION'=>urlencode('Sale'),

An authorization will 'hold' the transaction amount (guaranteed by PayPal for up to 3 days, afterwards available for another 26 days), after which you can capture a partial or full amount of the authorized transaction.
In order to immediately capture the funds, set the paymentaction to 'Sale'.
See also PayPal.com: Using Authorization & Capture

查看更多
登录 后发表回答