You are here

function commerce_authnet_cim_cardonfile_create_validate in Commerce Authorize.Net 7

Validation callback for card on file create.

1 string reference to 'commerce_authnet_cim_cardonfile_create_validate'
commerce_authnet_form_commerce_cardonfile_card_form_alter in ./commerce_authnet.module
Implements hook_form_FORM_ID_alter().

File

./commerce_authnet.module, line 882
Implements Authorize.Net payment services for use in Drupal Commerce.

Code

function commerce_authnet_cim_cardonfile_create_validate($form, &$form_state) {
  $profile = $form_state['commerce_customer_profile'];
  field_attach_form_validate('commerce_customer_profile', $profile, $form['commerce_customer_profile'], $form_state);
}