private function PayflowLink::getProServerUrl in Commerce PayPal 8
Returns the URL to a Payflow Pro API server.
Return value
string The request URL with a trailing slash.
1 call to PayflowLink::getProServerUrl()
- PayflowLink::apiRequest in src/
Plugin/ Commerce/ PaymentGateway/ PayflowLink.php - Submits an API request to Payflow.
File
- src/
Plugin/ Commerce/ PaymentGateway/ PayflowLink.php, line 914
Class
- PayflowLink
- Provides the PayPal Payflow Link payment gateway.
Namespace
Drupal\commerce_paypal\Plugin\Commerce\PaymentGatewayCode
private function getProServerUrl() {
switch ($this
->getConfiguration()['mode']) {
case 'test':
return 'https://pilot-payflowpro.paypal.com/';
case 'live':
return 'https://payflowpro.paypal.com/';
}
return '';
}