Skip to content

Instantly share code, notes, and snippets.

@artttj
Created October 29, 2025 16:21
Show Gist options
  • Select an option

  • Save artttj/900b88479feea946635ade4c49372d44 to your computer and use it in GitHub Desktop.

Select an option

Save artttj/900b88479feea946635ade4c49372d44 to your computer and use it in GitHub Desktop.
diff --git a/view/frontend/web/js/view/payment/method-renderer/wallee-method.js b/view/frontend/web/js/view/payment/method-renderer/wallee-method.js
index abc1234..def5678 100644
--- a/view/frontend/web/js/view/payment/method-renderer/wallee-method.js
+++ b/view/frontend/web/js/view/payment/method-renderer/wallee-method.js
@@ -35,6 +35,7 @@
},
redirectAfterPlaceOrder: false,
loadingIframe: false,
checkoutHandler: null,
+ creatingIframe: false,
/**
@@ -110,6 +111,9 @@
},
createIframeHandler: function(){
+ if (this.creatingIframe) {
+ return;
+ }
if (this.handler) {
this.checkoutHandler.selectPaymentMethod();
} else if (typeof window.IframeCheckoutHandler != 'undefined' && this.isActive() && this.checkoutHandler.validateAddresses()) {
@@ -117,6 +121,7 @@
window.IframeCheckoutHandler.configure('replacePrimaryAction', true);
}
+ this.creatingIframe = true;
this.loadingIframe = true;
fullScreenLoader.startLoader();
this.handler = window.IframeCheckoutHandler(this.getConfigurationId());
@@ -140,8 +145,11 @@
}
}).bind(this), (function(){
+ this.creatingIframe = false;
fullScreenLoader.stopLoader();
this.loadingIframe = false;
}).bind(this));
+ } else {
+ this.creatingIframe = false;
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment