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.

CommentFileSizeAuthor
#2 2873906-stripe_detach.patch4.48 KBsmk-ka
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

smk-ka created an issue. See original summary.

smk-ka’s picture

Status: Active » Needs review
FileSize
4.48 KB

This may not be very smartly implemented but fixes the underlying issue.

  • vasike committed 6604117 on 8.x-1.x authored by smk-ka
    Issue #2873906 by smk-ka: Detach form handlers
    
vasike’s picture

Priority: Normal » Major
Status: Needs review » Needs work

@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".

vasike’s picture

Status: Needs work » Fixed

I 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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.