#thomasnevink
1 messages · Page 1 of 1 (latest)
Hello thomasnevink, 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.
• https://discord.com/channels/841573134531821608/1161900761538633789, 6 days ago, 15 messages
• https://discord.com/channels/841573134531821608/1161655903515312200, 7 days ago, 5 messages
• https://discord.com/channels/841573134531821608/1161536877363470386, 7 days ago, 6 messages
- You just need to
setup_future_usage(https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage) and Stripe will automatically attach the payment method to the invovled customer - You can create the checkbox by yourself.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
so I don't need PaymentMethod and the PaymentMethodId when creating a Paymentintent when using a card in my payment-element stripe form?
No you don't need to specify them when confirming from client side
I want PaymentMethodId for saving it to database and also when creating a new customer or updating an existing customer, I need PaymentMethodId
Hmm, you want attach an already saved paymentMethod to a different customer?
No, where can I get the PaymentMethod when I do confirmPayment in the front-end?
Once the payment suceeds, you should retrieve the PaymentIntent (https://stripe.com/docs/js/payment_intents/retrieve_payment_intent) and get the PaymentMethod from it (https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.