#JO-offsession-payments

1 messages · Page 1 of 1 (latest)

austere girderBOT
brave drum
#

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)

real cape
#

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

brave drum
#

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

real cape
#

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

real cape
#

would be a way of listing all the future payments and the status?

#

that would work actually

brave drum
real cape
#

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"

brave drum
#

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

real cape
#

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

brave drum
real cape
#

Oh ok! I guess I opened the wrong link. I see now. Thanks. I’ll give it a look

#

Sorry for that