function stripe_token_element_validate in Stripe 7
Validate the stripe token to be sure that it was set by the javascript.
1 string reference to 'stripe_token_element_validate'
- stripe_element_process in ./
stripe.module - Process callback for this module elements.
File
- ./
stripe.module, line 268 - stripe.module Drupal hooks used for integrating the Stripe service.
Code
function stripe_token_element_validate($element, $form_state, $form) {
if (empty($element['#value']) && isset($element['#access']) && $element['#access']) {
form_error($element, t('There was a problem processing your payment.'));
}
}