function commerce_authnet_aim_server_url in Commerce Authorize.Net 7
Returns the URL to the Authorize.Net AIM server determined by transaction mode.
Parameters
$txn_mode: The transaction mode that relates to the live or test server.
Return value
The URL to use to submit requests to the Authorize.Net AIM server.
1 call to commerce_authnet_aim_server_url()
- commerce_authnet_aim_request in ./
commerce_authnet.module - Submits an AIM API request to Authorize.Net.
File
- ./
commerce_authnet.module, line 1853 - Implements Authorize.Net payment services for use in Drupal Commerce.
Code
function commerce_authnet_aim_server_url($txn_mode) {
switch ($txn_mode) {
case AUTHNET_TXN_MODE_LIVE:
case AUTHNET_TXN_MODE_LIVE_TEST:
return variable_get('commerce_authnet_aim_server_url_live', 'https://secure2.authorize.net/gateway/transact.dll');
case AUTHNET_TXN_MODE_DEVELOPER:
return variable_get('commerce_authnet_aim_server_url_dev', 'https://test.authorize.net/gateway/transact.dll');
}
}