function _uc_authorizenet_cim_profile_get in Ubercart 7.3
Same name and namespace in other branches
- 8.4 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_cim_profile_get()
- 5 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_cim_profile_get()
- 6.2 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_cim_profile_get()
Gets a CIM profile stored at Authorize.Net.
1 call to _uc_authorizenet_cim_profile_get()
- _uc_authorizenet_cim_profile_charge_request in payment/
uc_authorizenet/ uc_authorizenet.module - Helper for building the request for a CIM profile charge.
File
- payment/
uc_authorizenet/ uc_authorizenet.module, line 362 - Processes payments using Authorize.net. Supports AIM and ARB.
Code
function _uc_authorizenet_cim_profile_get($order, $profile_id) {
$server = variable_get('uc_authnet_cim_mode', 'disabled');
$request = array(
'customerProfileId' => $profile_id,
);
// Request a profile from auth.net.
$xml = _uc_authorizenet_xml_api_wrapper('getCustomerProfileRequest', _uc_authorizenet_array_to_xml($request));
// Parse the response.
$response = _uc_authorizenet_cim_parse_response(uc_authorizenet_xml_api($server, $xml));
return $response;
}