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