You are here

function commerce_robokassa_server_url in Commerce robokassa 7

Same name and namespace in other branches
  1. 7.2 commerce_robokassa.module \commerce_robokassa_server_url()

Returns the URL to the specified Robokassa server.

Parameters

$server: Either test or live indicating which server to get the URL for.

Return value

The URL to use to submit requests to the Robokassa server.

1 call to commerce_robokassa_server_url()
commerce_robokassa_build_redirect_form in ./commerce_robokassa.module
Payment method callback; generation callback for the payment redirect form.

File

./commerce_robokassa.module, line 304

Code

function commerce_robokassa_server_url($server) {
  switch ($server) {
    case 'test':
      return 'http://test.robokassa.ru/Index.aspx';
    case 'live':
      return 'https://merchant.roboxchange.com/Index.aspx';
  }
}