function _uc_authorizenet_xml_api_wrapper in Ubercart 6.2
Same name and namespace in other branches
- 8.4 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_xml_api_wrapper()
- 5 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_xml_api_wrapper()
- 7.3 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_xml_api_wrapper()
Wraps XML API request child elements in the request element and includes the merchant authentication information.
7 calls to _uc_authorizenet_xml_api_wrapper()
- uc_authorizenet_arb_cancel in payment/
uc_authorizenet/ uc_authorizenet.module - Cancels an ARB subscription.
- uc_authorizenet_arb_create in payment/
uc_authorizenet/ uc_authorizenet.module - Sends an ARB Create request via the XML API.
- uc_authorizenet_arb_update in payment/
uc_authorizenet/ uc_authorizenet.module - Updates an ARB subscription; for simplicity's sake, payment schedule information cannot be updated at this time.
- _uc_authorizenet_cim_payment_profile_get in payment/
uc_authorizenet/ uc_authorizenet.module - Get a CIM payment profile stored at auth.net.
- _uc_authorizenet_cim_profile_charge in payment/
uc_authorizenet/ uc_authorizenet.module - Use a reference to charge to a CIM profile.
File
- payment/
uc_authorizenet/ uc_authorizenet.module, line 992 - Process 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>' . variable_get('uc_authnet_api_login_id', '') . '</name>' . '<transactionKey>' . variable_get('uc_authnet_api_transaction_key', '') . '</transactionKey></merchantAuthentication>' . $xml . '</' . $request . '>';
}