#ndbtss_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/1328351279373615104
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hey
Hello! Sorry I don't understand the question
I want to make a backend payment (off session)
to do this, i have to add setOffSession when i create the payment intent
but setOffSession only work with setConfirm
I need to create the payment intent,, to get the payment intent id then to do some stuff, and at the end to confirm.
i do want to confirm at creation
but setOffSession only work with setConfirm
Correct, yes
Instead you can pass off_session: true on confirmation: https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-off_session
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So omit confirm: true and off_session: true on creation, and then call /confirm setting off_session: true (and passing payment_method: 'pm_xxx')
Sure!
to make an off session payment, the payment method has to be configured for that
but i already have a lot of clients that registered theirs cards before i did the configuration
can i add this configuration for existing payment methods?
No, you'd need to recollect their payment info and consent
ok
the code from the doc you have sent me worked
thank you