protected function WorldpayRedirect::buildCancelUrl in Commerce Worldpay 8
Same name and namespace in other branches
- 8.2 src/Plugin/Commerce/PaymentGateway/WorldpayRedirect.php \Drupal\commerce_worldpay\Plugin\Commerce\PaymentGateway\WorldpayRedirect::buildCancelUrl()
Builds the URL to the "cancel" page.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The order.
Return value
string The "cancel" page url.
1 call to WorldpayRedirect::buildCancelUrl()
- WorldpayRedirect::onNotify in src/
Plugin/ Commerce/ PaymentGateway/ WorldpayRedirect.php
File
- src/
Plugin/ Commerce/ PaymentGateway/ WorldpayRedirect.php, line 497
Class
- WorldpayRedirect
- Provides the Worldpay Redirect payment gateway.
Namespace
Drupal\commerce_worldpay\Plugin\Commerce\PaymentGatewayCode
protected function buildCancelUrl(OrderInterface $order) {
return Url::fromRoute('commerce_payment.checkout.cancel', [
'commerce_order' => $order
->id(),
'step' => 'payment',
], [
'absolute' => TRUE,
])
->toString();
}