public function ExpressCheckout::getRedirectUrl in Commerce PayPal 8
Gets the redirect URL.
Return value
string The redirect URL.
Overrides ExpressCheckoutInterface::getRedirectUrl
File
- src/
Plugin/ Commerce/ PaymentGateway/ ExpressCheckout.php, line 434
Class
- ExpressCheckout
- Provides the Paypal Express Checkout payment gateway.
Namespace
Drupal\commerce_paypal\Plugin\Commerce\PaymentGatewayCode
public function getRedirectUrl() {
if ($this
->getMode() == 'test') {
return 'https://www.sandbox.paypal.com/checkoutnow';
}
else {
return 'https://www.paypal.com/checkoutnow';
}
}