function commerce_authnet_cim_get_customer_profile_request in Commerce Authorize.Net 7
Submits a request to retrieve a Customer profile's payment profiles
This is useful when Authorize.net returns an error code of E00039, duplicate.
Parameters
$payment_method:
$cim_customer_profile_id:
$number:
Return value
bool|string Returns FALSE if not payment profile found, or the matching profile ID.
2 calls to commerce_authnet_cim_get_customer_profile_request()
- commerce_authnet_cim_cardonfile_create in ./
commerce_authnet.module - Commerce Card on File create callback.
- commerce_authnet_cim_submit_new_card_form_submit in ./
commerce_authnet.module - Handles advanced logic relating to creating CIM orders with new card data.
File
- ./
commerce_authnet.module, line 1680 - Implements Authorize.Net payment services for use in Drupal Commerce.
Code
function commerce_authnet_cim_get_customer_profile_request($payment_method, $cim_customer_profile_id) {
// Query for the profile's payment profiles.
$api_request_data = array(
'customerProfileId' => $cim_customer_profile_id,
);
return commerce_authnet_cim_request($payment_method, 'getCustomerProfileRequest', $api_request_data);
}