#JO-offsession-payments
1 messages · Page 1 of 1 (latest)
Hello! Let's back up for a second - are you creating these future off-session payments directly as payment intents? Or are you doing something different (like using invoices/subscriptions)
I am basically just creating single payment intents and confirming them. It works nice, but I need to prevent that one of these might fail ,and I am struggling to understand what should I do in this case.
I can imagine a scenario where a user has a card that needs to always authenticate for everypayment and so these off_session payments would fail
If you 100% do not want to write any additional JS code to handle this, then you could consider using Invoices. You'd create and attempt to pay for your Invoice off-session, and if it requires authentication you can redirect them to the hosted invoice page to complete payment there
JO-offsession-payments
well would require a lot to integrate a solution for that in JS? do you know where can I find documentation for that? I think that invoice creation would be a big work around for this case
We talk about it a bit here: https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements#charge-saved-payment-method
would be a way of listing all the future payments and the status?
that would work actually
Not sure exactly what you mean by listing all future payments, but generally you should be able to list Payment Intents if you want (https://stripe.com/docs/api/payment_intents/list)
All the future payments of a User
But if I show to the user on the front end all the payment intents that failed, how could he fix that situation? I basically need a way of telling the User "Your payments Failed. Please pay again on session"
I'm still not sure what exactly you mean by "future payments" - if. you mean paymetn intents that are created but not fully paid, then yes, you should be able to list those find. But if you're talking about future payments that you haven't create a payment intent for yet that's entirely on your end
sorry. For future payments I mean Payments Intents off session that were not confirmed yet.
Once they are confirmed, if they fail I need a way of making them on session and give the user to update their payment method, for example. If a 3D auth is needed they would need to process their payment manually and the payment would proceed.
My question is, if I want to include some JS where can I find documentation for that? Retrieving Failed Payment Intends I got that, but now I need a way of giving that Payment possible to the user
Did you read the link I sent you? https://stripe.com/docs/payments/save-and-reuse?platform=web&ui=elements#charge-saved-payment-method
It talks about using confirmPayment client-side to complete the additional actions. If you're asking about how to bring your customer back on-session, that's on you to decide - some integrations will build an email system to automatically email their customer if they have a failed payment and direct them to the correct site to finish payment