How to Test Authorize.Net Payments Before Accepting Real Payments

Do you want to test your Authorize.Net connection before accepting real payments through your WordPress forms? Testing your connection lets you ensure that it’s working properly and gives you the chance to fix any errors before going live.

In this tutorial, we’ll show you how to perform Authorize.Net test transactions with WPForms.

  1. Enabling Authorize.Net Test Mode
  2. Generating Test Keys
  3. Creating a Form to Test Payments
  4. Enabling Authorize.Net Payments
  5. Publishing Your Form and Performing a Test
  6. Viewing Test Transactions in Your Account
  7. Switching to Live Mode

Requirements: You’ll need an Elite license level to access the Authorize.Net Addon.

Additionally, you’ll need to have an SSL connection on your site to perform transactions through your forms. In most cases, your hosting provider can help you get an SSL certificate set up on your site.


Before you get started, make sure you’ve installed and activated the WPForms plugin, as well as the Authorize.Net Addon.

1. Enabling Authorize.Net Test Mode

To enable test mode for your Authorize.Net integration, go to WPForms » Settings » Payments.

Opening the Payments settings for WPForms

Here, scroll down to the Authorize.Net section and check the Test Mode option to enable Test Mode.

Enabling Authorize.Net test mode in WPForms

This will open up two additional fields you’ll need to fill out: Test API Login ID and Test Transaction Key.

The fields for Authorize.Net test keys

2. Generating Test Keys

To generate a Test API Login ID and a Test Transaction Key, you’ll first need to log in to your Authorize.Net Sandbox account. If you don’t already have one, go ahead and create one now.

Right after you log in to your Authorize.Net sandbox account, you should see an overlay showing whether your account is in Test or Live mode. Be sure that this option is set to Live, as this will allow you to view your test transactions in your Sandbox account.

Setting your Authorize.Net sandbox account to Live mode

After ensuring that your Sandbox account is in Live mode, exit out of the overlay by clicking the Remind Me Later option. Then, in the left sidebar, click on Settings.

Open Authorize Net account settings

From here, click on API Credentials and Keys.

Open API Credentials and Keys page in Authorize Net account

On the next page, copy the value next to API Login ID.

Copy API Login ID from Authorize Net account

Back in your WPForms Payments settings, paste the copied value into the Test API Login ID field.

Paste API Login ID into WPForms settings

Once you’ve added your Test API Login ID, you’ll need to generate a Transaction Key in your Authorize.Net Sandbox account.

To do so, switch back over to the page with your Sandbox account settings and look for the section labeled Create New Key(s). Next to Obtain, select New Transaction Key. Then click the Submit button.

Create new transaction key in Authorize Net account

Immediately after submitting, you should see an overlay asking you to verify your identity. Click the Request PIN button to start this verification process.

Requesting a pin to verify your identity in Authorize.Net

After submitting the request, check your email for the PIN. Be sure to enter the value from your email in your Authorize.Net Sandbox account, then click the Verify PIN button.

Once you’ve verified your identity, Authorize.Net will display your Transaction Key. Click the Copy to Clipboard button.

Copy Transaction Key from Authorize Net account

Flip back over to the browser tab or window with your WPForms Payments settings. Paste the key into the Test Transaction Key field, then click Save Settings.

Saving your payments settings after entering your Authorize.Net test transaction keys

3. Creating a Form to Test Payments

Next, you need a form you can use to make test payments. You may create a new form or edit an existing one.

If you’re starting from scratch, you may want to consider using our Billing / Order Form template.

Selecting the Billing/Order Form template

Note: Want to learn more about the Billing / Order Form template? See our tutorial on using templates in WPForms for all the details.

Regardless of whether you choose to create a new form or edit an existing one, make sure you’ve added an Authorize.Net field to it.

Adding an Authorize.Net field to a form

This will add a credit card field that will allow your users to make payments directly in your form.

4. Enabling Authorize.Net Payments

Once you’ve set up your form, you’ll need to turn on Authorize.Net payments. You can do this by going to Payments » Authorize.Net in the form builder and checking the box labeled Enable Authorize.Net Payments.

Enable Authorize.Net Payments

This will open up additional settings for you to fill out. However, none of these fields are required for testing purposes, so feel free to leave them blank if you want to.

After you’ve set everything up, be sure to save your form.

5. Publishing Your Form and Performing a Test

Once your form is set up, you can test payments out on the frontend of your site.

To do so without publishing your form to a live page, you can use the form preview option in WPForms, or you can add your form to a private page or post. Then go ahead and submit a test entry of your form.

Note: While Authorize.Net is in test mode, you will not be able to use real credit card details in your test form. Instead, you’ll need to enter a special test card number provided by Authorize.Net.

To find a list of test credit card numbers and CCV codes, be sure to check out Authorize.Net’s testing guide.

6. Viewing Test Transactions in Your Account

By default, Authorize.Net will send you a receipt via email for test transactions. However, if you’d also like to view your test transaction in your Sandbox account, click on Unsettled Transactions in the lefthand sidebar to view recent transactions.

Opening unsettled transactions in an Authorize.Net Sandbox account

In this section, you’ll be able to see the test transaction you submitted. To view more details about the transaction, click on the Transaction ID number for a specific entry.

Viewing a test transaction in an Authorize.Net Sandbox account

7. Switching to Live Mode

After you’ve confirmed that your Authorize.Net payments are working as they should, you’re ready to switch your connection to Live mode. To do so, simply head over to your Authorize.Net settings in WPForms and uncheck the box labeled Test Mode.

Turning off Test Mode for Authorize.Net in WPForms

Note: If you haven’t already, you’ll need to generate keys for Live Mode in your Authorize.Net Merchant account.

Once you’ve unchecked this box, be sure to click the Save Settings button.

That’s it! Now you can test out your Authorize.Net connection in WPForms.

Next, would you like to allow users to choose which payment method they use during checkout? See our tutorial on allowing users to choose a payment method in your forms for more details.