gpt4 book ai didi

Paypal 定期付款 : How to add initial payment.

转载 作者:太空宇宙 更新时间:2023-11-03 15:46:27 24 4
gpt4 key购买 nike

我一直在使用实现一个功能,该功能可以通过此请求使用 PayPal 进行定期付款(从 https://developer.paypal.com/webapps/developer/docs/api/#create-a-plan 复制)

curl -v POST https://api.sandbox.paypal.com/v1/payments/billing-plans \
-H 'Content-Type:application/json' \
-H 'Authorization: Bearer <Access-Token>' \
-d '{
"name": "T-Shirt of the Month Club Plan",
"description": "Template creation.",
"type": "fixed",
"payment_definitions": [
{
"name": "Regular Payments",
"type": "REGULAR",
"frequency": "MONTH",
"frequency_interval": "2",
"amount": {
"value": "100",
"currency": "USD"
},
"cycles": "12",
"charge_models": [
{
"type": "SHIPPING",
"amount": {
"value": "10",
"currency": "USD"
}
},
{
"type": "TAX",
"amount": {
"value": "12",
"currency": "USD"
}
}
]
}
],
"merchant_preferences": {
"setup_fee": {
"value": "1",
"currency": "USD"
},
"return_url": "http://www.return.com",
"cancel_url": "http://www.cancel.com",
"auto_bill_amount": "YES",
"initial_fail_amount_action": "CONTINUE",
"max_fail_attempts": "0"
}
}'

上述请求将创建定期定期付款。我想在上面的请求中添加初始付款。我找到了一种使用经典 API 的方法,如 https://developer.paypal.com/docs/classic/paypal-payments-pro/integration-guide/WPRecurringPayments/指定初始付款部分。但是我找不到使用 REST API 添加初始付款的方法。谢谢!

最佳答案

嘿,这是来自 PayPal 的 avi。其余计费计划的 merchant_preferences 部分下的 setup_fee 对应于经典 api 中定期付款的初始付款。该费用仅在用户同意计费计划以形成计费协议(protocol)后收取一次。

关于 Paypal 定期付款 : How to add initial payment.,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25686661/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com