You are here

public function StripePaymentMethodController::payment_configuration_form_elements_validate in Stripe 7

Validate callback for the payment configuration form elements.

Parameters

array $element: The parent element.

array $form_state: The form states.

File

stripe_payment/includes/StripePaymentMethodController.inc, line 632
Stripe Payment controller class and helper code (classes and function).

Class

StripePaymentMethodController

Code

public function payment_configuration_form_elements_validate(array $element, array &$form_state) {
  $values = drupal_array_get_nested_value($form_state['values'], $element['#parents']);
  $payment =& $form_state['payment'];
  $payment->method_data['token'] = $values['stripe']['stripe_token'];
}