Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
When other payment gateways (manual gateways or commerce_payment_example) are enabled, switching between the gateways results in a javascript error:
Uncaught (in promise) Error: Blocked a frame with origin "https://js.stripe.com" from accessing a cross-origin frame.
This prevents the form from being submitted.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2873906-stripe_detach.patch | 4.48 KB | smk-ka |
Comments
Comment #2
smk-ka CreditAttribution: smk-ka commentedThis may not be very smartly implemented but fixes the underlying issue.
Comment #4
vasike@smk-ka many thanks
i also saw something similar for this issue, but not so happy about what Stripe provides there (for now).
But as we're in still in dev and the error it's critical we need this.
So i commited your patch
Thank you
But i think we need to find "the right solution" for the Stripe Elements removal/rebuilding.
So i leave it open as "Needs work".
Comment #5
vasikeI think we can close this issue
Togheter with #2893928: Recalculating shipping or changing the country destroys the Stripe fields, we have fixed the issue on changing other checkout elements: payments, shipping button or country selects.
If the Stripe will provide better (cleaner) ways to do this. maybe a new issue and a fix will be done.