public function WorldpayRedirect::getUrl 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::getUrl()
Get the WorldPay form integration url.
Overrides WorldpayRedirectInterface::getUrl
File
- src/
Plugin/ Commerce/ PaymentGateway/ WorldpayRedirect.php, line 455
Class
- WorldpayRedirect
- Provides the Worldpay Redirect payment gateway.
Namespace
Drupal\commerce_worldpay\Plugin\Commerce\PaymentGatewayCode
public function getUrl() {
$url = C_WORLDPAY_BG_DEF_SERVER_TEST;
if ($this
->getMode() == WORLDPAY_BG_SERVER_LIVE) {
$url = C_WORLDPAY_BG_DEF_SERVER_LIVE;
}
return $url;
}