#joshuacs94
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- joshuacs94, 2 days ago, 38 messages
- joshua-invoice-paymentintent, 4 days ago, 57 messages
off_session is used to tell Stripe whether or not your customer is present in the payment flow. So if you set off_session to true then Stripe assumes that the payment is off session and the payment is being made on behalf of the customer without any manual intervention on their end
Another explanation here if you want different verbiage: https://stackoverflow.com/questions/75349515/on-session-vs-off-session-in-stripe
but then why would I set off_session: false if it introduces that friction to the payment flow? ๐
Because you may need to prompt for 3DS to set the payment up for future payments: https://stripe.com/docs/payments/save-and-reuse
our PMs are already setup, we have a separate setup flow
Then you shouldn't need to use off_session: true
I thought it would be better to set off_session: true when the one trying to pay the invoice is the user that has to pay it, but then I noticed that with true the invoice payment throws an error saying the PI requires action, but if I set it to false then it completes without problems
sorry, its the other way around
ah no, its like that ๐คฆโโ๏ธ
with true: error
oh sh*t its the other way around, Im confused ๐
All good, it happens ๐
true: success
false: error
so my thinking is wrong? I dont have to set it to false ever?
If the Payment Method is already set up for future payments and the Payment Intent doesn't have status: 'requires_action, then yes
actually, I only set it to FALSE if the user calling payInvoice is the one that has to pay it, I set it to TRUE otherwise
ok, so off_session: true... but I still dont know when it makes sense to set it to false, lol, whats the benefit of it?
If the customer is on session, that means they're physically at their computer pressing a button or something. If the customer is off session, it means they're not there and you're making the payment on their behalf.
thats the problem, in this case, the user is there pressing the button to pay the invoice, but why would I set it to true when it throws an error but sending false completes the payment??
Likely because when you set it to false, Stripe is prompting for 3DS. Like, that one payment may go through if you've already set the Payment Method up for future payments, so you would only use false if you want to have them prompted for 3DS and set up the Payment Method for future usage
so in this case that the PM is already setup it doesnt make any sense to set it to FALSE?
That seems to be the case