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 9
9
<script>
10
10
//<![CDATA[
11
11
require(
12
- ['Magento_AuthorizenetAcceptjs/js/payment-form'],
13
- function(Authorizenet) {
12
+ [
13
+ 'Magento_AuthorizenetAcceptjs/js/authorizenet',
14
+ 'jquery',
15
+ 'domReady!'
16
+ ], function(AuthorizenetAcceptjs, $) {
14
17
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 ())) ?> ') ;
16
19
17
- new Authorizenet(config, form);
20
+ config.active = form.length > 0 && !form.is(':hidden');
21
+ new AuthorizenetAcceptjs(config);
18
22
});
19
23
//]]>
20
24
</script>
You can’t perform that action at this time.
0 commit comments