cancel
Showing results for 
Search instead for 
Did you mean: 

How to Test Auth.net Purchases are Working

I am working on a system in PHP for a client that essentially makes sure their entire website is up and running. This program will be periodically pinged by something like Wormly and checked to see what it is retuning. The program will test all external components of the site to see if they are working (including things like authorize.net).

 

As part of this, I would like to test their connection and ability to make payments through authorize.net. I imagine this would something along the lines of "pinging" auth.net with our API login + transaction and "simulating" a purchase. (In other words, we don't want to just check https://secure.authorize.net/gateway/transact.dll to see if authorize.net is up, we would like to test our actual account)

 

I am not sure of the best way to do this -- any help would be appreciated. I am relatively new to Authorize.net as well, so feel free to point me in a different direction if I am not thinking about this in the correct way.

 

FYI, they are using a Joomla 3.x site with the Membership Pro Component + AuthNet plugin for that component.

Thanks!

stevenreed
Member
1 ACCEPTED SOLUTION

Accepted Solutions

@stevenreed Are you connecting solely to https://secure.authorize.net/gateway/transact.dll? Or do you use the Authorize.Net API documented at https://developer.authorize.net/api/reference/?

If the former, you could submit a transaction request to https://secure.authorize.net/gateway/transact.dll with x_test_request set to "TRUE", and that would simulate a transaction without actually charging a card or incurring fees.

If the latter, you could use the authenticateTestRequest call; while it doesn't simulate submitting a transaction, it does respond to confirm you authenticated correctly.

 

 

--
"Move fast and break things," out. "Move carefully and fix what you break," in.

View solution in original post

Lilith
Administrator Administrator
Administrator
2 REPLIES 2

@stevenreed Are you connecting solely to https://secure.authorize.net/gateway/transact.dll? Or do you use the Authorize.Net API documented at https://developer.authorize.net/api/reference/?

If the former, you could submit a transaction request to https://secure.authorize.net/gateway/transact.dll with x_test_request set to "TRUE", and that would simulate a transaction without actually charging a card or incurring fees.

If the latter, you could use the authenticateTestRequest call; while it doesn't simulate submitting a transaction, it does respond to confirm you authenticated correctly.

 

 

--
"Move fast and break things," out. "Move carefully and fix what you break," in.
Lilith
Administrator Administrator
Administrator

Just ran the authenticateTestRequest method today and it works perfectly! Thank you for your help!