#awildfatman

1 messages · Page 1 of 1 (latest)

molten gyroBOT
exotic venture
#

hi, what's the question?

molten gyroBOT
merry crater
#

Hello, I want to know if I can use stripe JS library to confirm paymentIntent that require action on android / ios ?

#

I am using capacitor to create a web view app.. the stripe library does not have the ability to confirmCardPayment

idle plover
#

Our Stripe.js, node.js, and mobile SDK libraries should all have functions for that

#

Can you walk me through the process that you currently have? How does the intent get created and confirmed originally?

merry crater
#

okay.. so here are the steps :

#
  1. User Create a Subscription.. we use that card info to save the payment method against the user for off_session api calls

  2. User goes to checkout.. we use the user's default payment method that we set during the subscription flow to create a payment intent on our server side.

  3. If payment_intent requires action we confirmCardPayment on client side using stripe JS library.. but that needs to be wrapped in <Elements>

  4. After 3DS2 completes.. payment go through fine then we do our own cleaning up and some follow up API calls.

#

Now in Capacitor App in webview. I used the capacitor stripe pluging.. which can create the PaymentSheet or PaymentFlow

#

none of which has the ability to just confirm that card payment that was done on the server.. rather .. they would show the sheet where user needs to enter the credit card info.. which I don't want.

#

if I can pre-populate the payment sheet with the user's deafult payment method.. that would work as well.. but ideally I would just want to ask user to do their 3DS authentication and confirm the payment

#

Thoughts on this please ?

idle plover
#

I am not sure what capacitor Stripe supports, but those may give you an idea on what needs to be set