You are here

function commerce_stripe_cardonfile_create_validate in Commerce Stripe 7

Same name and namespace in other branches
  1. 7.3 commerce_stripe.module \commerce_stripe_cardonfile_create_validate()

Validation callback for card on file creation.

1 string reference to 'commerce_stripe_cardonfile_create_validate'
commerce_stripe_cardonfile_create_form in ./commerce_stripe.module
Card on file callback: create form

File

./commerce_stripe.module, line 1001
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_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);
}