You are here

function commerce_paypal_wpp_server_url in Commerce PayPal 7

Returns the URL to the specified PayPal WPP 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 WPP server.

1 call to commerce_paypal_wpp_server_url()
commerce_paypal_wpp_request in modules/wpp/commerce_paypal_wpp.module
Submits a PayPal WPP API request to PayPal.

File

modules/wpp/commerce_paypal_wpp.module, line 548
Implements PayPal Website Payments Pro in Drupal Commerce checkout.

Code

function commerce_paypal_wpp_server_url($server) {
  switch ($server) {
    case 'sandbox':
      return 'https://api-3t.sandbox.paypal.com/nvp';
    case 'live':
      return 'https://api-3t.paypal.com/nvp';
  }
}