• Was looking for some help here. The theme seems to be have a JavaScript conflict when working with woocommerce and auth.net payment gateway.

    An error occurred, please try again or try an alternate form of payment.
    Accept.js Error: payment nonce is missing

    I have uninstalled all the plugins a it did not resolve but when I switched the theme it worked.

    Has anyone had this issue? If so any help to resolve would be great!

    Thanks

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Puedes probar los archivos en esta ruta\wordpress\wp-content\themes\wp-bootstrap-starter\woocommerce
    Estos archivos sirven para dar soporte a woocommerce a lo mejor hay algún error de plantilla, woocommerce se actualiza a diario a lo mejor hace falta un gancho al template que las plantillas de woocomerce si tienen y ya te va dar error pero puedes probar por ahi y nos cuentas.

    Theme Author Afterimage Designs

    (@afterimagedesigns)

    Hi @fusioncorp and @francisco8888,

    Thanks for reaching us out @fusioncorp, I would like to ask if your issue is resolved, please let me know so that I can assist you properly.

    Thanks for supporting this forum @francisco8888.

    Hi @afterimagedesigns,

    The issue is not resolved. I had the same issue and debugged it. The problem is in the file:
    wp-bootstrap-starter/inc/plugin-compatibility/woocommerce/woocommerce.php

    When you added classes to the inputs via filter “woocommerce_form_field_args”, you didn’t add the theme classes to the input – you have overridden them. And Authorize.net needs specific classes for the card number, card expiry and card cvc input, which should be there in order to work.

    My quick fix is this:
    instead of:
    $args['input_class'] = array('form-control', 'input-lg');
    I use this:
    $args['input_class'] = array_merge( $args['input_class'], array('form-control', 'input-lg') );

    Regards,
    Plamen

    Hi,

    I was having the same issue and like @parnaudov mentioned before, the issue is when you removed important classes such as:
    js-sv-wc-payment-gateway-credit-card-form-input
    js-sv-wc-payment-gateway-credit-card-form-account-number
    Those classes are very important for plugin like wc-authorize-net-cim, this plugin takes the credit card fields by those classes in the wc-authorize-net-cim.min,js via jquery, so if someone is having the same issue, please follow the steps that @parnaudov, don’t override the $arg[‘input_class’], use array_merge() instead or $arg[‘input_class’][] = ‘class1 class2’ notation;

    Having a similar issue authorize.net with WooCommerce checkout. The resolve posted above with:

    $args['input_class'] = array('form-control', 'input-lg');

    did not resolve the issue. I am using bootstrap, no caching or optimization plugins. I can get the correct results if I go with a non bootstrap type of a theme like 2021, else I get the nonce accept.js error or similar. Both production and test in WooCommerce with authorize.net.

    Has anyone else resolved this?

    Thank you! Solved the problem for me.
    Be sure to change it for every case in the switch

    Hi all,
    I had the same issue with a client. The problem was solved by disabling a cache setting which combined the js files. Hope this helps.

    Happy thanksgiving!

    I encountered this issue with one of our servers. It turned out it was the “debug display” that was enabled for WordPress. I didn’t dig any further into the issue but my guess is there is a warning/notice being appended to a file the Auth.net plugin is validating or causing something to load too late. The solution for me was to just disable debugging display in wp-config.php by setting the following.

    define( 'WP_DEBUG_DISPLAY', FALSE );

    If you still need the debugging information, the plugin will write to a log if you enable the setting from the payment configuration screen in wp-admin. You can access the logs from WooCommerce > Status on the Logs tab. You will need to select the file matching the current timestamp. It should be similar to authorize_net_cim_credit_card-*.log

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Accept.js Error: payment nonce is missing’ is closed to new replies.