You are here

function _uc_authorizenet_xml_api_wrapper in Ubercart 8.4

Same name and namespace in other branches
  1. 5 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_xml_api_wrapper()
  2. 6.2 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_xml_api_wrapper()
  3. 7.3 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_xml_api_wrapper()

Helper function for XML API requests.

Wraps XML API request child elements in the request element and includes the merchant authentication information.

4 calls to _uc_authorizenet_xml_api_wrapper()
_uc_authorizenet_cim_payment_profile_get in payment/uc_authorizenet/uc_authorizenet.module
Gets a CIM payment profile stored at auth.net.
_uc_authorizenet_cim_profile_charge in payment/uc_authorizenet/uc_authorizenet.module
Uses a reference to charge to a CIM profile.
_uc_authorizenet_cim_profile_create in payment/uc_authorizenet/uc_authorizenet.module
Creates a CIM profile using an order's data.
_uc_authorizenet_cim_profile_get in payment/uc_authorizenet/uc_authorizenet.module
Gets a CIM profile stored at Authorize.Net.

File

payment/uc_authorizenet/uc_authorizenet.module, line 200
Processes payments using Authorize.net. Supports AIM and ARB.

Code

function _uc_authorizenet_xml_api_wrapper($request, $xml) {
  return '<?xml version="1.0" encoding="utf-8"?><' . $request . ' xmlns="AnetApi/xml/v1/schema/AnetApiSchema.xsd"><merchantAuthentication>' . '<name>' . trim(variable_get('uc_authnet_api_login_id', '')) . '</name>' . '<transactionKey>' . trim(variable_get('uc_authnet_api_transaction_key', '')) . '</transactionKey></merchantAuthentication>' . $xml . '</' . $request . '>';
}