public function PaymentMethodAddForm::submitPayPalForm in Commerce Braintree 8
Handles the submission of 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::submitPayPalForm
File
- src/
PluginForm/ HostedFields/ PaymentMethodAddForm.php, line 152
Class
- PaymentMethodAddForm
- Provides the HostedFields payment method add form.
Namespace
Drupal\commerce_braintree\PluginForm\HostedFieldsCode
public function submitPayPalForm(array $element, FormStateInterface $form_state) {
// The payment gateway plugin will process the submitted payment details.
}