#marcabrub
1 messages · Page 1 of 1 (latest)
Hi there!
How are you creating the subscriptions? With Checkout Session, or Directly the Subscription endpoint?
I create the subscription by selecting the recurring payment option, just when I create a new rate
So you create the subscription in the Dashboard?
Can you share a subscription ID (sub_xxx) where you see that issue?
Thanks! Give me a few minutes to look into this.
Stripe tries to collect the second installment but there are problems with the payment method. It tries to charge it 3 times (according to what we have configured) and when it can't charge it, it cancels it.
I understand this, but I don't understand why it doesn't charge it, if the payment method already collected it in the first payment.
Got it. When you create the subscription, you need to make sure you save the default payment method on the customer or subscription object.
The simplest way is to use this: https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_settings-save_default_payment_method
But how can I configure that?
You change your code that creates a subscription by adding payment_settings { save_default_payment_method: "on_subscription" }