#ema6551_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1215259319260549120
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
What you can do is to expire the Checkout Session:
https://docs.stripe.com/api/checkout/sessions/expire
why i can expire the session ?
I'll send you a video of what I would like to do.
Inside this I'll show you what I would like to do.
The test user initially authorized a payment of 213 euros. Subsequently, for some reason, the administrator will only have to charge 100 euros and no longer all 213.
How can I do this thing with bees?
Why you want to cancel the payment_intent ?
I don't want to cancel the payment intent, but change the amount.
This is to give the administrator the opportunity to charge only the correct amount.
I'm creating a platform for booking some drivers.
It may happen that perhaps the user needs to make a change to the route, to cover fewer kilometres, and therefore I have to reduce the amount.
You can't change the amount
if the captured amount is less then the auth, then you can capture partial amount from the PaymentIntent
If the desired amount to capture is greater than the capture you need to create another Checkout Session
Ok, this is clear to me.
But why didn't it work for me?
Ah ok ok
Ok ok
I didn't put amount-capture
i try it
๐
Happy to help!