Website Building » WooCommerce » How Do I Add Authorize Net to WooCommerce?

How Do I Add Authorize Net to WooCommerce?

Last updated on January 11, 2023 @ 11:50 am

Adding Authorize.Net to WooCommerce is a great way to take advantage of the many features that this payment gateway has to offer. There are two ways to add Authorize.Net to WooCommerce: using the official plugin or adding the code manually.

The official Authorize.Net plugin for WooCommerce can be found on the WordPress plugin repository. To install the plugin, simply log into your WordPress site, go to the Plugins section, and search for “Authorize.Net”. Once you find the plugin, click “Install Now” and then activate the plugin.

PRO TIP: If you are using the WooCommerce plugin for WordPress, be aware that there is a known issue with the Authorize Net payment gateway. If you attempt to add Authorize Net to your WooCommerce settings, you may receive an error message. This issue has been reported to the WooCommerce development team, but has not yet been resolved. In the meantime, you can use another payment gateway such as PayPal or Stripe.

Once the plugin is activated, you will need to configure it by going to WooCommerce > Settings > Checkout and selecting Authorize.Net from the list of available payment gateways. You will then need to enter your API Login ID and Transaction Key, which can be found in your Authorize.Net account settings.

If you prefer not to use a plugin, you can also add Authorize.Net to WooCommerce by adding the following code snippet to your functions.php file:

function WooCommerce_authorizenet_init() {
  if ( ! class_exists( 'WC_Payment_Gateway' ) ) return;

    class WC_Gateway_Authorizenet extends WC_Payment_Gateway {

/* Constructor for the gateway */
public function __construct() {
  $this->id = 'authorizenet';
  $this->icon = apply_filters('woocommerce_authorizenet_icon', '');
  $this->has_fields = true;
  $this->method_title = __( 'Authorize.Net', 'woocommerce' );
Madison Geldart

Madison Geldart

Cloud infrastructure engineer and tech mess solver.