How to setup Authorize.Net on WooCommerce?

In this guide, learn how to setup Authorize.Net on your WooCommerce store.

If you have not created an Authorize.Net account yet, create a business account before proceeding.

You also need to get the Authorize.Net plugin from the WooCommerce marketplace.

Ensure this plugin is installed, active, and setup correctly!

If you are more of a visual learner, you can check out the video tutorials below!

Let’s jump into it!

Authorize.Net WooCommerce setup

  1. Enable Authorize.Net in WooCommerce
  2. Get Authorize.Net account keys
  3. Test that Authorize.Net is working

Step 1. Enable Authorize.Net in WooCommerce

Go to WooCommerce > Settings and click the Payments tab.

Next, click the checkbox to enable Authorize.Net Credit Card and click Manage.

Then, click the checkbox to enable the gateway, click the checkbox to enable Card Verification (CSC), select ‘Charge’ from the Transaction type dropdown, click the checkbox to enable tokenization, and select ‘Production’ from the Environment dropdown.

Step 2. Get Authorize.Net account keys

Next, add in your Authorize.Net account keys.

To get your Authorize.Net account keys, you will need to login to your Authorize.Net dashboard.

From the Authorize.Net dashboard, click Account > API credentials & Keys.

Then, you will be able to view your publishable and secret keys. Copy these values and paste these values in the API credentials section.

API Login ID

First, copy the API Login ID in Authorize.Net and paste this value in WooCommerce.

API Transaction Key

Next, copy the API Transaction key in Authorize.Net and paste this value in WooCommerce.

API Signature Key

Finally, copy the API Signature key in Authorize.Net and paste this value in WooCommerce.

Just a heads up that if you have not used your Authorize.Net Transaction key for an extended period of time, Authorize.Net may require you to regenerate a new key.

Lastly, don’t forget to scroll to the bottom of the page and save your changes in WooCommerce.

Step 3. Test that Authorize.Net is working

Finally, do a live transaction on your site using Authorize.Net or setup a sandbox account.

Open up an incognito window and go to the frontend of your site.

Add a product to your Cart and go through the Checkout process.

You should see the option to pay with a credit card.

If you do not see this option, you may also have to clear your cache.

Pro tip: Update 1 product in your store to be $1 and do a real transaction using Authorize.Net to make sure everything is working!

Authorize.Net Sandbox Account

  1. Enable test mode in WooCommerce
  2. Create your sandbox account
  3. Paste your Sandbox API credentials in WooCommerce
  4. Do a test transaction on your site

Creating a sandbox account with Authorize.Net allows you to do test orders on your WooCommerce store. I would recommend using a staging site to do test transactions.

The sandbox functions like the production environment but no actual card payments are processed.

Step 1: Enable test mode in WooCommerce

Go to WooCommerce > Settings > Payments > Authorize.Net and make sure the gateway is enabled.

Switch the environment to “Test”.

authorize-net-test-mode

Save changes.

authorize-net-test-api-keys
In the next step we will be getting the Test API Login ID, Test API Transaction ID, Test API Signature Key.

Step 2: Create your sandbox account

Go to https://developer.authorize.net/hello_world.html and click ‘CREATE A SANDBOX ACCOUNT’.

woocommerce-authorize-net-create-sandbox-account

Pro tip: if you end up forgetting your API credentials or the email address you used, do not worry. You can always create another sandbox account if need be.

Step 3: Paste your Sandbox API credentials in WooCommerce

Copy your Sandbox API credentials to your WooCommerce site. Save changes.

The easiest way to do this is to split your screen like in the screenshot below.

woocommerce-authorize-net-sandbox-api-keys

Now you will be able to do test transactions on your WooCommerce store!

Step 4: Do a test transaction on your site

Go to the frontend of your WooCommerce site or open up an incognito window to simulate how a customer would go through the purchase process on your site.

Add a product to your Cart and go through the Checkout process.

woocommerce-authorize-net-testing-guide-test-numbers
The sandbox functions like the production environment. No actual card payments are processed.

Reference the Authorize.Net testing guide for test credit card numbers that work in the sandbox. I provided examples below of test credit card numbers that work.

Visa example (3-digit CVV code)

Card number: 4007000000027
Expiration: 01/21
Card Security Code: 123

American Express example (4-digit CVV code)

Card number: 370000000000002
Expiration: 08/25
Card Security Code: 1111

Video Tutorials

If you are having trouble, follow along to the video tutorials below.

Resources

Simon Gondeck

I’m a big fan of WordPress + WooCommerce (especially WooCommerce Subscriptions). Check out my YouTube channel.

Leave a Comment