Reply
Highlighted
Member
Posts: 3
Registered: ‎12-08-2011
Accepted Solution

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,


Accepted Solutions
Highlighted
Solution
Accepted by topic author cmgsupport
‎08-21-2015 01:58 AM
Posts: 1,476
Topics: 33
Kudos: 34
Solutions: 126
Registered: ‎09-14-2009

Re: Determine if Merchant has changed Transaction Key

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


All Replies
Highlighted
Posts: 1,476
Topics: 33
Kudos: 34
Solutions: 126
Registered: ‎09-14-2009

Re: Determine if Merchant has changed Transaction Key

[ Edited ]

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
Highlighted
Member
Posts: 3
Registered: ‎12-08-2011

Re: Determine if Merchant has changed Transaction Key

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.

Highlighted
Solution
Accepted by topic author cmgsupport
‎08-21-2015 01:58 AM
Posts: 1,476
Topics: 33
Kudos: 34
Solutions: 126
Registered: ‎09-14-2009

Re: Determine if Merchant has changed Transaction Key

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
Highlighted
Member
Posts: 3
Registered: ‎12-08-2011

Re: Determine if Merchant has changed Transaction Key

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

 

Again, thanks in advance!

Highlighted
Posts: 1,476
Topics: 33
Kudos: 34
Solutions: 126
Registered: ‎09-14-2009

Re: Determine if Merchant has changed Transaction Key

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