#didi1982_api

1 messages ¡ Page 1 of 1 (latest)

proud vigilBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1256103773319860235

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

blissful crypt
#

how are you collecting the payment method details for the PaymentIntent that you are confirming?

spark pond
#

no we do collect the checkout session for off_session use,
so we do the payment off session with confirm=true

blissful crypt
#

ah, if that's the case, then you should pass in off_session=true when creating the PaymentIntent

spark pond
#

let me try

blissful crypt
spark pond
#

ahhh so the behaviour will then be the same as with
error_on_requires_action: true,

#

there is no way to bring back the user on session with a stripe hosted page?

blissful crypt
#

so when you create the PaymentIntent with off_session=true , this means that your customer is not on your site or APP and hence will not be available to authenticate. If you receive the authentication_required error message, it's up to you to notify your customer to come back on-session to authenticate and complete the payment

spark pond
#

but is there a way to come back on session

#

can the old check.session be revivied?

blissful crypt
#

can you share the PaymentIntent id which you tried with off_session=true?

spark pond
#

pi with off-session=true: pi_3PWWWrCAUJ0lhKRn0SJ2whxt

blissful crypt
#

you can see that the status for this PaymentIntent is requires_payment_method

spark pond
#

pi with off-session=true and error_on_requires_action=true:
pi_3PWWbDCAUJ0lhKRn0PawFiz7

#

yes this is the same as with other cases of rejections

blissful crypt
#

so just bring your customer back on your site, you can initialize the Payment Element with this PaymentIntent to collect the Payment Methods details again, and use stripe.confirmPayment with either new payment details, or with the existing PaymentMethod

spark pond
#

so no stripe hosted option

blissful crypt
#

no, there is no stripe hosted option in this case

spark pond
#

ok thx. this was what i was looking for

blissful crypt
#

if you want a Stripe hosted option, i think you can consider Invoicing

spark pond
#

need to discuss with our PMs

#

the payment element thing is on the plate

#

but a longer story

blissful crypt