public function PaymentMethodPluginBase::cartProcess in Ubercart 8.4
Called when checkout is submitted with this payment method selected.
Use this method to process any form elements output by the cartDetails() method.
Parameters
\Drupal\uc_order\OrderInterface $order: The order which is being processed.
array $form: The checkout form array.
\Drupal\Core\Form\FormStateInterface $form_state: The checkout form state array.
Return value
bool Return FALSE to abort the checkout process, or any other value to continue the checkout process.
Overrides PaymentMethodPluginInterface::cartProcess
3 methods override PaymentMethodPluginBase::cartProcess()
- CashOnDelivery::cartProcess in payment/
uc_payment_pack/ src/ Plugin/ Ubercart/ PaymentMethod/ CashOnDelivery.php - Called when checkout is submitted with this payment method selected.
- CreditCardPaymentMethodBase::cartProcess in payment/
uc_credit/ src/ CreditCardPaymentMethodBase.php - Called when checkout is submitted with this payment method selected.
- TwoCheckout::cartProcess in payment/
uc_2checkout/ src/ Plugin/ Ubercart/ PaymentMethod/ TwoCheckout.php - Called when checkout is submitted with this payment method selected.
File
- payment/
uc_payment/ src/ PaymentMethodPluginBase.php, line 112
Class
- PaymentMethodPluginBase
- Defines a base payment method plugin implementation.
Namespace
Drupal\uc_paymentCode
public function cartProcess(OrderInterface $order, array $form, FormStateInterface $form_state) {
return TRUE;
}