立即第一次付款的贝宝订阅

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 之后进行,则必须等到第二天。

Avi*_*Das 1

如果 10 美元是一次性付款,那么您应该将其作为安装费。设置费应立即处理。

  • 所有用户的行为是否一致?通常,当支付状态被列为待处理时,它可能与帐户相关或与所讨论的支付相关,即可能是商家的接收能力或买方的支付能力。稍后应检查付款状态是否已更改为已批准,并且在此之前不应发货。有关待付款的更多详细信息,请查看http://stackoverflow.com/questions/18037648/doexpresscheckout payment-or-execute-transactions-are-always-pending-why (2认同)