Paython icon indicating copy to clipboard operation
Paython copied to clipboard

Authorize.net API weirdness

Open frankwiles opened this issue 12 years ago • 1 comments

Ran into this today with a client, if the Authorize.net account is of a certain age (this feature has apparently been deprecated) and has the 'Password Mode' set. Then instead of sending a 'x_trans_key' you need to send the older 'x_password' with what the API user would consider the "password". However this still works with version 3.1 of the API.

Was easy to do, but wanted to list it here in case anyone else runs into this. Steps to fix are:

api = AuthorizeNet(
    username=settings.AUTHORIZE_USERNAME,
    password=settings.AUTHORIZE_PASSWORD,
)

# Fix the API
api.unset('x_tran_key')
api.set('x_password', settings.AUTHORIZE_PASSWORD)

# Proceed normally... 

frankwiles avatar Dec 14 '12 15:12 frankwiles

#chi

chiproet avatar Aug 07 '17 19:08 chiproet