public function PaymentMethodAddForm::submitCreditCardForm in Commerce Square Connect 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/ Square/ PaymentMethodAddForm.php, line 116
Class
- PaymentMethodAddForm
- Payment method add form for Square.
Namespace
Drupal\commerce_square\PluginForm\SquareCode
public function submitCreditCardForm(array $element, FormStateInterface $form_state) {
// The payment gateway plugin will process the submitted payment details.
}