You are here

function commerce_payflow_pro_server_url in Commerce PayPal 7.2

Returns the URL to a Payflow Pro API server.

Parameters

$mode: Either 'test' or 'live' indicating which server's URL to return.

Return value

The request URL with a trailing slash.

1 call to commerce_payflow_pro_server_url()
commerce_payflow_api_request in modules/payflow/commerce_payflow.module
Submits an API request to Payflow.

File

modules/payflow/commerce_payflow.module, line 1344
Implements PayPal Payments Advanced (U.S. only) and Payflow Link Hosted Checkout pages and Transparent Redirect.

Code

function commerce_payflow_pro_server_url($mode) {
  switch ($mode) {
    case 'test':
      return 'https://pilot-payflowpro.paypal.com/';
    case 'live':
      return 'https://payflowpro.paypal.com/';
  }
}