Paypal如何覆盖付款定义?

问题描述 投票:5回答:1

我已经创建了一些结算方案,现在我想在创建结算协议时覆盖付款定义。那可能吗?

我知道我可以覆盖商家偏好和收费模式,但我没有找到任何覆盖付款定义的内容。

用例将是订阅服务(计费计划)但具有相关折扣的用户。

我正在使用REST API。

paypal paypal-rest-sdk paypal-subscriptions
1个回答
0
投票

可能的方法:

  • 使用override_merchant_preferences创建帐单协议。 (初始金额)
  • 创建结算协议后 - 获取agreement_id
  • 使用patch_request更新结算协议(经常性金额)

2019年4月更新:

2019年4月,PayPal添加了新的Subscriptions API。

https://developer.paypal.com/docs/subscriptions/integrate/

新API支持修改当前订阅。

https://developer.paypal.com/docs/subscriptions/full-integration/subscription-management/#revise-subscription

© www.soinside.com 2019 - 2024. All rights reserved.