PayPal API定期付款 [英] PayPal API Reccuring payments

查看:191
本文介绍了PayPal API定期付款的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将定期付款添加到我的网站.在注册之前,用户必须先支付10英镑(例如1个月),然后每月9英镑. 我尝试根据[PayPal] [1]创建定期付款. 但是在IPN中,我没有收到响应subscr_signup或其他响应. 当我完成doExpressChechoutPayment之后,我收到了Pending状态. 我必须等待多少时间才能完成授权?我使用沙箱.

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.

推荐答案

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

应该是:

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

授权将保留"交易金额(由PayPal担保最多3天,之后可再使用26天),之后您可以捕获部分或全部授权交易.
为了立即获取资金,请将付款操作设置为出售".
另请参见 PayPal.com:使用授权&捕获

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

这篇关于PayPal API定期付款的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆