【问题标题】:Changing the Billing date in the mid of subscription in Braintree在 Braintree 订阅中更改计费日期
【发布时间】:2016-04-18 06:26:58
【问题描述】:

我已经有更多的 Braintree 网关订阅。现在我想更改某些订阅的计费日期,而不是全部。

是否有可能更改braintree订阅中的下一个计费日期?

【问题讨论】:

  • 显示你到目前为止所做的事情。
  • 我为客户创建了一个每年续订的订阅,但现在我想为他们免费提供一年。

标签: php sdk payment-gateway server-side braintree


【解决方案1】:

全面披露:我在 Braintree 工作。

您无法更改现有订阅的计费日期,您必须取消订阅并创建一个新订阅。但是,如果您想给某人免费一年,您可以对他们现有的订阅应用折扣。 首先,来自 Braintree 控制面板的add a discount 支付一个月的订阅费用,为期 12 个计费周期。

然后使用 API,您可以将此折扣添加到订阅中:

$result = Braintree_Subscription::update(
  'theSubscriptionId', 
  'discounts' => 
    [ 'add' => 
      [ 'inheritedFromId' => 'your-discount-name' ]
]);

【讨论】:

  • 谢谢@jessica-d。它通过向订阅中的用户提供折扣对我有用。
猜你喜欢
  • 2018-02-26
  • 2016-12-16
  • 2019-01-03
  • 1970-01-01
  • 2015-04-10
  • 2021-01-01
  • 2016-11-06
  • 2014-05-30
  • 1970-01-01
相关资源
最近更新 更多