#phal0r-stripejs-handleactions

1 messages · Page 1 of 1 (latest)

sick jewelBOT
nova fog
#

Hi 👋

  • Stripe.js should be loaded at the top of your payment page. Using an iframe can 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.

upbeat swift
#
  • 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 is capacitor://localhost and on Android it is http://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 expose handleActions option. 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.

nova fog
#

Unfortunately we do not expose anything like the handleActions boolean with confirmSetup.

#

You can reduce the amount of redirects by passing redirect: "if_required"