【问题标题】:Stripe charges the amount while creating a subscription. It should not happenStripe 在创建订阅时收取金额。它不应该发生
【发布时间】:2021-09-01 04:26:10
【问题描述】:

我们已经有现有的条纹客户,他们已经在不同的日期支付了金额。

现在我们想为这些客户创建一个订阅选项,用于定期付款。但问题是,它是在订阅创建后立即收费的。它没有考虑billing_cycle_anchor 时间戳。

我正在使用的订阅示例代码。

$stripe_subscription_response   =   $stripe->subscriptions->create([
            'customer'                  =>  $stripe_profile_id,
            'default_payment_method'    =>  $payment_method_id,
            'billing_cycle_anchor'      =>  $due_date_time_stamp, //Upcoming due date timestamp
            'items' => [
                ['price' => $stripe_price_info->id],
            ],
        ]);

有没有办法停止收取金额?在创建订阅时。

我已经看到了下面的答案。 Stripe charges twice every time i create a new customer and post a charge

【问题讨论】:

    标签: stripe-payments


    【解决方案1】:

    这是预期的行为:

    https://stripe.com/docs/billing/subscriptions/billing-cycle#new-subscriptions

    从 API 请求到billing_cycle_anchor,这样的请求将按比例向客户收取定价计划的费用。

    如果您不希望他们被收费,您可以在该请求上传递'proration_behavior' => 'none',或者设置'trial_end' => $due_date_time_stamp 而不是直接设置锚点。这两种方法都可以避免向客户收费(后者会创建 0 美元的发票,而前者不会)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-07-18
      • 2016-04-02
      • 2021-01-11
      • 2021-06-17
      • 1970-01-01
      • 2021-06-17
      • 2015-07-23
      • 2017-08-28
      相关资源
      最近更新 更多