public function OffsitePaymentGatewayInterface::onCancel in Commerce Core 8.2
Processes the "cancel" request.
Allows the payment gateway to clean up any data added to the $order, set a message for the customer.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The order.
\Symfony\Component\HttpFoundation\Request $request: The request.
1 method overrides OffsitePaymentGatewayInterface::onCancel()
- OffsitePaymentGatewayBase::onCancel in modules/
payment/ src/ Plugin/ Commerce/ PaymentGateway/ OffsitePaymentGatewayBase.php - Processes the "cancel" request.
File
- modules/
payment/ src/ Plugin/ Commerce/ PaymentGateway/ OffsitePaymentGatewayInterface.php, line 73
Class
- OffsitePaymentGatewayInterface
- Defines the base interface for off-site payment gateways.
Namespace
Drupal\commerce_payment\Plugin\Commerce\PaymentGatewayCode
public function onCancel(OrderInterface $order, Request $request);