function commerce_stripe_cardonfile_update_validate in Commerce Stripe 7.3
1 string reference to 'commerce_stripe_cardonfile_update_validate'
- commerce_stripe_cardonfile_update_form in ./
commerce_stripe.module - Card on file callback: Update form
File
- ./
commerce_stripe.module, line 1418 - This module provides Stripe (http://stripe.com/) payment gateway integration to Commerce. Commerce Stripe offers a PCI-compliant way to process payments straight from you Commerce shop.
Code
function commerce_stripe_cardonfile_update_validate($form, &$form_state) {
$profile = NULL;
if (!empty($form_state['values']['commerce_customer_profile'])) {
$profile = $form_state['values']['commerce_customer_profile'];
}
field_attach_form_validate('commerce_customer_profile', $profile, $form, $form_state);
}