function commerce_paypal_api_server_url in Commerce PayPal 7.2
Returns the URL to the specified PayPal API server.
Parameters
$server: Either sandbox or live indicating which server to get the URL for.
Return value
The URL to use to submit requests to the PayPal API server.
1 call to commerce_paypal_api_server_url()
- commerce_paypal_api_request in ./
commerce_paypal.module - Submits an API request to PayPal.
File
- ./
commerce_paypal.module, line 427 - Implements PayPal payment services for use with Drupal Commerce.
Code
function commerce_paypal_api_server_url($server) {
switch ($server) {
case 'sandbox':
return 'https://api-3t.sandbox.paypal.com/nvp';
case 'live':
return 'https://api-3t.paypal.com/nvp';
}
}