Don't render the button if the user approved the payment

This commit is contained in:
Mészáros Róbert 2020-04-08 19:43:52 +03:00
parent d500691730
commit 353deb1313

View file

@ -13,13 +13,13 @@ class CheckoutBootstap {
return;
}
if (document.querySelector(cancelWrapper)) {
return;
}
const renderer = new Renderer(buttonWrapper);
jQuery(document.body).on('updated_checkout', () => {
if (document.querySelector(cancelWrapper)) {
return;
}
renderer.render(this.configurator.configuration());
jQuery(document.body).trigger('payment_method_selected');