#thomas-d
1 messages · Page 1 of 1 (latest)
Hello
Hello
That's correct, you can't capture an authorization twice.
What you would have to do in this case would be to create a new authorization using the saved PaymentMethod for the second amount you are trying to charge
Or, you need to wait until later to capture the whole thing
in fact amount_to_capture allows to capture half for example but the rest is refounded to client ?
Yes
ok i understood, is that the only way ?
Yeah sorry there is no way to capture the same authorization twice
So the above is the only way
okok no problem i go try this ! Thanks
Sure thing
I tried quickly but i can't use stripe.paymentMethods.create in the same node api route. I must use this when success_url is call but how store data card in node app ? in database ?
Are you using setup_future_usage on the initial PaymentIntent?
I use stripe.checkout.sessions.create
If you pass setup_future_usage and a Customer ID it will automatically set up the PaymentMethod and attach it to the Customer
Oh that's fine you use payment_intent_data.setup_future_usage: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_intent_data-setup_future_usage