Skip to content

Authorize.net API weirdness #14

@frankwiles

Description

@frankwiles

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... 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions