function commerce_payflow_link_server_url in Commerce PayPal 7.2
Returns the URL to a Payflow Link API server.
Parameters
$mode: Either 'test' or 'live' indicating which server's URL to return.
Return value
The request URL with a trailing slash.
3 calls to commerce_payflow_link_server_url()
- commerce_payflow_api_request in modules/
payflow/ commerce_payflow.module - Submits an API request to Payflow.
- commerce_payflow_link_hosted_checkout_url in modules/
payflow/ commerce_payflow.module - Returns the URL to the specified Payflow Link Hosted Checkout page.
- commerce_payflow_link_redirect_form in modules/
payflow/ commerce_payflow.module - Payment method callback: redirect form.
File
- modules/
payflow/ commerce_payflow.module, line 1362 - Implements PayPal Payments Advanced (U.S. only) and Payflow Link Hosted Checkout pages and Transparent Redirect.
Code
function commerce_payflow_link_server_url($mode) {
switch ($mode) {
case 'test':
return 'https://pilot-payflowlink.paypal.com/';
case 'live':
return 'https://payflowlink.paypal.com/';
}
}