簡體   English   中英

stripe.customers.createBalanceTransaction 會從客戶的信用卡中扣款嗎?

[英]Will stripe.customers.createBalanceTransaction charge customer's credit card?

我正在嘗試創建一種解決方法,以確保客戶在將其升級到另一層之前有足夠的資金。 我在開發模式下使用stripe.customers.createBalanceTransaction但我不確定它在生產環境中的表現如何。 它是否會向客戶的信用卡收取費用以增加資金?

如果沒有,我怎樣才能讓客戶在升級到上層之前付款?

創建客戶余額交易 [0] 不會從您客戶的信用卡中扣款。 這只會增加/減去客戶 [1] 的余額,這將適用於他們未來的發票。 它與向客戶的信用卡收費無關。

要僅在您的客戶支付差價后升級訂閱 [2],您可以更新訂閱 [3] 並通過傳遞payment_behavior: 'pending_if_incomplete'proration_behavior: 'always_invoice' [4] 立即向客戶收取費用。 如果付款失敗,您的客戶將不會升級到上層。

[0] https://stripe.com/docs/api/customer_balance_transactions/create

[1] https://stripe.com/docs/billing/customer/balance

[2]https://stripe.com/docs/billing/subscriptions/upgrade-downgrade

[3] https://stripe.com/docs/api/subscriptions/update

[4] https://stripe.com/docs/billing/subscriptions/pending-updates

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM