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?