#Benoît
1 messages · Page 1 of 1 (latest)
Hi 👋
Hi 🙂
The error is pretty clear here. You cannot update the Payment Method attached to a Payment Intent after it has processed
Does it means my customer can't chose the payment method he wants to subscribe a new plan ?
Like Amazon do
The error message you are seeing implies that it is not occurring when a new subscription is occurring
Can you share the Request ID for the request that returned this error?
I'm trying to attach a subscription item beside another already subscribed item
pi_3NUtnPAYYvne95SH12bODRlg
That's a payment intent ID. Do you have the API request?
You are attempting to modify a payment intent. At this point it too late.
The invoice was set to charge automatically and the customer already has a saved payment method
So when it was created it charged the saved payment method
You need to move when you create the Susbcription to after the Customer selects the payment method
and then you pass that ID in when you create the Subscription: https://stripe.com/docs/api/subscriptions/create#create_subscription-default_payment_method
The subscription is already created, as i just add some susbscription item (a plan) to the existing one
So when my customer chose his PM, i must retrieve the "main" subscription, update its payment method, and then add my new subscription item. Is that it ?