#daniele-de-benedetto_webhooks
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/1303012192697716868
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Give me a moment to look
yes thank you
Just to clarify, are you looking to confirm the PaymentIntent with the received partial amount or are you trying to cancel the PaymentIntent and release the funds ?
to confirm
i'm looking to close this payment intent and receive the checkout.session.async_payment_succeeded hook
Based on the docs - https://docs.stripe.com/payments/bank-transfers/accept-a-payment?payment-ui=direct-api&invoices=without#web-confirm-success
You can update the PaymentIntent amount to the partial amount you've received and confirm the PaymentIntent using the API.
https://docs.stripe.com/api/payment_intents/update#update_payment_intent-amount
https://docs.stripe.com/api/payment_intents/confirm
ok, thanks clear
NP! ๐ Happy to help
last question
if i close the payment intent
and then the user decide to send another bank transfer later with the same reference
what happen ?
That amount would stay unreconciled and would be added to their cash balance - https://docs.stripe.com/payments/customer-balance#cash
If the customer has any other outstanding payments then we might try and apply the funds automatically to close out those payments
ok thank you so much, clear