protected function PaymentMethodAddForm::validateCreditCardForm in Commerce Stripe 8
Validates the credit card form.
Parameters
array $element: The credit card form element.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the complete form.
Overrides PaymentMethodAddForm::validateCreditCardForm
File
- src/
PluginForm/ Stripe/ PaymentMethodAddForm.php, line 104
Class
- PaymentMethodAddForm
- Provides payment form for Stripe.
Namespace
Drupal\commerce_stripe\PluginForm\StripeCode
protected function validateCreditCardForm(array &$element, FormStateInterface $form_state) {
// The JS library performs its own validation.
}