#tarjei_off-session-3ds

1 messages ยท Page 1 of 1 (latest)

west summitBOT
#

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

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

quick kernel
#

Hi ๐Ÿ‘‹ can you tell me a bit more about the subsequent payment? Are you making a call to pay an existing Invoice, or are you creating a new Payment Intent for that payment?

sage cypress
#

Hi

#

The first

#

We explicitly confirm the paymentintent for the latest unpaid invoice

quick kernel
#

Gotcha, are you setting off_session to true to indicate you're doing that off session?

sage cypress
#

yep ๐Ÿ™‚

quick kernel
#

Or is the concern here moreso that you're being prompted for 3DS twice?

sage cypress
#

SetupFutureUsage = "off_session"

quick kernel
#

That's a different parameter

sage cypress
#

oh

#

I see

quick kernel
sage cypress
#

aha, no that I'm not doing

#

OK will try that and get back to you

west summitBOT
#

tarjei_off-session-3ds

sage cypress
#

so, I tried this and I still only get use_stripe_sdk as the next_action

quick kernel
#

Can you share an example? What are you expecting to see instead?

sage cypress
#

I'm expecting to get a redirect url instead

#

Can I send you the ID of the paymentintent?

quick kernel
#

Yeah, that'll work

sage cypress
#

pi_3PT3dIDUHs147Fvg3GcPocbV

quick kernel
#

Thank you, taking a look

sage cypress
#

cheers

quick kernel
#

You're using an already set up Payment Method for this confirmation request?

sage cypress
#

Ok

#

Yeah, fetching the id from the latest invoice if unpaid

#

in this situation the payment method should already be set up for future usage so I guess we can get rid of that

quick kernel
#

Well, not really, I think. Because I'm realizing you aren't creating these intents, so I think that setting is set for you.

sage cypress
#

right

glossy grotto
#

Hello there
I'm jumping in to help out as the server is busy today.

Is there any specific reason you're handling 3DS manually? Just want to be on the same page here ๐Ÿ™‚

#

I think the issue here is possibly due to how you're providing an existing payment method and also setting setup_future_usage to off_session at the same time...
https://dashboard.stripe.com/test/logs/req_bVgvnQu9W11PXT

The PaymentMethod you're providing in the request above, was that set up for off session use already?

#

If so, you can just provide the payment method and set confirm: true in the request which attempts to confirm the PaymentIntent

#

@sage cypress want to make sure you saw above

sage cypress
#

Ok! Thanks a lot, will try that