protected function PaymentMethodAddForm::validateCreditCardForm in Commerce Square Connect 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/ Square/ PaymentMethodAddForm.php, line 109
Class
- PaymentMethodAddForm
- Payment method add form for Square.
Namespace
Drupal\commerce_square\PluginForm\SquareCode
protected function validateCreditCardForm(array &$element, FormStateInterface $form_state) {
// The JS library performs its own validation.
}