#9310
1 messages · Page 1 of 1 (latest)
Hello
Can you provide me an example that I can look at?
A PaymentIntent preferably
yes, give me sec (those would be from our test mode), I don't have specific customer on prod right now
pi_3MGob4KpJcQYpR3W1VOtUpPH
👀
So the issue is you are setting off_session: true when you call /pay
Is your customer going to be on-session when this step happens?
We don't use this parameter in our code off_session , this must be by default.
Those are subscription - user pays, and the payment for the invoice can happen after an 1 hour, so there's no guarantee user is still on
Yep you are correct, that defaults to true: https://stripe.com/docs/api/invoices/pay#pay_invoice-off_session
Okay
So if the customer isn't still there then you need to use a SetupIntent when you collect the PaymentMethod
To set up the PaymentMethod for 3DS
How are you collecting card details?
Using Card Element?
Okay so the easiest way to handle this is to remove your stripe.createPaymentMethod function and instead you create a SetupIntent (https://stripe.com/docs/api/setup_intents/create) server-side and pass the client-secret to your client. Then you use stripe.confirmCardSetup : https://stripe.com/docs/js/setup_intents/confirm_card_setup
That will then both create the PaymentMethod and handle 3DS if necessary
@stark jackal let's start a new thread for your specific issue
thanks, we need to change the integration code, I'll retest it and and hope - no need to be back with the issue