当我想在 PayPal 中批准新的定期付款时,我得到的总金额为 0
When I want to approve new recurring payment in PayPal, I got a total amount of 0
我正在尝试在 PayPal 沙盒中测试设置新的定期付款。此请求的端点是:https://api.sandbox.paypal.com/v1/billing/subscriptions
正文:
{
"plan_id": "P-9JP75835703395314MA2P3FQ",
"start_time": "2021-03-04T20:00:00Z",
"subscriber": {
"name": {
"given_name": "John",
"surname": "Doe"
},
"email_address": "customer@example.com"
},
"application_context": {
"brand_name": "example",
"locale": "en-US",
"shipping_preference": "SET_PROVIDED_ADDRESS",
"user_action": "SUBSCRIBE_NOW",
"payment_method": {
"payer_selected": "PAYPAL",
"payee_preferred": "IMMEDIATE_PAYMENT_REQUIRED"
},
"return_url": "https://example.com/returnUrl",
"cancel_url": "https://example.com/cancelUrl"
}
}
当我想要批准新创建的订阅时,我得到了这个:
PayPal approve screen
我的问题是:当经常性金额设置为 100 PLN 时,为什么总金额为 0(在购物车图标旁边看到)?
如果您希望它立即结算,请不要指定 start_time
我正在尝试在 PayPal 沙盒中测试设置新的定期付款。此请求的端点是:https://api.sandbox.paypal.com/v1/billing/subscriptions
正文:
{
"plan_id": "P-9JP75835703395314MA2P3FQ",
"start_time": "2021-03-04T20:00:00Z",
"subscriber": {
"name": {
"given_name": "John",
"surname": "Doe"
},
"email_address": "customer@example.com"
},
"application_context": {
"brand_name": "example",
"locale": "en-US",
"shipping_preference": "SET_PROVIDED_ADDRESS",
"user_action": "SUBSCRIBE_NOW",
"payment_method": {
"payer_selected": "PAYPAL",
"payee_preferred": "IMMEDIATE_PAYMENT_REQUIRED"
},
"return_url": "https://example.com/returnUrl",
"cancel_url": "https://example.com/cancelUrl"
}
}
当我想要批准新创建的订阅时,我得到了这个: PayPal approve screen
我的问题是:当经常性金额设置为 100 PLN 时,为什么总金额为 0(在购物车图标旁边看到)?
如果您希望它立即结算,请不要指定 start_time