#dan_api

1 messages ยท Page 1 of 1 (latest)

sacred dockBOT
#

๐Ÿ‘‹ 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/1314146232997908520

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

spring dagger
iron plover
spring dagger
#

Yup, that's right. But not all card / issuing banks support auth and capture. You should use payment_method_details.card.capture_before on Payment Intent to check the authorisation validity

iron plover
#

ok, interesting.
So, for example can I do :

  • I want a deposit for 6 days
  • I create the hold with checkout session
  • the payment intent result shows payment_method_details.card.capture_before == now + 2 days
  • I cancel the payment intent
  • I redirect the customer to a real payment
  • in 6 days, I may reimburse him
spring dagger
#

If the reimbursement at the last step refers to the refund, then this flow looks good to me

iron plover
#

yes, refund, sorry for my english ๐Ÿ˜…
Thank you, have a nice day !