TransWikia.com

Authorize.net Transaction Fails From Admin Order first time then works second time

Magento Asked by jasonhall0612 on December 8, 2020

I currently have Magento 2.3 installed and I ran across this issue (https://github.com/magento/magento2/issues/24844) that is similar to mine but I can’t seem to take conceptually what was done and get it to work for my case. I currently have

<script>
//<![CDATA[
require(
    ['Magento_AuthorizenetAcceptjs/js/payment-form',
        'jquery',
        'domReady!'
    ],
    function(Authorizenet, $) {
        $(document).on('test', 'body', function() {
            var config = <?= /* @noEscape */ $block->getPaymentConfig() ?>,
                form = "#payment_form_<?= $block->escapeJs($block->escapeHtml($block->getMethodCode())) ?>";
            new Authorizenet(config, form);
        });
    });
//]]>
<script>
require(
    ['jquery'],
    function($) {
        $(document).trigger('body').trigger('test');
    });
//jQuery('body').trigger('test');

but no matter what I do this ends up making it worse causing the transaction to fail over and over again instead of just on the first try. What am I doing wrong?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP