Problem/Motivation

Remove iframe from DOM after switching payment methods to remove event listener on the form which blocks submission for other payment methods.

The relevant issue on GitHub: https://github.com/SecureTrading/js-payments/issues/1132

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#3 3159883-2.patch626 bytesvalic
#2 3144337-2.patch3.72 KBvalic
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

valic created an issue. See original summary.

valic’s picture

Assigned: valic » Unassigned
Status: Active » Needs review
FileSize
3.72 KB

Attached patch which when we have JS data drupalSettings.commerceSecureTrading, but there is no form with class .securetrading-form, remove any residual iframe: iframe#st-control-frame-iframe.

That triggers removal of event listener on SC side

valic’s picture

FileSize
626 bytes

Correct patch

  • valic committed c1ee665 on 8.x-1.x
    Issue #3159883 by valic: Remove event listener after switching payment...
valic’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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