#lucasnguyen1707
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- lucasnguyen1707, 10 hours ago, 11 messages
- lucasnguyen1707, 1 day ago, 16 messages
- lucasnguyen1707, 4 days ago, 9 messages
- lucasnguyen1707, 5 days ago, 8 messages
- lucasnguyen1707, 6 days ago, 8 messages
So how can I update Payment method of the existing subscription by Stripe js and prebuilt element
Maybe I didn't understand your original question, because it seems pretty different from your follow-up question.
If you want to allow customers to create new Payment Methods, to be used for their Subscriptions, and would like to use the Payment Element for that, then this is the flow that you're looking for:
https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements
It uses Setup Intents to create and prepare new Payment Methods, then you can make a request to update the Subscription object and provide it with the ID of the newly created Payment Method.