【问题标题】:Set the Number of Billing Cycles via the Braintree API通过 Braintree API 设置计费周期数
【发布时间】:2013-07-21 21:29:09
【问题描述】:

我正在我们的网站中实施 Braintree Payments,但在尝试创建订阅时遇到了问题。我想覆盖自定义订阅的“计划”详细信息。我正在尝试使用 PHP 通过 API 设置“计费周期数”。我似乎无法让它工作。在 API 文档中,它说“您可以覆盖计划价格、试用期、开始日期、每个订阅的计费周期数以及附加和折扣详细信息。”这是链接:https://www.braintreepayments.com/docs/php/subscriptions/create#overriding_plan_details

$result = Braintree_Subscription::create(array(
         'paymentMethodToken' => $payment_method_token,
         'planId' => 'r45g',
         'price' => "{$_SESSION['enroll-draft-amount']}",
         'billingCycles' => '7'
    ));

此 billingCycles 设置不起作用。谁知道正确的设置是什么?

谢谢

【问题讨论】:

    标签: php payment-gateway payment braintree


    【解决方案1】:

    我想通了。希望这对其他人有帮助。正确的设置是:numberOfBillingCycles

    【讨论】:

      猜你喜欢
      • 2016-12-16
      • 2016-09-22
      • 2021-12-12
      • 2015-01-27
      • 2018-06-13
      • 2016-04-18
      • 2017-07-12
      • 2023-04-02
      相关资源
      最近更新 更多