You are here

public function PaymentMethodAddForm::submitCreditCardForm in Commerce Braintree 8

Handles the submission of 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::submitCreditCardForm

File

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

Class

PaymentMethodAddForm
Provides the HostedFields payment method add form.

Namespace

Drupal\commerce_braintree\PluginForm\HostedFields

Code

public function submitCreditCardForm(array $element, FormStateInterface $form_state) {

  // The payment gateway plugin will process the submitted payment details.
}