#jarrett
1 messages · Page 1 of 1 (latest)
Hi, you can actually leverage our Customer Billing portal, https://stripe.com/docs/no-code/customer-portal so your customer can update their payment method.
If you rather handle on on our own, you'd need to first collect the Payment Method details, then attach that Payment Method to the customer, https://stripe.com/docs/api/payment_methods/attach. Then, you'd make an Update Subscription call to update the default Payment Method: https://stripe.com/docs/api/subscriptions/update#update_subscription-default_payment_method
"To attach a new PaymentMethod to a customer for future payments, we recommend you use a SetupIntent or a PaymentIntent with setup_future_usage."
when is simply using attach fine vs having to do the whole setup intent process
Sorry for the confusion, yes the recommended path is to use Setup Intent. I think the best path forward is to use our Customer Billing portal, https://stripe.com/docs/no-code/customer-portal.
After the Setup Intent, you'd still make an Update Subscription call to update the default Payment Method: https://stripe.com/docs/api/subscriptions/update#update_subscription-default_payment_method
I'm using https://stripe.com/docs/payments/defer-intent-creation to do this
Should i be using mode subscription or setup
setup, as you already have the subscription.
I wasn't sure if mode of subscription provided better options