Do you want to test your Authorize.Net connection before accepting real payments through your WordPress forms? Testing your connection allows you to ensure that your configuration is working properly, and to fix any errors before going live.
In this tutorial, we’ll show you how to perform test Authorize.Net transactions within WPForms.
- Enabling Authorize.Net Test Mode
- Generating Test Keys
- Creating a Form to Test Payments
- Enabling Authorize.Net Payments
- Publishing Your Form and Performing a Test
- Viewing Test Transactions in Your Account
- Switching to Live Mode
Requirements: You’ll need a Elite license level to access the Authorize.Net addon.
Enabling Authorize.Net Test Mode
Before we get started, make sure you’ve installed and activated the Authorize.Net addon.
Once you’ve installed and activated the addon, you can enable test mode for your Authorize.Net integration under WPForms » Settings » Payments.
Within those settings, scroll down to the Authorize.Net section and check the Test Mode option to enable Test Mode.
This will open up two additional fields you’ll need to fill out: Test API Login ID and Test Transaction Key.
Generating Test Keys
Right after you log into 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 within your Sandbox account.
After ensuring that your Sandbox is in Live mode, go ahead and exit out of that overlay by clicking the Remind Me Later option. Then, within the left sidebar, click on Settings.
From there, you’ll then need to click on the option named API Credentials and Keys.
On this page, go ahead and copy the value next to API Login ID.
Back in your WPForms Settings page, you’ll need to paste this value into the Test API Login ID field.
Once you’ve added your Test API Login ID, you’ll need to generate a transaction key within your Authorize.Net Sandbox account.
To do this, switch back over to the page with your Sandbox account settings and look for the section labeled Create New Key(s). Then, under the Obtain option, select New Transaction Key. Once you’ve selected this option, go ahead and click the Submit button.
Immediately after submitting, you should see an overlay asking you to verify your identity. You’ll need to click the Request PIN button to start this verification process.
After submitting the request, you’ll be asked to check your email for the PIN. Be sure to enter the value from your email, then click the Verify PIN button.
Now that your identity has been verified, Authorize.Net will display your Transaction Key.
You’ll need to carefully copy this key, then flip back over to the tab or window with your WPForms Settings. Be sure to paste this key into the Test Transaction Key field, then click Save Settings.
Creating a Form to Test Payments
Next, you’ll either need to create a new form or edit an existing form. In our example, we’ll use the Billing / Order Form template.
Then, you’ll need to make sure you have added an Authorize.Net field to your form.
This will add a credit card field that will allow your users to make a payment directly within your form.
Note: You will 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 connection set up on your site.
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 and checking the box labeled 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 we’ll leave those blank.
After you’ve got everything set up, be sure to save your form.
Publishing Your Form and Performing a Test
Once your form is set up, you can test things out on the frontend of your site. To do this without publishing the 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 of your form.
Note: While Authorize.Net is in test mode, you will not be able to use real credit card numbers 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.
Viewing Test Transactions in Your Account
By default, Authorize.Net will send you a receipt via email for test transactions. However, if you’d like to also view your test transaction from within your Sandbox account, click on the Unsettled Transactions option to view recent transactions.
In this section, you’ll be able to see the test transaction you submitted. To view more details about the transaction, you can click on the Transaction ID number for a specific entry.
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 over to Live mode. To do this, simply head over to your Authorize.Net settings within WPForms and uncheck the box labeled Test Mode.
Once you’ve unchecked this box, be sure to click the Save Settings button to save your settings.
That’s it! We just showed you how to test out your Authorize.Net payments in WPForms.
Next, would you like to allow users to choose which payment method they use during checkout? Check out our tutorial on how to allow users to choose a payment method within your forms for more details.