Mic*_*dze 5 rest paypal recurring-billing
我正在尝试通过立即第一次付款来设置定期付款。
例如,您在我的网站上以 10 美元的价格购买了一些月度订阅。我立即先收取 10 美元,然后继续每月收取 10 美元。
我的问题是我无法设置第一次立即付款。
我使用 REST API:
https://developer.paypal.com/docs/api/#create-a-plan
这是我的 JSON
{
name = Caption,
description = "Some Description"
type = "INFINITE",
payment_definitions =
[
{
name = "Some Name"
type ="REGULAR",
frequency = "DAY",
frequency_interval = 1,
amount = new
{
value = 10,
currency = "USD"
},
cycles = "0"
}
],
merchant_preferences
{
setup_fee = new
{
value = 10,
currency = "USD"
},
cancel_url = CancelUrl,
return_url = ReturnUrl,
max_fail_attempts = "5"
}
};
Run Code Online (Sandbox Code Playgroud)
我应该在我的 json 中添加什么,让贝宝立即接受第一笔付款。
谢谢。
编辑:
我可以发现一些奇怪的行为:我的时区是 (UTC+04:00) 第比利斯。如果我在 14:00 之前设置交易,它会立即处理,但如果我在 14:00 之后进行,则必须等到第二天。
如果 10 美元是一次性付款,那么您应该将其作为安装费。设置费应立即处理。
| 归档时间: |
|
| 查看次数: |
1347 次 |
| 最近记录: |