function _uc_authorizenet_arb_parse_response in Ubercart 8.4
Same name and namespace in other branches
- 5 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_arb_parse_response()
- 6.2 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_arb_parse_response()
- 7.3 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_arb_parse_response()
Parses an Authorize.Net XML API response; from sample PHP for ARB.
File
- payment/
uc_authorizenet/ uc_authorizenet.module, line 284 - Processes payments using Authorize.net. Supports AIM and ARB.
Code
function _uc_authorizenet_arb_parse_response($content) {
// Find the elements in the XML and build the return array.
$data = [
'refId' => _uc_authorizenet_substr_between($content, 'refId'),
'resultCode' => _uc_authorizenet_substr_between($content, 'resultCode'),
'code' => _uc_authorizenet_substr_between($content, 'code'),
'text' => _uc_authorizenet_substr_between($content, 'text'),
'subscriptionId' => _uc_authorizenet_substr_between($content, 'subscriptionId'),
];
return $data;
}