【发布时间】:2017-02-22 17:12:29
【问题描述】:
我制定了如下的 Paypal 计划,价格为 49 美元:
{
'id': 'P-PAYPAL-ID',
'name': "My Plan",
'description': 'My description of the plan',
'type': 'INFINITE',
'merchant_preferences': {
'auto_bill_amount': 'YES',
"initial_fail_amount_action": "CONTINUE",
"max_fail_attempts": "3",
"return_url": "https://example.com/paypal/response",
"cancel_url": "https://example.com/paypal/response"
},
'payment_definitions': [{
'name': 'Monthly payment',
'type': 'REGULAR',
'frequency': 'MONTH',
'frequency_interval': 1,
'cycles': 0,
'amount': {
'value': '49',
'currency': 'USD'
}
}]
}
我已创建计划并按照documentation here 启用它。
然后我按照以下步骤创建了Billing Agreement:
- 创建结算协议
- 将用户重定向到 Paypal 页面以接受协议
- 从我在1中得到的URL执行协议。
一切正常,在我的沙盒用户帐户中,我可以看到标记为活动的“定期付款详细信息”。
我为我的服务器订阅了 webhook。
我的问题如下:付款没有立即完成?我等了一个小时,还没付钱!
是否有我忘记提出“执行已执行协议”的请求...?
【问题讨论】:
-
查看我对这个问题的回答。 stackoverflow.com/questions/25858816/…
标签: paypal