#lsantaniello-cordova

1 messages · Page 1 of 1 (latest)

broken anvil
#

Do you use Stripe's official iOS/Android SDK or some ionic libraries?

polar spade
#

I used ionic native library but now I'd like to change and use official stripe.js library

#

I can't understand how implement 3d secure

broken anvil
#

We are not officially support and test cordova so I can't assure you it will work, but if you use stripe.js , maybe getting the payment part loaded in a webview would work

polar spade
#

it works but I don't understood how implement 3d secure

#

web app developed in php/js and use stripe.js

#

I need to replicate scenario on ionic mobile app

#

on the web, I used this.stripe.confirmCardPayment(... and it works.. library open autmatically popup for 3d secure

broken anvil
#

confirmCardPayment is a bit legacy, but yes it does support 3D Secure

polar spade
#

on the mobile, if I use this.stripe.confirmCardPayment( I receive this error: core.mjs:6485 ERROR IntegrationError: Invalid value for stripe.confirmCardPayment intent secret: value should be a client secret of the form ${id}secret${secret}. You specified: sk_test_

#

what is the correct api and flow?

broken anvil
#

That sounds like a completely different problem

#

doesn't relate to 3DS

#

the value passed to secret should be a PaymentIntent secret

polar spade
#

is there a sequence diagram in order to understand the flow step by step?

polar spade
#

I inserted my secret key

broken anvil
#

no it's incorrect

polar spade
#

in the guide: "We recommend that you follow the Accept a payment guide instead.... "

broken anvil
#

But either way, you need to create a Payment Intent server side, then takes its secret and pass to client method, not your secret key

polar spade
#

ah ok

#

I try it