#thomas-d

1 messages · Page 1 of 1 (latest)

mint roseBOT
orchid spear
#

Hello

raw atlas
#

Hello

orchid spear
#

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

raw atlas
#

in fact amount_to_capture allows to capture half for example but the rest is refounded to client ?

orchid spear
#

Yes

raw atlas
#

ok i understood, is that the only way ?

orchid spear
#

Yeah sorry there is no way to capture the same authorization twice

#

So the above is the only way

raw atlas
#

okok no problem i go try this ! Thanks

orchid spear
#

Sure thing

raw atlas
#

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 ?

orchid spear
#

Are you using setup_future_usage on the initial PaymentIntent?

raw atlas
#

I use stripe.checkout.sessions.create

orchid spear
#

If you pass setup_future_usage and a Customer ID it will automatically set up the PaymentMethod and attach it to the Customer