#lucasnguyen1707

1 messages · Page 1 of 1 (latest)

tall pivotBOT
#

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.

hot briar
#

Hi 👋 you can't

#

The Payment Element does not support custom payment method types.

mortal jasper
#

So how can I update Payment method of the existing subscription by Stripe js and prebuilt element

hot briar
#

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.

mortal jasper
#

If I know correct that I would retrieve a current customer then create a SetupIntent for he. The response of a SetupIntent will be a PaymentMethod and I will use this to update the subscription

#

Is it correct?