#dan_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/1314146232997908520
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
For Checkout Session, you can pre-authorise the fund with setting payment_intent_data.capture_method property to manual: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-capture_method
You can then capture the Payment Intent later.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
This only works for mode: 'payment': https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-mode
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
OK thank you very much !
If I understant correctly, the window time is in this table (card-not-present) ? and the only supported cards for hold are listed in the same table ?
https://docs.stripe.com/payments/place-a-hold-on-a-payment-method#card-not-present-transactions
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
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
If the reimbursement at the last step refers to the refund, then this flow looks good to me
yes, refund, sorry for my english ๐
Thank you, have a nice day !