'Initiate the environment with the acquirer data.
:param record acquirer: payment.acquirer account that will be contacted'

def __init__(self, acquirer):

    if (acquirer.environment == 'test'):
        self.url = 'https://apitest.authorize.net/xml/v1/request.api'
    else:
        self.url = 'https://api.authorize.net/xml/v1/request.api'
    self.name = acquirer.authorize_login
    self.transaction_key = acquirer.authorize_transaction_key
