File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
app/code/Magento/AuthorizenetAcceptjs/view/adminhtml/templates/payment Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 99<script>
1010 //<![CDATA[
1111 require(
12- ['Magento_AuthorizenetAcceptjs/js/payment-form'],
13- function(Authorizenet) {
12+ [
13+ 'Magento_AuthorizenetAcceptjs/js/authorizenet',
14+ 'jquery',
15+ 'domReady!'
16+ ], function(AuthorizenetAcceptjs, $) {
1417 var config = <?= /* @noEscape */ $ block ->getPaymentConfig () ?> ,
15- form = " #payment_form_<?= $ block ->escapeJs ($ block ->escapeHtml ($ block ->getMethodCode ())) ?> " ;
18+ form = $(' #payment_form_<?= /* @noEscape */ $ block ->escapeJs ($ block ->escapeHtml ($ block ->getMethodCode ())) ?> ') ;
1619
17- new Authorizenet(config, form);
20+ config.active = form.length > 0 && !form.is(':hidden');
21+ new AuthorizenetAcceptjs(config);
1822 });
1923 //]]>
2024</script>
You can’t perform that action at this time.
0 commit comments