You are here

protected function PaymentMethodAddForm::validatePayPalForm in Commerce Braintree 8

Validates the PayPal form.

Parameters

array $element: The PayPal form element.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the complete form.

Overrides PaymentMethodAddForm::validatePayPalForm

File

src/PluginForm/HostedFields/PaymentMethodAddForm.php, line 138

Class

PaymentMethodAddForm
Provides the HostedFields payment method add form.

Namespace

Drupal\commerce_braintree\PluginForm\HostedFields

Code

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

  // The JS library performs its own validation.
}