#Celsian
1 messages · Page 1 of 1 (latest)
Hi there! I recommend reviewing this if you haven't already: https://stripe.com/docs/payments/payment-intents/migration#saved-cards
SetupIntents should only be used to collect a customer's payment details if you don't plan on charging them immediately.
That is the intent, allowing the user to update their card details somewhere in the middle of a currently active subscription. The next subscription renewal should charge the new card.
Ah I see
Yes, you should create a SetupIntent for a given customer, and then update the Subscription's default_payment_method: https://stripe.com/docs/api/subscriptions/update#update_subscription-default_payment_method
You could also look into using the customer portal to allow customers to manage the updates themselves: https://stripe.com/docs/customer-management