function commerce_robokassa_server_url in Commerce robokassa 7.2
Same name and namespace in other branches
- 7 commerce_robokassa.module \commerce_robokassa_server_url()
Returns the URL to the specified Robokassa server.
Parameters
string $server: Either test or live indicating which server to get the URL for.
Return value
string The URL to use to submit requests to the Robokassa server.
1 call to commerce_robokassa_server_url()
- commerce_robokassa_order_form in ./
commerce_robokassa.module - Builds a robokassa form from an order object.
File
- ./
commerce_robokassa.module, line 582 - Drupal Commerce Robokassa payment method.
Code
function commerce_robokassa_server_url($server) {
$servers = array(
'test' => 'https://auth.robokassa.ru/Merchant/Index.aspx',
'live' => 'https://auth.robokassa.ru/Merchant/Index.aspx',
);
return $servers[$server];
}