diff --git a/Resources/frontend/js/jquery.adyen-disable-payment.js b/Resources/frontend/js/jquery.adyen-disable-payment.js index b815f5f1..7eed4e70 100644 --- a/Resources/frontend/js/jquery.adyen-disable-payment.js +++ b/Resources/frontend/js/jquery.adyen-disable-payment.js @@ -60,6 +60,7 @@ if (0 === me.opts.adyenStoredMethodId.length) { return; } + if('' === me.modalContent){ return; } @@ -84,6 +85,7 @@ var me = this; $.loadingIndicator.open(); $.loadingIndicator.loader.$loader.addClass('over-modal'); + $.post({ url: me.opts.adyenDisableTokenUrl, dataType: 'json', diff --git a/Resources/views/frontend/register/payment_fieldset.tpl b/Resources/views/frontend/register/payment_fieldset.tpl index 412bc07a..8ebc9d48 100644 --- a/Resources/views/frontend/register/payment_fieldset.tpl +++ b/Resources/views/frontend/register/payment_fieldset.tpl @@ -34,7 +34,6 @@ {/if} {/block} {/block} - {block name="frontend_register_payment_fieldset"} {$smarty.block.parent}