You are here

public function PaymentMethodPluginBase::orderSubmit in Ubercart 8.4

Called when an order is being submitted with this payment method.

Parameters

\Drupal\uc_order\OrderInterface $order: The order that is being submitted.

Return value

string|null An error message that can be shown to the user if the payment failed, or NULL if everything was successful.

Overrides PaymentMethodPluginInterface::orderSubmit

4 methods override PaymentMethodPluginBase::orderSubmit()
CashOnDelivery::orderSubmit in payment/uc_payment_pack/src/Plugin/Ubercart/PaymentMethod/CashOnDelivery.php
Called when an order is being submitted with this payment method.
CreditCardPaymentMethodBase::orderSubmit in payment/uc_credit/src/CreditCardPaymentMethodBase.php
Called when an order is being submitted with this payment method.
FreeOrder::orderSubmit in payment/uc_payment/src/Plugin/Ubercart/PaymentMethod/FreeOrder.php
Called when an order is being submitted with this payment method.
PayPalExpressCheckout::orderSubmit in payment/uc_paypal/src/Plugin/Ubercart/PaymentMethod/PayPalExpressCheckout.php
Called when an order is being submitted with this payment method.

File

payment/uc_payment/src/PaymentMethodPluginBase.php, line 165

Class

PaymentMethodPluginBase
Defines a base payment method plugin implementation.

Namespace

Drupal\uc_payment

Code

public function orderSubmit(OrderInterface $order) {
}