#lsantaniello-cordova
1 messages · Page 1 of 1 (latest)
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
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
it works but I don't understood how implement 3d secure
here https://shop.gemarexpress.it/stripe-custom/ I implemented poc for web app
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
confirmCardPayment is a bit legacy, but yes it does support 3D Secure
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?
That sounds like a completely different problem
doesn't relate to 3DS
the value passed to secret should be a PaymentIntent secret
is there a sequence diagram in order to understand the flow step by step?
I inserted my secret key
no it's incorrect
in the guide: "We recommend that you follow the Accept a payment guide instead.... "
Yes, because that's a Card Element which is a legacy one, instead you should use the newer Payment Element : https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#web-submit-payment
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