cancel
Showing results for 
Search instead for 
Did you mean: 

Determine if Merchant has changed Transaction Key

I have a payment form that uses the AIM method to post to Auth.net via PHP.  It works great until our customer resets their Transaction Key.  I need to know if there is a way to determine (via PHP) if a merchant has reset their Transaction Key.  Any suggestions? Sample code?

 

Thanks in advance,

cmgsupport
Member
1 ACCEPTED SOLUTION

Accepted Solutions

Make a call to the Transaction Detail API which doesn't require a transaction being processed but will require authentication. That should do exactly what you need with no cost to the merchant.


-------------------------------------------------------------------------------------------------------------------------------------------
John Conde :: Certified Authorize.Net Developer (Brainyminds) :: Official Authorize.Net Blogger

NEW! Handling Authorize.Net's Webhooks with PHP

Integrate Every Authorize.Net JSON API with One PHP Class (Sample code included)

Tutorials for integrating Authorize.Net with PHP: AIM, ARB, CIM, Silent Post
All About Authorize.Net's Silent Post

View solution in original post

5 REPLIES 5

There is no way to determine this programmatically except to see an authentication error. It should be error code 13 - The merchant login ID or password is invalid or the account is inactive.


-------------------------------------------------------------------------------------------------------------------------------------------
John Conde :: Certified Authorize.Net Developer (Brainyminds) :: Official Authorize.Net Blogger

NEW! Handling Authorize.Net's Webhooks with PHP

Integrate Every Authorize.Net JSON API with One PHP Class (Sample code included)

Tutorials for integrating Authorize.Net with PHP: AIM, ARB, CIM, Silent Post
All About Authorize.Net's Silent Post
stymiee
Expert
Expert

Is there a way to validate authentication without a transaction? In other words, could I take the API Login ID and the Transaction key and make a call to Auth.net to generate the error code 13 without doing a financial transaction? Ultimately I'm looking for a way to be proactive...so I could easily setup a cron that checks every day to see if the transaction key has changed and notify the client if it is no longer valid.

 

Thanks in advance.

Make a call to the Transaction Detail API which doesn't require a transaction being processed but will require authentication. That should do exactly what you need with no cost to the merchant.


-------------------------------------------------------------------------------------------------------------------------------------------
John Conde :: Certified Authorize.Net Developer (Brainyminds) :: Official Authorize.Net Blogger

NEW! Handling Authorize.Net's Webhooks with PHP

Integrate Every Authorize.Net JSON API with One PHP Class (Sample code included)

Tutorials for integrating Authorize.Net with PHP: AIM, ARB, CIM, Silent Post
All About Authorize.Net's Silent Post

Beautiful!  You are amazing!!!  Can you point me to any PHP sample code?

 

Again, thanks in advance!

I just created some code for working with all of the XML APIs including the Transaction Detail API. It includes sample code. You can find it at the AuthnetXML Github Repository. You should see a link to download the zipfile with all of the code. Hopefully you find it useful.


-------------------------------------------------------------------------------------------------------------------------------------------
John Conde :: Certified Authorize.Net Developer (Brainyminds) :: Official Authorize.Net Blogger

NEW! Handling Authorize.Net's Webhooks with PHP

Integrate Every Authorize.Net JSON API with One PHP Class (Sample code included)

Tutorials for integrating Authorize.Net with PHP: AIM, ARB, CIM, Silent Post
All About Authorize.Net's Silent Post