Establishing a Connection
The objects available within our connector are accessible from the "cdata.authorizenet" module. To use the module's objects directly:
- Import the module as follows:
import cdata.authorizenet as mod
- To establish a connection string, call the connect() method from the connector object using an appropriate connection string, such as:
mod.connect("LoginID=myLoginID;TransactionKey=myTransactionKey")
Connecting to Authorize.net
Before you connect, log into your Merchant account and navigate to Account > Settings. Your account Security Settings section displays the LoginID and TransactionKey.
Now set the following to connect:
- LoginID: The API login Id associated with your payment gateway account. (Note: This value is not the same as the login Id that you use to log in to the Merchant Interface.)
- TransactionKey: The transaction key associated with your payment gateway account.
- UseSandbox: Set to false by default, for use with a production account. If you are using a developer test account, set UseSandbox to true.