function commerce_paypal_ec_banner_url in Commerce PayPal 7.2
Returns the URL to the specified PayPal Banner server.
Parameters
string $server: Either sandbox or live indicating which server to get the URL for.
Return value
string The URL to use to submit requests to the PayPal Banner server.
1 call to commerce_paypal_ec_banner_url()
File
- modules/
ec/ commerce_paypal_ec.module, line 1895 - Implements PayPal Express Checkout in Drupal Commerce checkout.
Code
function commerce_paypal_ec_banner_url($server) {
switch ($server) {
case 'sandbox':
return 'https://api.financing-mint.paypal.com/finapi/v1/publishers/';
case 'live':
return 'https://api.financing.paypal.com/finapi/v1/publishers/';
}
}