You are here

protected function PaymentMethodAddForm::validateCreditCardForm in Commerce Authorize.Net 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/AcceptJs/PaymentMethodAddForm.php, line 250

Class

PaymentMethodAddForm

Namespace

Drupal\commerce_authnet\PluginForm\AcceptJs

Code

protected function validateCreditCardForm(array &$element, FormStateInterface $form_state) {

  // The JS library performs its own validation.
}