protected function PaymentMethodAddForm::validateCreditCardForm in Commerce Braintree 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/ HostedFields/ PaymentMethodAddForm.php, line 145
Class
- PaymentMethodAddForm
- Provides the HostedFields payment method add form.
Namespace
Drupal\commerce_braintree\PluginForm\HostedFieldsCode
protected function validateCreditCardForm(array &$element, FormStateInterface $form_state) {
// The JS library performs its own validation.
}