#phal0r-stripejs-handleactions
1 messages · Page 1 of 1 (latest)
Hi 👋
- Stripe.js should be loaded at the top of your payment page. Using an
iframecan lead to Stripe.js not functioning properly
confirmCardSetup is the method used for the Card element. confirmSetup is the method for the Payment Element
next_action is how Stripe indicates the need for 3DS authentication. You can attempt to load those windows yourself but we don't recommend it.
- Stripe.js should be loaded at the top of your payment page. Using an iframe can lead to Stripe.js not functioning properly
we don't load stripe.js in an iframe, but in the top level window of the webview. The only unusual thing is, that on ios the host iscapacitor://localhostand on Android it ishttp://localhost, because the javascript is loaded locally
confirmCardSetup is the method used for the Card element. confirmSetup is the method for the Payment Element
yes, but confirmSetup does not allow to prevent automatic redirects, only confirmCardSetup and similar exposehandleActionsoption. Is there a way to use this for confirmSetup aswell?
next_action is how Stripe indicates the need for 3DS authentication. You can attempt to load those windows yourself but we don't recommend it.
the reason is, that I want to load the next_action url in the in-app browser of the app and not in the same webview context for usability reasons. So as I understand, this is ok.