Changeset 2507761
- Timestamp:
- 04/01/2021 10:30:49 PM (5 years ago)
- Location:
- wc-robokassa/trunk
- Files:
-
- 23 added
- 1 deleted
- 11 edited
-
assets/css/main.css.map (added)
-
includes/class-wc-robokassa-api.php (modified) (10 diffs)
-
includes/class-wc-robokassa-logger.php (modified) (1 diff)
-
includes/class-wc-robokassa-method.php (modified) (30 diffs)
-
includes/class-wc-robokassa.php (modified) (7 diffs)
-
includes/functions-wc-robokassa.php (modified) (2 diffs)
-
includes/tecodes-local (deleted)
-
languages/wc-robokassa-ru_RU.mo (modified) (previous)
-
languages/wc-robokassa-ru_RU.po (modified) (38 diffs)
-
languages/wc-robokassa.pot (modified) (36 diffs)
-
license.txt (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
vendors (added)
-
vendors/tecodes (added)
-
vendors/tecodes/tecodes-local (added)
-
vendors/tecodes/tecodes-local/bootstrap.php (added)
-
vendors/tecodes/tecodes-local/class-tecodes-local-http.php (added)
-
vendors/tecodes/tecodes-local/class-tecodes-local-instance.php (added)
-
vendors/tecodes/tecodes-local/class-tecodes-local.php (added)
-
vendors/tecodes/tecodes-local/http (added)
-
vendors/tecodes/tecodes-local/http/class-tecodes-local-http-basic-auth.php (added)
-
vendors/tecodes/tecodes-local/http/class-tecodes-local-http-exception.php (added)
-
vendors/tecodes/tecodes-local/http/class-tecodes-local-http-oauth.php (added)
-
vendors/tecodes/tecodes-local/http/class-tecodes-local-http-options.php (added)
-
vendors/tecodes/tecodes-local/http/class-tecodes-local-http-request.php (added)
-
vendors/tecodes/tecodes-local/http/class-tecodes-local-http-response.php (added)
-
vendors/tecodes/tecodes-local/interface (added)
-
vendors/tecodes/tecodes-local/interface/interface-tecodes-local-code.php (added)
-
vendors/tecodes/tecodes-local/interface/interface-tecodes-local-http.php (added)
-
vendors/tecodes/tecodes-local/interface/interface-tecodes-local-instance.php (added)
-
vendors/tecodes/tecodes-local/interface/interface-tecodes-local-storage-code.php (added)
-
vendors/tecodes/tecodes-local/interface/interface-tecodes-local.php (added)
-
vendors/tecodes/tecodes-local/storage (added)
-
vendors/tecodes/tecodes-local/storage/class-tecodes-local-storage-code.php (added)
-
wc-robokassa.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-robokassa/trunk/includes/class-wc-robokassa-api.php
r2292827 r2507761 10 10 { 11 11 /** 12 * BaseApi url12 * Api url 13 13 * 14 14 * @var string 15 15 */ 16 private $base_api_url = 'https://auth.robokassa.ru/Merchant/WebService/Service.asmx'; 16 private $api_url = 'https://auth.robokassa.ru/Merchant/WebService/Service.asmx'; 17 18 /** 19 * Api endpoint 20 * 21 * @var string 22 */ 23 private $api_endpoint = ''; 17 24 18 25 /** … … 32 39 /** 33 40 * Wc_Robokassa_Api constructor 41 * 42 * @return void 43 * 44 * @throws Exception 34 45 */ 35 46 public function __construct() 36 47 { 48 if(!defined('LIBXML_VERSION')) 49 { 50 throw new Exception('LIBXML_VERSION not defined'); 51 } 52 53 if(!function_exists('libxml_use_internal_errors')) 54 { 55 throw new Exception('libxml_use_internal_errors'); 56 } 57 58 if(!function_exists('wp_remote_get') || !function_exists('wp_remote_retrieve_body')) 59 { 60 throw new Exception('wp_remote_get && wp_remote_retrieve_body is not available'); 61 } 62 63 if(!class_exists('SimpleXMLElement')) 64 { 65 throw new Exception('SimpleXMLElement is not exists'); 66 } 67 68 libxml_use_internal_errors(true); 37 69 } 38 70 … … 40 72 * Get base api URL 41 73 * 74 * @since 4.1.0 75 * 42 76 * @return string 43 77 */ 44 public function get_ base_api_url()45 { 46 return $this-> base_api_url;78 public function get_api_url() 79 { 80 return $this->api_url; 47 81 } 48 82 … … 50 84 * Set base api URL 51 85 * 52 * @param string $base_api_url 53 */ 54 public function set_base_api_url($base_api_url) 55 { 56 $this->base_api_url = $base_api_url; 86 * @since 4.1.0 87 * 88 * @param string $api_url 89 */ 90 public function set_api_url($api_url) 91 { 92 $this->api_url = $api_url; 93 } 94 95 /** 96 * Get api endpoint 97 * 98 * @since 4.1.0 99 * 100 * @return string 101 */ 102 public function get_api_endpoint() 103 { 104 return $this->api_endpoint; 105 } 106 107 /** 108 * Set api endpoint 109 * 110 * @since 4.1.0 111 * 112 * @param string $api_endpoint 113 */ 114 public function set_api_endpoint($api_endpoint) 115 { 116 $this->api_endpoint = $api_endpoint; 57 117 } 58 118 … … 107 167 108 168 /** 109 * Available API 110 * 111 * @return int 112 */ 113 public function is_available() 114 { 115 /** 116 * Check WP 117 */ 118 if(!function_exists('wp_remote_get') || !function_exists('wp_remote_retrieve_body')) 119 { 120 return 0; 121 } 122 123 /** 124 * Check SimpleXMLElement installed 125 */ 126 if(class_exists('SimpleXMLElement')) 127 { 128 return 1; 129 } 130 131 return 0; 169 * Request execute 170 * 171 * @return mixed 172 * 173 * @throws Exception 174 */ 175 private function execute() 176 { 177 $url = $this->get_api_url() . $this->get_api_endpoint(); 178 179 $response = wp_remote_get($url); 180 $this->set_last_response($response); 181 182 $response_body = wp_remote_retrieve_body($this->get_last_response()); 183 $this->set_last_response_body($response_body); 184 185 if($this->get_last_response_body() === '') 186 { 187 return false; 188 } 189 190 $xml_data = simplexml_load_string($this->get_last_response_body()); 191 192 if(!$xml_data) 193 { 194 throw new Exception('Wc_Robokassa_Api execute: xml errors'); 195 } 196 197 return $xml_data; 132 198 } 133 199 … … 144 210 * @param $merchantLogin string Логин магазина. 145 211 * 146 * @return mixedfalse - error, integer - success212 * @return false|string false - error, integer - success 147 213 */ 148 214 public function xml_calc_out_sum($IncCurrLabel, $IncSum, $merchantLogin = 'demo') 149 215 { 150 /** 151 * Check available 152 */ 153 $is_available = $this->is_available(); 154 if($is_available === 0) { return false; } 155 156 /** 157 * URL 158 */ 159 $url = $this->get_base_api_url() . '/CalcOutSumm?MerchantLogin=' . $merchantLogin . '&IncCurrLabel=' . $IncCurrLabel . '&IncSum=' . $IncSum; 160 161 /** 162 * Request execute 163 */ 164 $this->set_last_response(wp_remote_get($url)); 165 166 /** 167 * Last response set body 168 */ 169 $this->set_last_response_body(wp_remote_retrieve_body($this->get_last_response())); 170 171 /** 172 * Response is very good 173 */ 174 if($this->get_last_response_body() != '') 175 { 176 /** 177 * SimpleXMl 178 */ 179 if($is_available === 1) 180 { 181 /** 182 * Response normalize 183 */ 184 try 185 { 186 $response_data = new SimpleXMLElement($this->get_last_response_body()); 187 } 188 catch(Exception $e) 189 { 190 return false; 191 } 192 193 /** 194 * Check error 195 */ 196 if(!isset($response_data->Result) || $response_data->Result->Code != 0) 197 { 198 return false; 199 } 200 201 /** 202 * OutSum 203 */ 204 if(isset($response_data->OutSum)) 205 { 206 return (string)$response_data->OutSum; 207 } 208 209 return false; 210 } 216 $endpoint = '/CalcOutSumm?MerchantLogin=' . $merchantLogin . '&IncCurrLabel=' . $IncCurrLabel . '&IncSum=' . $IncSum; 217 $this->set_api_endpoint($endpoint); 218 219 try 220 { 221 $response_data = $this->execute(); 222 } 223 catch(Exception $e) 224 { 225 wc_robokassa_logger()->error('xml_calc_out_sum', $e); 226 return false; 227 } 228 229 /** 230 * Check error 231 */ 232 if(!isset($response_data->Result) || $response_data->Result->Code != 0) 233 { 234 return false; 235 } 236 237 /** 238 * OutSum 239 */ 240 if(isset($response_data->OutSum)) 241 { 242 return (string)$response_data->OutSum; 211 243 } 212 244 … … 233 265 public function xml_op_state($merchantLogin, $InvoiceID, $Signature) 234 266 { 235 /** 236 * Check available 237 */ 238 $is_available = $this->is_available(); 239 if($is_available === 0) { return false; } 240 241 /** 242 * URL 243 */ 244 $url = $this->get_base_api_url() . '/OpState?MerchantLogin=' . $merchantLogin . '&InvoiceID=' . $InvoiceID . '&Signature=' . $Signature; 245 246 /** 247 * Request execute 248 */ 249 $this->set_last_response(wp_remote_get($url)); 250 251 /** 252 * Last response set body 253 */ 254 $this->set_last_response_body(wp_remote_retrieve_body($this->get_last_response())); 255 256 /** 257 * Response is very good 258 */ 259 if($this->get_last_response_body() != '') 260 { 261 $op_state_data = array(); 262 263 /** 264 * SimpleXML 265 */ 266 if($is_available === 1) 267 { 268 /** 269 * Response normalize 270 */ 271 try 272 { 273 $response_data = new SimpleXMLElement($this->get_last_response_body()); 274 } 275 catch(Exception $e) 276 { 277 return false; 278 } 279 280 /** 281 * Check error 282 */ 283 if(!isset($response_data->Result) || $response_data->Result->Code != 0) 284 { 285 return false; 286 } 287 288 /** 289 * Current payment state 290 */ 291 if(isset($response_data->State)) 292 { 293 $op_state_data['state'] = array 294 ( 295 'code' => (string)$response_data->State->Code, 296 'request_date' => (string)$response_data->State->RequestDate, 297 'state_date' => (string)$response_data->State->StateDate, 298 ); 299 } 300 301 /** 302 * Информация об операции оплаты счета 303 */ 304 if(isset($response_data->Info)) 305 { 306 $op_state_data['info'] = array 307 ( 308 'inc_curr_label' => (string)$response_data->Info->IncCurrLabel, 309 'inc_sum' => (string)$response_data->Info->IncSum, 310 'inc_account' => (string)$response_data->Info->IncAccount, 311 'payment_method_code' => (string)$response_data->Info->PaymentMethod->Code, 312 'payment_method_description' => (string)$response_data->Info->PaymentMethod->Description, 313 'out_curr_label' => (string)$response_data->Info->OutCurrLabel, 314 'out_sum' => (string)$response_data->Info->OutSum, 315 ); 316 } 317 318 return $op_state_data; 319 } 320 } 321 322 return false; 267 $endpoint = '/OpState?MerchantLogin=' . $merchantLogin . '&InvoiceID=' . $InvoiceID . '&Signature=' . $Signature; 268 269 $this->set_api_endpoint($endpoint); 270 271 try 272 { 273 $response_data = $this->execute(); 274 } 275 catch(Exception $e) 276 { 277 wc_robokassa_logger()->error('xml_op_state', $e); 278 return false; 279 } 280 281 $op_state_data = []; 282 283 /** 284 * Check error 285 */ 286 if(!isset($response_data->Result) || $response_data->Result->Code != 0) 287 { 288 return false; 289 } 290 291 /** 292 * Current payment state 293 */ 294 if(isset($response_data->State)) 295 { 296 $op_state_data['state'] = array 297 ( 298 'code' => (string)$response_data->State->Code, 299 'request_date' => (string)$response_data->State->RequestDate, 300 'state_date' => (string)$response_data->State->StateDate, 301 ); 302 } 303 304 /** 305 * Информация об операции оплаты счета 306 */ 307 if(isset($response_data->Info)) 308 { 309 $op_state_data['info'] = array 310 ( 311 'inc_curr_label' => (string)$response_data->Info->IncCurrLabel, 312 'inc_sum' => (string)$response_data->Info->IncSum, 313 'inc_account' => (string)$response_data->Info->IncAccount, 314 'payment_method_code' => (string)$response_data->Info->PaymentMethod->Code, 315 'payment_method_description' => (string)$response_data->Info->PaymentMethod->Description, 316 'out_curr_label' => (string)$response_data->Info->OutCurrLabel, 317 'out_sum' => (string)$response_data->Info->OutSum, 318 ); 319 } 320 321 return $op_state_data; 323 322 } 324 323 … … 337 336 * en – английский. 338 337 * 339 * @return mixed false - error, array - success338 * @return array|false 340 339 */ 341 340 public function xml_get_currencies($merchantLogin, $language) 342 341 { 343 /** 344 * Check available 345 */ 346 $is_available = $this->is_available(); 347 if($is_available === 0) { return false; } 348 349 /** 350 * URL 351 */ 352 $url = $this->get_base_api_url() . '/GetCurrencies?MerchantLogin=' . $merchantLogin . '&language=' . $language; 353 354 /** 355 * Request execute 356 */ 357 $this->set_last_response(wp_remote_get($url)); 358 359 /** 360 * Last response set body 361 */ 362 $this->set_last_response_body(wp_remote_retrieve_body($this->get_last_response())); 363 364 /** 365 * Response is very good 366 */ 367 if($this->get_last_response_body() != '') 368 { 369 /** 370 * Данные валют 371 */ 372 $currencies_data = array(); 373 374 /** 375 * SimpleXML 376 */ 377 if($is_available === 1) 342 $endpoint = '/GetCurrencies?MerchantLogin=' . $merchantLogin . '&language=' . $language; 343 344 $this->set_api_endpoint($endpoint); 345 346 try 347 { 348 $response_data = $this->execute(); 349 } 350 catch(Exception $e) 351 { 352 wc_robokassa_logger()->error('xml_get_currencies', $e); 353 return false; 354 } 355 356 /** 357 * Available currencies 358 */ 359 $currencies_data = []; 360 361 if(!isset($response_data->Result) || $response_data->Result->Code != 0 || !isset($response_data->Groups)) 362 { 363 return false; 364 } 365 366 foreach($response_data->Groups->Group as $xml_group) 367 { 368 $xml_group_attributes = $xml_group->attributes(); 369 370 foreach($xml_group->Items->Currency as $xml_group_item) 378 371 { 379 /** 380 * Response normalize 381 */ 382 try 372 $xml_group_item_attributes = $xml_group_item->attributes(); 373 374 $response_item = array 375 ( 376 'group_code' => (string)$xml_group_attributes['Code'], 377 'group_description' => (string)$xml_group_attributes['Description'], 378 'currency_label' => (string)$xml_group_item_attributes['Label'], 379 'currency_alias' => (string)$xml_group_item_attributes['Alias'], 380 'currency_name' => (string)$xml_group_item_attributes['Name'], 381 'language' => $language, 382 ); 383 384 if(isset($xml_group_item_attributes['MaxValue'])) 383 385 { 384 $response_ data = new SimpleXMLElement($this->get_last_response_body());386 $response_item['sum_max'] = (string)$xml_group_item_attributes['MaxValue']; 385 387 } 386 catch (Exception $e) 388 389 if(isset($xml_group_item_attributes['MinValue'])) 387 390 { 388 return false;391 $response_item['sum_min'] = (string)$xml_group_item_attributes['MinValue']; 389 392 } 390 393 391 /** 392 * Check error 393 */ 394 if(!isset($response_data->Result) || $response_data->Result->Code != 0 || !isset($response_data->Groups)) 395 { 396 return false; 397 } 398 399 /** 400 * Перебираем данные 401 */ 402 foreach($response_data->Groups->Group as $xml_group) 403 { 404 $xml_group_attributes = $xml_group->attributes(); 405 406 foreach($xml_group->Items->Currency as $xml_group_item) 407 { 408 $xml_group_item_attributes = $xml_group_item->attributes(); 409 410 $response_item = array 411 ( 412 'group_code' => (string)$xml_group_attributes['Code'], 413 'group_description' => (string)$xml_group_attributes['Description'], 414 'currency_label' => (string)$xml_group_item_attributes['Label'], 415 'currency_alias' => (string)$xml_group_item_attributes['Alias'], 416 'currency_name' => (string)$xml_group_item_attributes['Name'], 417 'language' => $language, 418 ); 419 420 if(isset($xml_group_item_attributes['MaxValue'])) 421 { 422 $response_item['sum_max'] = (string)$xml_group_item_attributes['MaxValue']; 423 } 424 425 if(isset($xml_group_item_attributes['MinValue'])) 426 { 427 $response_item['sum_min'] = (string)$xml_group_item_attributes['MinValue']; 428 } 429 430 $currencies_data[] = $response_item; 431 } 432 } 433 434 return $currencies_data; 394 $currencies_data[] = $response_item; 435 395 } 436 396 } 437 397 438 return false;398 return $currencies_data; 439 399 } 440 400 … … 454 414 * en – английский. 455 415 * 456 * @return mixed false - error, array - success 457 */ 458 public function xml_get_payment_methods($merchantLogin, $language) 459 { 460 /** 461 * Check available 462 */ 463 $is_available = $this->is_available(); 464 if($is_available === 0) { return false; } 465 466 /** 467 * URL 468 */ 469 $url = $this->get_base_api_url() . '/GetPaymentMethods?MerchantLogin=' . $merchantLogin . '&language=' . $language; 470 471 /** 472 * Request execute 473 */ 474 $this->set_last_response(wp_remote_get($url)); 475 476 /** 477 * Last response set body 478 */ 479 $this->set_last_response_body(wp_remote_retrieve_body($this->get_last_response())); 480 481 /** 482 * Response is very good 483 */ 484 if($this->get_last_response_body() != '') 485 { 486 /** 487 * Данные валют 488 */ 489 $methods_data = array(); 490 491 /** 492 * SimpleXML 493 */ 494 if($is_available === 1) 495 { 496 /** 497 * Response normalize 498 */ 499 try 500 { 501 $response_data = new SimpleXMLElement($this->get_last_response_body()); 502 } 503 catch (Exception $e) 504 { 505 return false; 506 } 507 508 /** 509 * Check error 510 */ 511 if (!isset($response_data->Result) || $response_data->Result->Code != 0) 512 { 513 return false; 514 } 515 516 /** 517 * Перебираем данные 518 */ 519 foreach ( $response_data->Methods->Method as $xml_method ) 520 { 521 $xml_method_attributes = $xml_method->attributes(); 522 523 $methods_data[ (string) $xml_method_attributes['Code'] ] = array 524 ( 525 'method_code' => (string) $xml_method_attributes['Code'], 526 'method_description' => (string) $xml_method_attributes['Description'], 527 'language' => $language 528 ); 529 } 530 531 return $methods_data; 532 } 533 } 534 535 return false; 416 * @return array|false - error, array - success 417 */ 418 public function xml_get_payment_methods($merchantLogin = 'demo', $language = 'ru') 419 { 420 $endpoint = '/GetPaymentMethods?MerchantLogin=' . $merchantLogin . '&language=' . $language; 421 422 $this->set_api_endpoint($endpoint); 423 424 try 425 { 426 $response_data = $this->execute(); 427 } 428 catch(Exception $e) 429 { 430 wc_robokassa_logger()->error('xml_get_payment_methods', $e); 431 return false; 432 } 433 434 /** 435 * Available methods 436 */ 437 $methods_data = []; 438 439 /** 440 * Check error 441 */ 442 if(!isset($response_data->Result) || $response_data->Result->Code != 0) 443 { 444 return false; 445 } 446 447 foreach($response_data->Methods->Method as $xml_method) 448 { 449 $xml_method_attributes = $xml_method->attributes(); 450 451 $methods_data[ (string) $xml_method_attributes['Code'] ] = array 452 ( 453 'method_code' => (string) $xml_method_attributes['Code'], 454 'method_description' => (string) $xml_method_attributes['Description'], 455 'language' => $language 456 ); 457 } 458 459 return $methods_data; 536 460 } 537 461 … … 560 484 public function xml_get_rates($merchantLogin, $OutSum, $IncCurrLabel = '', $language = 'ru') 561 485 { 562 /** 563 * Check available 564 */ 565 $is_available = $this->is_available(); 566 if($is_available === 0) { return false; } 567 568 /** 569 * URL 570 */ 571 $url = $this->get_base_api_url() . '/GetRates?MerchantLogin=' . $merchantLogin . '&IncCurrLabel=' . $IncCurrLabel . '&OutSum=' . $OutSum . '&Language=' . $language; 572 573 /** 574 * Request execute 575 */ 576 $this->set_last_response(wp_remote_get($url)); 577 578 /** 579 * Last response set body 580 */ 581 $this->set_last_response_body(wp_remote_retrieve_body($this->get_last_response())); 582 583 /** 584 * Response is very good 585 */ 586 if($this->get_last_response_body() != '') 587 { 588 /** 589 * Данные валют 590 */ 591 $rates_data = array(); 592 593 /** 594 * SimpleXML 595 */ 596 if($is_available === 1) 486 $endpoint = '/GetRates?MerchantLogin=' . $merchantLogin . '&IncCurrLabel=' . $IncCurrLabel . '&OutSum=' . $OutSum . '&Language=' . $language; 487 488 $this->set_api_endpoint($endpoint); 489 490 try 491 { 492 $response_data = $this->execute(); 493 } 494 catch(Exception $e) 495 { 496 wc_robokassa_logger()->error('xml_get_rates', $e); 497 return false; 498 } 499 500 /** 501 * Rates 502 */ 503 $rates_data = []; 504 505 /** 506 * Check error 507 */ 508 if(!isset($response_data->Result) || $response_data->Result->Code != 0) 509 { 510 return false; 511 } 512 513 foreach($response_data->Groups->Group as $xml_group) 514 { 515 $xml_group_attributes = $xml_group->attributes(); 516 517 foreach($xml_group->Items->Currency as $xml_group_item) 597 518 { 598 /** 599 * Response normalize 600 */ 601 try 519 $xml_group_item_attributes = $xml_group_item->attributes(); 520 $xml_group_item_rate_attributes = $xml_group_item->Rate->attributes(); 521 522 $rates_item = array 523 ( 524 'group_code' => (string)$xml_group_attributes['Code'], 525 'group_description' => (string)$xml_group_attributes['Description'], 526 'currency_label' => (string)$xml_group_item_attributes['Label'], 527 'currency_alias' => (string)$xml_group_item_attributes['Alias'], 528 'currency_name' => (string)$xml_group_item_attributes['Name'], 529 'rate_inc_sum' => (string)$xml_group_item_rate_attributes['IncSum'], 530 'language' => $language, 531 ); 532 533 if(isset($xml_group_item_attributes['MaxValue'])) 602 534 { 603 $r esponse_data = new SimpleXMLElement($this->get_last_response_body());535 $rates_item['currency_sum_max'] = (string)$xml_group_item_attributes['MaxValue']; 604 536 } 605 catch(Exception $e) 537 538 if(isset($xml_group_item_attributes['MinValue'])) 606 539 { 607 return false;540 $rates_item['currency_sum_min'] = (string)$xml_group_item_attributes['MinValue']; 608 541 } 609 542 610 /** 611 * Check error 612 */ 613 if(!isset($response_data->Result) || $response_data->Result->Code != 0) 614 { 615 return false; 616 } 617 618 /** 619 * Перебираем данные 620 */ 621 foreach($response_data->Groups->Group as $xml_group) 622 { 623 $xml_group_attributes = $xml_group->attributes(); 624 625 foreach($xml_group->Items->Currency as $xml_group_item) 626 { 627 $xml_group_item_attributes = $xml_group_item->attributes(); 628 $xml_group_item_rate_attributes = $xml_group_item->Rate->attributes(); 629 630 $rates_item = array 631 ( 632 'group_code' => (string)$xml_group_attributes['Code'], 633 'group_description' => (string)$xml_group_attributes['Description'], 634 'currency_label' => (string)$xml_group_item_attributes['Label'], 635 'currency_alias' => (string)$xml_group_item_attributes['Alias'], 636 'currency_name' => (string)$xml_group_item_attributes['Name'], 637 'rate_inc_sum' => (string)$xml_group_item_rate_attributes['IncSum'], 638 'language' => $language, 639 ); 640 641 if(isset($xml_group_item_attributes['MaxValue'])) 642 { 643 $rates_item['currency_sum_max'] = (string)$xml_group_item_attributes['MaxValue']; 644 } 645 646 if(isset($xml_group_item_attributes['MinValue'])) 647 { 648 $rates_item['currency_sum_min'] = (string)$xml_group_item_attributes['MinValue']; 649 } 650 651 $rates_data[] = $rates_item; 652 } 653 } 654 655 return $rates_data; 543 $rates_data[] = $rates_item; 656 544 } 657 545 } 658 546 547 return $rates_data; 548 } 549 550 /** 551 * Получение информации о доступном лимите платежей 552 * 553 * @param string $merchantLogin 554 * 555 * @return string|false 556 */ 557 public function xml_get_limit($merchantLogin = 'demo') 558 { 559 $endpoint = '/GetLimit?MerchantLogin=' . $merchantLogin; 560 561 $this->set_api_endpoint($endpoint); 562 563 try 564 { 565 $response_data = $this->execute(); 566 } 567 catch(Exception $e) 568 { 569 wc_robokassa_logger()->error('xml_get_limit', $e); 570 return false; 571 } 572 573 /** 574 * Check error 575 */ 576 if(!isset($response_data->Result) || $response_data->Result->Code != 0) 577 { 578 return false; 579 } 580 581 /** 582 * Limit exists 583 */ 584 if(isset($response_data->Limit)) 585 { 586 return (string)$response_data->Limit; 587 } 588 659 589 return false; 660 590 } 661 662 /**663 * Получение информации о доступном лимите платежей664 *665 * @param string $merchantLogin666 *667 * @return mixed668 */669 public function xml_get_limit($merchantLogin)670 {671 /**672 * Check available673 */674 $is_available = $this->is_available();675 if($is_available === 0) { return false; }676 677 /**678 * URL679 */680 $url = $this->get_base_api_url() . '/GetLimit?MerchantLogin=' . $merchantLogin;681 682 /**683 * Request execute684 */685 $this->set_last_response(wp_remote_get($url));686 687 /**688 * Last response set body689 */690 $this->set_last_response_body(wp_remote_retrieve_body($this->get_last_response()));691 692 /**693 * Response is very good694 */695 if($this->get_last_response_body() != '')696 {697 /**698 * SimpleXMl699 */700 if($is_available === 1)701 {702 /**703 * Response normalize704 */705 try706 {707 $response_data = new SimpleXMLElement($this->get_last_response_body());708 }709 catch(Exception $e)710 {711 return false;712 }713 714 /**715 * Check error716 */717 if(!isset($response_data->Result) || $response_data->Result->Code != 0)718 {719 return false;720 }721 722 /**723 * Limit exists724 */725 if(isset($response_data->Limit))726 {727 return (string)$response_data->Limit;728 }729 730 return false;731 }732 }733 734 return false;735 }736 591 } -
wc-robokassa/trunk/includes/class-wc-robokassa-logger.php
r2334486 r2507761 60 60 * 61 61 * @throws Exception 62 * 63 * @return void 62 64 */ 63 65 public function __construct($path = '', $level = 400, $name = '') -
wc-robokassa/trunk/includes/class-wc-robokassa-method.php
r2334486 r2507761 283 283 add_filter('wc_robokassa_init_form_fields', array($this, 'init_form_fields_tecodes'), 5); 284 284 add_filter('wc_robokassa_init_form_fields', array($this, 'init_form_fields_main'), 10); 285 add_filter('wc_robokassa_init_form_fields', array($this, 'init_form_fields_payments'), 15); 285 286 add_filter('wc_robokassa_init_form_fields', array($this, 'init_form_fields_test_payments'), 20); 286 287 add_filter('wc_robokassa_init_form_fields', array($this, 'init_form_fields_interface'), 30); … … 965 966 $fields['tecodes'] = array 966 967 ( 967 'title' => __(' Activation', 'wc-robokassa'),968 'title' => __('Support activation', 'wc-robokassa'), 968 969 'type' => 'title', 969 970 'class' => WC_Robokassa()->tecodes()->is_valid() ? '' : 'bg-warning p-2 mt-1', … … 1004 1005 'desc_tip' => false, 1005 1006 'description' => '', 1006 'custom_attributes' => array(),1007 'custom_attributes' => [], 1007 1008 ); 1008 1009 … … 1015 1016 <fieldset> 1016 1017 <div class="row"> 1018 <div class="col-4 p-0"> 1019 <button style="margin: 0;height: 90%; width: 90%;" name="save" class="button-primary woocommerce-save-button" type="submit" value="<?php _e('Activate', 'wc-robokassa') ?>"><?php _e('Activate', 'wc-robokassa') ?></button> 1020 </div> 1017 1021 <div class="col-20 p-0"> 1018 1022 <legend class="screen-reader-text"><span><?php echo wp_kses_post($data['title']); ?></span></legend> … … 1025 1029 <?php echo $this->get_description_html($data); // WPCS: XSS ok.?> 1026 1030 </div> 1027 <div class="col-4 p-0">1028 <button style="float: right;margin: 0px;height: 90%; width: 90%;" name="save" class="button-primary woocommerce-save-button" type="submit" value="<?php _e('Activate', 'wc-robokassa') ?>"><?php _e('Activate', 'wc-robokassa') ?></button>1029 </div>1030 1031 </div> 1031 1032 </fieldset> … … 1055 1056 $fields['enabled'] = array 1056 1057 ( 1057 'title' => __(' Online / Offline', 'wc-robokassa'),1058 'title' => __('Main method', 'wc-robokassa'), 1058 1059 'type' => 'checkbox', 1059 'label' => __('Tick the checkbox if you need to activatethe payment gateway.', 'wc-robokassa'),1060 'description' => __('On dis connection, the payment gateway will not be available for selection on the site. It isuseful for payments through subsidiaries, or just in case of temporary disconnection.', 'wc-robokassa'),1060 'label' => __('Tick the checkbox if you need to show the payment gateway.', 'wc-robokassa'), 1061 'description' => __('On disabled, the payment gateway will not be available for selection on the site. Feature useful for payments through subsidiaries, or just in case of temporary disconnection.', 'wc-robokassa'), 1061 1062 'default' => 'off' 1063 ); 1064 1065 $fields['sub_methods'] = array 1066 ( 1067 'title' => __('Sub methods', 'wc-robokassa'), 1068 'type' => 'checkbox', 1069 'label' => __('Tick the checkbox to enable sub methods feature. Default is disabled.', 'wc-robokassa'), 1070 'description' => __('Use of all mechanisms of child payment methods. The main method can be turned off. The cart will show the child payment methods.', 'wc-robokassa'), 1071 'default' => 'no' 1062 1072 ); 1063 1073 … … 1068 1078 'description' => __('Unique identifier for shop from Robokassa.', 'wc-robokassa'), 1069 1079 'default' => '' 1080 ); 1081 1082 $fields['test'] = array 1083 ( 1084 'title' => __('Test mode', 'wc-robokassa'), 1085 'type' => 'checkbox', 1086 'label' => __('Tick the checkbox to enable test mode. Default is enabled.', 'wc-robokassa'), 1087 'description' => __('When you activate the test mode, no funds will be debited. In this case, the payment gateway will only be displayed when you log in with an administrator account. This is done in order to protect you from false orders.', 'wc-robokassa'), 1088 'default' => 'yes' 1089 ); 1090 1091 $result_url_description = '<p class="input-text regular-input robokassa_urls">' . WC_Robokassa()->get_result_url() . '</p>' . __('Address to notify the site of the results of operations in the background. Copy the address and enter it in your personal account ROBOKASSA in the technical settings. Notification method: POST.', 'wc-robokassa'); 1092 1093 $fields['result_url'] = array 1094 ( 1095 'title' => __('Result Url', 'wc-robokassa'), 1096 'type' => 'text', 1097 'disabled' => true, 1098 'description' => $result_url_description, 1099 'default' => '' 1100 ); 1101 1102 $success_url_description = '<p class="input-text regular-input robokassa_urls">' . WC_Robokassa()->get_success_url() . '</p>' . __('The address for the user to go to the site after successful payment. Copy the address and enter it in your personal account ROBOKASSA in the technical settings. Notification method: POST. You can specify other addresses of your choice.', 'wc-robokassa'); 1103 1104 $fields['success_url'] = array 1105 ( 1106 'title' => __('Success Url', 'wc-robokassa'), 1107 'type' => 'text', 1108 'disabled' => true, 1109 'description' => $success_url_description, 1110 'default' => '' 1111 ); 1112 1113 $fail_url_description = '<p class="input-text regular-input robokassa_urls">' . WC_Robokassa()->get_fail_url() . '</p>' . __('The address for the user to go to the site, after payment with an error. Copy the address and enter it in your personal account ROBOKASSA in the technical settings. Notification method: POST. You can specify other addresses of your choice.', 'wc-robokassa'); 1114 1115 $fields['fail_url'] = array 1116 ( 1117 'title' => __('Fail Url', 'wc-robokassa'), 1118 'type' => 'text', 1119 'disabled' => true, 1120 'description' => $fail_url_description, 1121 'default' => '' 1122 ); 1123 1124 return $fields; 1125 } 1126 1127 /** 1128 * Add settings for payments 1129 * 1130 * @param $fields 1131 * 1132 * @return array 1133 */ 1134 public function init_form_fields_payments($fields) 1135 { 1136 $fields['payments'] = array 1137 ( 1138 'title' => __('Parameters for real payments', 'wc-robokassa'), 1139 'type' => 'title', 1140 'description' => __('Passwords and hashing algorithms for real payments differ from those specified for test payments.', 'wc-robokassa'), 1070 1141 ); 1071 1142 … … 1103 1174 ); 1104 1175 1105 $result_url_description = '<p class="input-text regular-input robokassa_urls">' . WC_Robokassa()->get_result_url() . '</p>' . __('Address to notify the site of the results of operations in the background. Copy the address and enter it in your personal account ROBOKASSA in the technical settings. Notification method: POST.', 'wc-robokassa');1106 1107 $fields['result_url'] = array1108 (1109 'title' => __('Result Url', 'wc-robokassa'),1110 'type' => 'text',1111 'disabled' => true,1112 'description' => $result_url_description,1113 'default' => ''1114 );1115 1116 $success_url_description = '<p class="input-text regular-input robokassa_urls">' . WC_Robokassa()->get_success_url() . '</p>' . __('The address for the user to go to the site after successful payment. Copy the address and enter it in your personal account ROBOKASSA in the technical settings. Notification method: POST. You can specify other addresses of your choice.', 'wc-robokassa');1117 1118 $fields['success_url'] = array1119 (1120 'title' => __('Success Url', 'wc-robokassa'),1121 'type' => 'text',1122 'disabled' => true,1123 'description' => $success_url_description,1124 'default' => ''1125 );1126 1127 $fail_url_description = '<p class="input-text regular-input robokassa_urls">' . WC_Robokassa()->get_fail_url() . '</p>' . __('The address for the user to go to the site, after payment with an error. Copy the address and enter it in your personal account ROBOKASSA in the technical settings. Notification method: POST. You can specify other addresses of your choice.', 'wc-robokassa');1128 1129 $fields['fail_url'] = array1130 (1131 'title' => __('Fail Url', 'wc-robokassa'),1132 'type' => 'text',1133 'disabled' => true,1134 'description' => $fail_url_description,1135 'default' => ''1136 );1137 1138 1176 return $fields; 1139 1177 } … … 1153 1191 'type' => 'title', 1154 1192 'description' => __('Passwords and hashing algorithms for test payments differ from those specified for real payments.', 'wc-robokassa'), 1155 );1156 1157 $fields['test'] = array1158 (1159 'title' => __('Test mode', 'wc-robokassa'),1160 'type' => 'checkbox',1161 'label' => __('Select the checkbox to enable this feature. Default is enabled.', 'wc-robokassa'),1162 'description' => __('When you activate the test mode, no funds will be debited. In this case, the payment gateway will only be displayed when you log in with an administrator account. This is done in order to protect you from false orders.', 'wc-robokassa'),1163 'default' => 'yes'1164 1193 ); 1165 1194 … … 1197 1226 ); 1198 1227 1199 $fields['test_mode_checkout_notice'] = array1200 (1201 'title' => __('Test notification display on the test mode', 'wc-robokassa'),1202 'type' => 'checkbox',1203 'label' => __('Select the checkbox to enable this feature. Default is enabled.', 'wc-robokassa'),1204 'description' => __('A notification about the activated test mode will be displayed when the payment.', 'wc-robokassa'),1205 'default' => 'yes'1206 );1207 1208 1228 return $fields; 1209 1229 } … … 1225 1245 ); 1226 1246 1227 $fields['sub_methods'] = array1228 (1229 'title' => __('Enable sub methods', 'wc-robokassa'),1230 'type' => 'checkbox',1231 'label' => __('Select the checkbox to enable this feature. Default is disabled.', 'wc-robokassa'),1232 'description' => __('Use of all mechanisms add a child of payment methods.', 'wc-robokassa'),1233 'default' => 'no'1234 );1235 1236 1247 $fields['sub_methods_check_available'] = array 1237 1248 ( 1238 1249 'title' => __('Check available via the API', 'wc-robokassa'), 1239 1250 'type' => 'checkbox', 1240 'label' => __(' Selectthe checkbox to enable this feature. Default is disabled.', 'wc-robokassa'),1251 'label' => __('Tick the checkbox to enable this feature. Default is disabled.', 'wc-robokassa'), 1241 1252 'description' => __('Check whether child methods are currently available for payment.', 'wc-robokassa'), 1242 1253 'default' => 'no' … … 1247 1258 'title' => __('Show the total amount including the fee', 'wc-robokassa'), 1248 1259 'type' => 'checkbox', 1249 'label' => __(' Selectthe checkbox to enable this feature. Default is disabled.', 'wc-robokassa'),1260 'label' => __('Tick the checkbox to enable this feature. Default is disabled.', 'wc-robokassa'), 1250 1261 'description' => __('If you enable this option, the exact amount payable, including fees, will be added to the payment method headers.', 'wc-robokassa'), 1251 1262 'default' => 'no' … … 1275 1286 'title' => __('Show icon?', 'wc-robokassa'), 1276 1287 'type' => 'checkbox', 1277 'label' => __(' Selectthe checkbox to enable this feature. Default is enabled.', 'wc-robokassa'),1288 'label' => __('Tick the checkbox to enable this feature. Default is enabled.', 'wc-robokassa'), 1278 1289 'default' => 'yes', 1279 1290 'description' => __('Next to the name of the payment method will display the logo Robokassa.', 'wc-robokassa'), 1291 ); 1292 1293 $fields['test_mode_checkout_notice'] = array 1294 ( 1295 'title' => __('Test notification display on the test mode', 'wc-robokassa'), 1296 'type' => 'checkbox', 1297 'label' => __('Tick the checkbox to enable this feature. Default is enabled.', 'wc-robokassa'), 1298 'description' => __('A notification about the activated test mode will be displayed when the payment.', 'wc-robokassa'), 1299 'default' => 'yes' 1280 1300 ); 1281 1301 … … 1306 1326 'title' => __('Skip the received order page?', 'wc-robokassa'), 1307 1327 'type' => 'checkbox', 1308 'label' => __(' Selectthe checkbox to enable this feature. Default is disabled.', 'wc-robokassa'),1328 'label' => __('Tick the checkbox to enable this feature. Default is disabled.', 'wc-robokassa'), 1309 1329 'description' => __('This setting is used to reduce actions when users switch to payment.', 'wc-robokassa'), 1310 1330 'default' => 'no' … … 1358 1378 'title' => __('The transfer of goods', 'wc-robokassa'), 1359 1379 'type' => 'checkbox', 1360 'label' => __(' Selectthe checkbox to enable this feature. Default is disabled.', 'wc-robokassa'),1380 'label' => __('Tick the checkbox to enable this feature. Default is disabled.', 'wc-robokassa'), 1361 1381 'description' => __('When you select the option, a check will be generated and sent to the tax and customer. When used, you must set up the VAT of the items sold. VAT is calculated according to the legislation of the Russian Federation. There may be differences in the amount of VAT with the amount calculated by the store.', 'wc-robokassa'), 1362 1382 'default' => 'no' … … 1467 1487 'title' => __('Errors when verifying the signature of requests', 'wc-robokassa'), 1468 1488 'type' => 'checkbox', 1469 'label' => __(' Selectthe checkbox to enable this feature. Default is disabled.', 'wc-robokassa'),1489 'label' => __('Tick the checkbox to enable this feature. Default is disabled.', 'wc-robokassa'), 1470 1490 'description' => __('Recording a errors when verifying the signature of requests from Robokassa.', 'wc-robokassa'), 1471 1491 'default' => 'no' … … 1476 1496 'title' => __('Process payments', 'wc-robokassa'), 1477 1497 'type' => 'checkbox', 1478 'label' => __(' Selectthe checkbox to enable this feature. Default is disabled.', 'wc-robokassa'),1498 'label' => __('Tick the checkbox to enable this feature. Default is disabled.', 'wc-robokassa'), 1479 1499 'description' => __('Recording information about the beginning of the payment process by the user.', 'wc-robokassa'), 1480 1500 'default' => 'no' … … 1485 1505 'title' => __('Successful payments', 'wc-robokassa'), 1486 1506 'type' => 'checkbox', 1487 'label' => __(' Selectthe checkbox to enable this feature. Default is disabled.', 'wc-robokassa'),1507 'label' => __('Tick the checkbox to enable this feature. Default is disabled.', 'wc-robokassa'), 1488 1508 'description' => __('Recording information about received requests with successful payment.', 'wc-robokassa'), 1489 1509 'default' => 'no' … … 1494 1514 'title' => __('Background requests', 'wc-robokassa'), 1495 1515 'type' => 'checkbox', 1496 'label' => __(' Selectthe checkbox to enable this feature. Default is disabled.', 'wc-robokassa'),1516 'label' => __('Tick the checkbox to enable this feature. Default is disabled.', 'wc-robokassa'), 1497 1517 'description' => __('Recording information about the background queries about transactions from Robokassa.', 'wc-robokassa'), 1498 1518 'default' => 'no' … … 1503 1523 'title' => __('Failed requests', 'wc-robokassa'), 1504 1524 'type' => 'checkbox', 1505 'label' => __(' Selectthe checkbox to enable this feature. Default is disabled.', 'wc-robokassa'),1525 'label' => __('Tick the checkbox to enable this feature. Default is disabled.', 'wc-robokassa'), 1506 1526 'description' => __('Recording information about the clients return to the canceled payment page.', 'wc-robokassa'), 1507 1527 'default' => 'no' … … 1512 1532 'title' => __('Success requests', 'wc-robokassa'), 1513 1533 'type' => 'checkbox', 1514 'label' => __(' Selectthe checkbox to enable this feature. Default is disabled.', 'wc-robokassa'),1534 'label' => __('Tick the checkbox to enable this feature. Default is disabled.', 'wc-robokassa'), 1515 1535 'description' => __('Recording information about the clients return to the success payment page.', 'wc-robokassa'), 1516 1536 'default' => 'no' … … 1558 1578 ); 1559 1579 1580 $fields['commission_merchant'] = array 1581 ( 1582 'title' => __('Payment of the commission for the buyer', 'wc-robokassa'), 1583 'type' => 'checkbox', 1584 'label' => __('Tick the checkbox to enable this feature. Default is disabled.', 'wc-robokassa'), 1585 'description' => __('When you enable this feature, the store will pay all customer Commission costs. Works only when you select a payment method on the site and for stores individuals.', 'wc-robokassa'), 1586 'default' => 'no' 1587 ); 1588 1589 $fields['commission_merchant_by_cbr'] = array 1590 ( 1591 'title' => __('Preliminary conversion of order currency into roubles for commission calculation', 'wc-robokassa'), 1592 'type' => 'checkbox', 1593 'label' => __('Tick the checkbox to enable this feature. Default is disabled.', 'wc-robokassa'), 1594 'description' => __('If the calculation of the customer commission is included and the order is not in roubles, the order will be converted to roubles based on data from the Central Bank of Russia. 1595 This is required due to poor Robokassa API.', 'wc-robokassa'), 1596 'default' => 'no' 1597 ); 1598 1560 1599 $fields['cart_clearing'] = array 1561 1600 ( 1562 1601 'title' => __('Cart clearing', 'wc-robokassa'), 1563 1602 'type' => 'checkbox', 1564 'label' => __(' Selectthe checkbox to enable this feature. Default is disabled.', 'wc-robokassa'),1603 'label' => __('Tick the checkbox to enable this feature. Default is disabled.', 'wc-robokassa'), 1565 1604 'description' => __('Clean the customers cart if payment is successful? If so, the shopping cart will be cleaned. If not, the goods already purchased will most likely remain in the shopping cart.', 'wc-robokassa'), 1566 1605 'default' => 'no', … … 1571 1610 'title' => __('Mark order as cancelled?', 'wc-robokassa'), 1572 1611 'type' => 'checkbox', 1573 'label' => __(' Selectthe checkbox to enable this feature. Default is disabled.', 'wc-robokassa'),1612 'label' => __('Tick the checkbox to enable this feature. Default is disabled.', 'wc-robokassa'), 1574 1613 'description' => __('Change the status of the order to canceled when the user cancels the payment. The status changes when the user returns to the cancelled payment page.', 'wc-robokassa'), 1575 1614 'default' => 'no', … … 1645 1684 } 1646 1685 1647 $fields['commission_merchant'] = array1648 (1649 'title' => __('Payment of the commission for the buyer', 'wc-robokassa'),1650 'type' => 'checkbox',1651 'label' => __('Select the checkbox to enable this feature. Default is disabled.', 'wc-robokassa'),1652 'description' => __('When you enable this feature, the store will pay all customer Commission costs. Works only when you select a payment method on the site and for stores individuals.', 'wc-robokassa'),1653 'default' => 'no'1654 );1655 1656 $fields['commission_merchant_by_cbr'] = array1657 (1658 'title' => __('Preliminary conversion of order currency into roubles for commission calculation', 'wc-robokassa'),1659 'type' => 'checkbox',1660 'label' => __('Select the checkbox to enable this feature. Default is disabled.', 'wc-robokassa'),1661 'description' => __('If the calculation of the customer commission is included and the order is not in roubles, the order will be converted to roubles based on data from the Central Bank of Russia.1662 This is required due to poor Robokassa API.', 'wc-robokassa'),1663 'default' => 'no'1664 );1665 1666 1686 return $fields; 1667 1687 } … … 2067 2087 */ 2068 2088 $receipt_signature = ''; 2069 if($receipt_json != '')2089 if($receipt_json !== '') 2070 2090 { 2071 2091 $receipt_signature = ':' . $receipt_json; … … 2167 2187 * дробная часть не более 2 знаков. 2168 2188 */ 2169 'sum' => intval($item_total),2189 'sum' => (int) $item_total, 2170 2190 2171 2191 /** … … 2174 2194 * максимальная длина 128 символов 2175 2195 */ 2176 'quantity' => intval($item_quantity),2196 'quantity' => (int) $item_quantity, 2177 2197 2178 2198 /** … … 2217 2237 * дробная часть не более 2 знаков. 2218 2238 */ 2219 'sum' => intval($order->get_shipping_total()),2239 'sum' => (int) $order->get_shipping_total(), 2220 2240 2221 2241 /** … … 2306 2326 public function input_payment_notifications_redirect_by_form() 2307 2327 { 2308 if(false == isset($_GET['action']))2328 if(false === isset($_GET['action'])) 2309 2329 { 2310 2330 return; 2311 2331 } 2312 2332 2313 if(false == isset($_GET['order_id']))2333 if(false === isset($_GET['order_id'])) 2314 2334 { 2315 2335 return; … … 2874 2894 } 2875 2895 2876 if( !WC_Robokassa()->tecodes()->is_valid())2896 if(false === WC_Robokassa()->tecodes()->is_valid()) 2877 2897 { 2878 2898 $color = 'bg-warning'; -
wc-robokassa/trunk/includes/class-wc-robokassa.php
r2334486 r2507761 70 70 * @var array 71 71 */ 72 private $robokassa_available_currencies = array();72 private $robokassa_available_currencies = []; 73 73 74 74 /** … … 77 77 * @var array 78 78 */ 79 private $robokassa_rates_merchant = array();79 private $robokassa_rates_merchant = []; 80 80 81 81 /** … … 83 83 * @var array 84 84 */ 85 private $currency_rates_by_cbr = array();85 private $currency_rates_by_cbr = []; 86 86 87 87 /** … … 94 94 /** 95 95 * WC_Robokassa constructor 96 * 97 * @return void 96 98 */ 97 99 public function __construct() … … 135 137 136 138 include_once WC_ROBOKASSA_PLUGIN_DIR . 'includes/class-wc-robokassa-api.php'; 137 require_once WC_ROBOKASSA_PLUGIN_DIR . 'includes/class-wc-robokassa-method.php'; 138 include_once WC_ROBOKASSA_PLUGIN_DIR . 'includes/class-wc-robokassa-sub-method.php'; 139 include_once WC_ROBOKASSA_PLUGIN_DIR . 'includes/tecodes-local/bootstrap.php'; 139 140 include_once WC_ROBOKASSA_PLUGIN_DIR . 'vendors/tecodes/tecodes-local/bootstrap.php'; 140 141 include_once WC_ROBOKASSA_PLUGIN_DIR . 'includes/class-wc-robokassa-tecodes.php'; 141 142 include_once WC_ROBOKASSA_PLUGIN_DIR . 'includes/class-wc-robokassa-tecodes-instance.php'; 142 143 include_once WC_ROBOKASSA_PLUGIN_DIR . 'includes/class-wc-robokassa-tecodes-storage-code.php'; 144 145 /** 146 * @since 3.0.0 147 */ 148 do_action('wc_robokassa_after_includes'); 149 } 150 151 /** 152 * Get current currency 153 * 154 * @return string 155 */ 156 public function get_wc_currency() 157 { 158 return $this->wc_currency; 159 } 160 161 /** 162 * Set current currency 163 * 164 * @param $wc_currency 165 */ 166 public function set_wc_currency($wc_currency) 167 { 168 $this->wc_currency = $wc_currency; 169 } 170 171 /** 172 * Get current WooCommerce version installed 173 * 174 * @return string 175 */ 176 public function get_wc_version() 177 { 178 return $this->wc_version; 179 } 180 181 /** 182 * Set current WooCommerce version installed 183 * 184 * @param mixed $wc_version 185 */ 186 public function set_wc_version($wc_version) 187 { 188 $this->wc_version = $wc_version; 189 } 190 191 /** 192 * Get Tecodes 193 * 194 * @return Tecodes_Local|null 195 */ 196 public function tecodes() 197 { 198 return $this->tecodes; 199 } 200 201 /** 202 * Set Tecodes 203 * 204 * @param Tecodes_Local|null $tecodes 205 */ 206 public function set_tecodes($tecodes) 207 { 208 $this->tecodes = $tecodes; 209 } 210 211 /** 212 * Hooks (actions & filters) 213 * 214 * @return void 215 */ 216 private function init_hooks() 217 { 218 add_action('init', array($this, 'init'), 0); 219 add_action('init', array($this, 'wc_robokassa_gateway_init'), 5); 220 221 if(is_admin()) 222 { 223 add_action('init', array($this, 'init_admin'), 0); 224 add_action('admin_notices', array($this, 'wc_robokassa_admin_notices'), 10); 225 226 add_filter('plugin_action_links_' . WC_ROBOKASSA_PLUGIN_NAME, array($this, 'links_left'), 10); 227 add_filter('plugin_row_meta', array($this, 'links_right'), 10, 2); 228 229 $this->page_explode(); 230 } 231 } 232 233 /** 234 * Init plugin gateway 235 * 236 * @return void 237 */ 238 public function wc_robokassa_gateway_init() 239 { 240 // hook 241 do_action('wc_robokassa_gateway_init_before'); 242 243 add_filter('woocommerce_payment_gateways', array($this, 'add_gateway_method'), 10); 244 245 $robokassa_settings = $this->get_method_settings_by_method_id('robokassa'); 246 247 if(isset($robokassa_settings['sub_methods']) && $robokassa_settings['sub_methods'] === 'yes') 248 { 249 add_filter('woocommerce_payment_gateways', array($this, 'add_gateway_submethods'), 10); 250 } 251 252 // hook 253 do_action('wc_robokassa_gateway_init_after'); 254 } 255 256 /** 257 * Initialization 258 * 259 * @return boolean 260 */ 261 public function init() 262 { 263 if(false === $this->load_logger()) 264 { 265 return false; 266 } 267 268 $this->load_tecodes(); 269 270 return true; 271 } 272 273 /** 274 * Admin initialization 275 * 276 * @return void 277 */ 278 public function init_admin() 279 { 280 /** 281 * Load URLs for settings 282 */ 283 $this->load_urls(); 284 } 285 286 /** 287 * Load robokassa api 288 * 289 * @param $reload boolean 290 * 291 * @return Wc_Robokassa_Api|false 292 */ 293 public function load_robokassa_api($reload = true) 294 { 295 if(true === $reload) 296 { 297 $robokassa_api = $this->get_robokassa_api(); 298 299 if(false !== $robokassa_api) 300 { 301 return $robokassa_api; 302 } 303 } 304 305 $default_class_name = 'Wc_Robokassa_Api'; 306 307 /** 308 * Load API class name from external code 309 */ 310 $robokassa_api_class_name = apply_filters('wc_robokassa_api_class_name_load', $default_class_name); 311 312 /** 313 * Fallback 314 */ 315 if(false === class_exists($robokassa_api_class_name)) 316 { 317 $robokassa_api_class_name = $default_class_name; 318 } 319 320 try 321 { 322 $robokassa_api = new $robokassa_api_class_name(); 323 324 $this->set_robokassa_api($robokassa_api); 325 } 326 catch(Exception $e) 327 { 328 wc_robokassa_logger()->error('load_robokassa_api exception', $e); 329 return false; 330 } 331 332 return $this->get_robokassa_api(); 333 } 334 335 /** 336 * Load Tecodes 337 * 338 * @return void 339 */ 340 public function load_tecodes() 341 { 342 $options = 343 [ 344 'timeout' => 2, 345 'verify_ssl' => false, 346 'version' => 'tecodes/v1' 347 ]; 348 349 $tecodes_local = new Wc_Robokassa_Tecodes('https://mofsy.ru/', $options); 350 351 /** 352 * Languages 353 */ 354 $tecodes_local->status_messages = array 355 ( 356 'status_1' => __('This activation code is active.', 'wc-robokassa'), 357 'status_2' => __('Error: This activation code has expired.', 'wc-robokassa'), 358 'status_3' => __('Activation code republished. Awaiting reactivation.', 'wc-robokassa'), 359 'status_4' => __('Error: This activation code has been suspended.', 'wc-robokassa'), 360 'code_not_found' => __('This activation code is not found.', 'wc-robokassa'), 361 'localhost' => __('This activation code is active (localhost).', 'wc-robokassa'), 362 'pending' => __('Error: This activation code is pending review.', 'wc-robokassa'), 363 'download_access_expired' => __('Error: This version of the software was released after your download access expired. Please downgrade software or contact support for more information.', 'wc-robokassa'), 364 'missing_activation_key' => __('Error: The activation code variable is empty.', 'wc-robokassa'), 365 'could_not_obtain_local_code' => __('Error: I could not obtain a new local code.', 'wc-robokassa'), 366 'maximum_delay_period_expired' => __('Error: The maximum local code delay period has expired.', 'wc-robokassa'), 367 'local_code_tampering' => __('Error: The local key has been tampered with or is invalid.', 'wc-robokassa'), 368 'local_code_invalid_for_location' => __('Error: The local code is invalid for this location.', 'wc-robokassa'), 369 'missing_license_file' => __('Error: Please create the following file (and directories if they dont exist already): ', 'wc-robokassa'), 370 'license_file_not_writable' => __('Error: Please make the following path writable: ', 'wc-robokassa'), 371 'invalid_local_key_storage' => __('Error: I could not determine the local key storage on clear.', 'wc-robokassa'), 372 'could_not_save_local_key' => __('Error: I could not save the local key.', 'wc-robokassa'), 373 'code_string_mismatch' => __('Error: The local code is invalid for this activation code.', 'wc-robokassa'), 374 'code_status_delete' => __('Error: This activation code has been deleted.', 'wc-robokassa'), 375 'code_status_draft' => __('Error: This activation code has draft.', 'wc-robokassa'), 376 'code_status_available' => __('Error: This activation code has available.', 'wc-robokassa'), 377 'code_status_blocked' => __('Error: This activation code has been blocked.', 'wc-robokassa'), 378 ); 379 380 $tecodes_local->set_local_code_storage(new Wc_Robokassa_Tecodes_Code_Storage()); 381 $tecodes_local->set_instance(new Wc_Robokassa_Tecodes_Instance()); 382 383 $tecodes_local->validate(); 384 385 $this->set_tecodes($tecodes_local); 386 } 387 388 /** 389 * Load available currencies from Robokassa 390 * 391 * @param $merchant_login 392 * @param string $language 393 * 394 * @return void 395 */ 396 public function load_robokassa_available_currencies($merchant_login, $language = 'ru') 397 { 398 if(is_array($this->get_robokassa_available_currencies()) && count($this->get_robokassa_available_currencies()) === 0) 399 { 400 $api = $this->load_robokassa_api(); 401 402 $robokassa_available_currencies_result = $api->xml_get_currencies($merchant_login, $language); 403 404 if(is_array($robokassa_available_currencies_result)) 405 { 406 $this->set_robokassa_available_currencies($robokassa_available_currencies_result); 407 } 408 } 409 } 410 411 /** 412 * Load merchant rates 413 * 414 * @param $merchant_login 415 * @param int $out_sum 416 * @param string $language 417 * 418 * @return void 419 */ 420 public function load_merchant_rates($merchant_login, $out_sum = 0, $language = 'ru') 421 { 422 if(is_array($this->get_robokassa_rates_merchant()) && count($this->get_robokassa_rates_merchant()) == 0) 423 { 424 $api = $this->load_robokassa_api(); 425 426 $robokassa_rates_merchant_result = $api->xml_get_rates($merchant_login, $out_sum, '', $language); 427 428 if(is_array($robokassa_rates_merchant_result)) 429 { 430 $this->set_robokassa_rates_merchant($robokassa_rates_merchant_result); 431 } 432 } 433 } 434 435 /** 436 * Get settings by method id for submethods 437 * 438 * @param string $method_id 439 * 440 * @return mixed 441 */ 442 public function get_method_settings_by_method_id($method_id = 'robokassa') 443 { 444 return get_option('woocommerce_' . $method_id . '_settings'); 445 } 446 447 /** 448 * Load currency rates by cbr 449 * 450 * @return mixed 451 */ 452 public function load_currency_rates_by_cbr() 453 { 454 $transient_name = 'wc_robokassa_currency_rates_cbr'; 455 $current_rates = get_transient($transient_name); 456 457 if($current_rates) 458 { 459 $this->set_currency_rates_by_cbr($current_rates); 460 return $current_rates; 461 } 462 463 $url = 'https://www.cbr-xml-daily.ru/daily_json.js'; 464 465 $result = wp_remote_get($url); 466 $result_body = wp_remote_retrieve_body($result); 467 468 if($result_body !== '') 469 { 470 $rates = json_decode($result_body, true); 471 set_transient($transient_name, $rates, 60 * 15); 472 $this->set_currency_rates_by_cbr($rates); 473 474 return $rates; 475 } 476 477 return false; 478 } 479 480 /** 481 * Get merchant rates from Robokassa 482 * 483 * @return array 484 */ 485 public function get_robokassa_rates_merchant() 486 { 487 return $this->robokassa_rates_merchant; 488 } 489 490 /** 491 * Set merchant rates from Robokassa 492 * 493 * @param array $robokassa_rates_merchant 494 */ 495 public function set_robokassa_rates_merchant($robokassa_rates_merchant) 496 { 497 $this->robokassa_rates_merchant = $robokassa_rates_merchant; 498 } 499 500 /** 501 * Get merchant currencies available from Robokassa 502 * 503 * @return array 504 */ 505 public function get_robokassa_available_currencies() 506 { 507 return $this->robokassa_available_currencies; 508 } 509 510 /** 511 * Set merchant currencies available from Robokassa 512 * 513 * @param array $robokassa_available_currencies 514 */ 515 public function set_robokassa_available_currencies($robokassa_available_currencies) 516 { 517 $this->robokassa_available_currencies = $robokassa_available_currencies; 518 } 519 520 /** 521 * @return array 522 */ 523 public function get_currency_rates_by_cbr() 524 { 525 return $this->currency_rates_by_cbr; 526 } 527 528 /** 529 * @param array $currency_rates_by_cbr 530 */ 531 public function set_currency_rates_by_cbr($currency_rates_by_cbr) 532 { 533 $this->currency_rates_by_cbr = $currency_rates_by_cbr; 534 } 535 536 /** 537 * Get Robokassa api 538 * 539 * @return Wc_Robokassa_Api|false 540 */ 541 public function get_robokassa_api() 542 { 543 return $this->robokassa_api; 544 } 545 546 /** 547 * Set Robokassa api 548 * 549 * @param Wc_Robokassa_Api $robokassa_api 550 */ 551 public function set_robokassa_api($robokassa_api) 552 { 553 $this->robokassa_api = $robokassa_api; 554 } 555 556 /** 557 * Load WooCommerce current currency 558 * 559 * @return string 560 */ 561 public function load_currency() 562 { 563 $wc_currency = wc_robokassa_get_wc_currency(); 564 565 /** 566 * WooCommerce Currency Switcher 567 */ 568 if(class_exists('WOOCS')) 569 { 570 global $WOOCS; 571 572 wc_robokassa_logger()->alert('load_currency WooCommerce Currency Switcher detect'); 573 574 $wc_currency = strtoupper($WOOCS->storage->get_val('woocs_current_currency')); 575 } 576 577 wc_robokassa_logger()->debug('load_currency $wc_version', $wc_currency); 578 579 $this->set_wc_currency($wc_currency); 580 581 return $wc_currency; 582 } 583 584 /** 585 * Load current WC version 586 * 587 * @return string 588 */ 589 public function load_wc_version() 590 { 591 $wc_version = wc_robokassa_get_wc_version(); 592 593 wc_robokassa_logger()->info('load_wc_version: $wc_version' . $wc_version); 594 595 $this->set_wc_version($wc_version); 596 597 return $wc_version; 598 } 599 600 /** 601 * Add the gateway to WooCommerce 602 * 603 * @param $methods - all WooCommerce initialized gateways 604 * 605 * @return array - new WooCommerce initialized gateways 606 */ 607 public function add_gateway_method($methods) 608 { 609 $this->load_wc_version(); 610 $this->load_currency(); 611 612 include_once WC_ROBOKASSA_PLUGIN_DIR . 'includes/class-wc-robokassa-method.php'; 613 614 $default_class_name = 'Wc_Robokassa_Method'; 615 616 $robokassa_method_class_name = apply_filters('wc_robokassa_method_class_name_add', $default_class_name); 617 618 if(false === class_exists($robokassa_method_class_name)) 619 { 620 $robokassa_method_class_name = $default_class_name; 621 } 622 623 $methods[] = $robokassa_method_class_name; 624 625 return $methods; 626 } 627 628 /** 629 * Add the submethods gateway to WooCommerce 630 * 631 * @param $methods - all WooCommerce initialized gateways 632 * 633 * @return array - new WooCommerce initialized gateways 634 */ 635 public function add_gateway_submethods($methods) 636 { 637 include_once WC_ROBOKASSA_PLUGIN_DIR . 'includes/class-wc-robokassa-sub-method.php'; 143 638 144 639 /** … … 174 669 include_once WC_ROBOKASSA_PLUGIN_DIR . 'includes/submethods/class-wc-robokassa-terminals-terminals-elecsnet-method.php'; 175 670 176 /**177 * @since 3.0.0178 */179 do_action('wc_robokassa_after_includes');180 }181 182 /**183 * Get current currency184 *185 * @return string186 */187 public function get_wc_currency()188 {189 return $this->wc_currency;190 }191 192 /**193 * Set current currency194 *195 * @param $wc_currency196 */197 public function set_wc_currency($wc_currency)198 {199 $this->wc_currency = $wc_currency;200 }201 202 /**203 * Get current WooCommerce version installed204 *205 * @return mixed206 */207 public function get_wc_version()208 {209 return $this->wc_version;210 }211 212 /**213 * Set current WooCommerce version installed214 *215 * @param mixed $wc_version216 */217 public function set_wc_version($wc_version)218 {219 $this->wc_version = $wc_version;220 }221 222 /**223 * Get Tecodes224 *225 * @return Tecodes_Local|null226 */227 public function tecodes()228 {229 return $this->tecodes;230 }231 232 /**233 * Set Tecodes234 *235 * @param Tecodes_Local|null $tecodes236 */237 public function set_tecodes($tecodes)238 {239 $this->tecodes = $tecodes;240 }241 242 /**243 * Hooks (actions & filters)244 */245 private function init_hooks()246 {247 add_action('init', array($this, 'init'), 0);248 add_action('init', array($this, 'wc_robokassa_gateway_init'), 5);249 250 if(is_admin())251 {252 add_action('init', array($this, 'init_admin'), 0);253 add_action('admin_notices', array($this, 'wc_robokassa_admin_notices'), 10);254 255 add_filter('plugin_action_links_' . WC_ROBOKASSA_PLUGIN_NAME, array($this, 'links_left'), 10);256 add_filter('plugin_row_meta', array($this, 'links_right'), 10, 2);257 258 $this->page_explode();259 }260 }261 262 /**263 * Init plugin gateway264 *265 * @return mixed|void266 */267 public function wc_robokassa_gateway_init()268 {269 // hook270 do_action('wc_robokassa_gateway_init_before');271 272 if(class_exists('WC_Payment_Gateway') !== true)273 {274 wc_robokassa_logger()->emergency('WC_Payment_Gateway not found');275 return false;276 }277 278 add_filter('woocommerce_payment_gateways', array($this, 'add_gateway_method'), 10);279 280 $robokassa_settings = $this->get_method_settings_by_method_id('robokassa');281 282 if(isset($robokassa_settings['sub_methods']) && $robokassa_settings['sub_methods'] === 'yes')283 {284 add_filter('woocommerce_payment_gateways', array($this, 'add_gateway_submethods'), 10);285 }286 287 // hook288 do_action('wc_robokassa_gateway_init_after');289 }290 291 /**292 * Initialization293 */294 public function init()295 {296 if($this->load_logger() === false)297 {298 return false;299 }300 301 $this->load_wc_version();302 $this->load_currency();303 $this->load_tecodes();304 305 return true;306 }307 308 /**309 * Admin initialization310 */311 public function init_admin()312 {313 /**314 * Load URLs for settings315 */316 $this->load_urls();317 }318 319 /**320 * Load robokassa api321 *322 * @param $reload boolean323 *324 * @return Wc_Robokassa_Api325 */326 public function load_robokassa_api($reload = true)327 {328 if(true === $reload)329 {330 $robokassa_api = $this->get_robokassa_api();331 332 if(false !== $robokassa_api)333 {334 return $robokassa_api;335 }336 }337 338 $default_class_name = 'Wc_Robokassa_Api';339 340 /**341 * Load API class name from external code342 */343 $robokassa_api_class_name = apply_filters('wc_robokassa_api_class_name_load', $default_class_name);344 345 /**346 * Fallback347 */348 if(class_exists($robokassa_api_class_name) !== true)349 {350 $robokassa_api_class_name = $default_class_name;351 }352 353 $robokassa_api = new $robokassa_api_class_name();354 355 $this->set_robokassa_api($robokassa_api);356 357 return $this->get_robokassa_api();358 }359 360 /**361 * Load Tecodes362 */363 public function load_tecodes()364 {365 $options =366 [367 'timeout' => 15,368 'verify_ssl' => false,369 'version' => 'tecodes/v1'370 ];371 372 $tecodes_local = new Wc_Robokassa_Tecodes('https://mofsy.ru/', $options);373 374 /**375 * Languages376 */377 $tecodes_local->status_messages = array378 (379 'status_1' => __('This activation code is active.', 'wc-robokassa'),380 'status_2' => __('Error: This activation code has expired.', 'wc-robokassa'),381 'status_3' => __('Activation code republished. Awaiting reactivation.', 'wc-robokassa'),382 'status_4' => __('Error: This activation code has been suspended.', 'wc-robokassa'),383 'code_not_found' => __('This activation code is not found.', 'wc-robokassa'),384 'localhost' => __('This activation code is active (localhost).', 'wc-robokassa'),385 'pending' => __('Error: This activation code is pending review.', 'wc-robokassa'),386 'download_access_expired' => __('Error: This version of the software was released after your download access expired. Please downgrade software or contact support for more information.', 'wc-robokassa'),387 'missing_activation_key' => __('Error: The activation code variable is empty.', 'wc-robokassa'),388 'could_not_obtain_local_code' => __('Error: I could not obtain a new local code.', 'wc-robokassa'),389 'maximum_delay_period_expired' => __('Error: The maximum local code delay period has expired.', 'wc-robokassa'),390 'local_code_tampering' => __('Error: The local key has been tampered with or is invalid.', 'wc-robokassa'),391 'local_code_invalid_for_location' => __('Error: The local code is invalid for this location.', 'wc-robokassa'),392 'missing_license_file' => __('Error: Please create the following file (and directories if they dont exist already): ', 'wc-robokassa'),393 'license_file_not_writable' => __('Error: Please make the following path writable: ', 'wc-robokassa'),394 'invalid_local_key_storage' => __('Error: I could not determine the local key storage on clear.', 'wc-robokassa'),395 'could_not_save_local_key' => __('Error: I could not save the local key.', 'wc-robokassa'),396 'code_string_mismatch' => __('Error: The local code is invalid for this activation code.', 'wc-robokassa'),397 'code_status_delete' => __('Error: This activation code has been deleted.', 'wc-robokassa'),398 'code_status_draft' => __('Error: This activation code has draft.', 'wc-robokassa'),399 'code_status_available' => __('Error: This activation code has available.', 'wc-robokassa'),400 'code_status_blocked' => __('Error: This activation code has been blocked.', 'wc-robokassa'),401 );402 403 $tecodes_local->set_local_code_storage(new Wc_Robokassa_Tecodes_Code_Storage());404 $tecodes_local->set_instance(new Wc_Robokassa_Tecodes_Instance());405 406 $tecodes_local->validate();407 408 $this->set_tecodes($tecodes_local);409 }410 411 /**412 * Load available currencies from Robokassa413 *414 * @param $merchant_login415 * @param string $language416 */417 public function load_robokassa_available_currencies($merchant_login, $language = 'ru')418 {419 if(is_array($this->get_robokassa_available_currencies()) && count($this->get_robokassa_available_currencies()) === 0)420 {421 $api = $this->load_robokassa_api();422 423 $robokassa_available_currencies_result = $api->xml_get_currencies($merchant_login, $language);424 425 if(is_array($robokassa_available_currencies_result))426 {427 $this->set_robokassa_available_currencies($robokassa_available_currencies_result);428 }429 }430 }431 432 /**433 * Load merchant rates434 *435 * @param $merchant_login436 * @param int $out_sum437 * @param string $language438 */439 public function load_merchant_rates($merchant_login, $out_sum = 0, $language = 'ru')440 {441 if(is_array($this->get_robokassa_rates_merchant()) && count($this->get_robokassa_rates_merchant()) == 0)442 {443 $api = $this->load_robokassa_api();444 445 $robokassa_rates_merchant_result = $api->xml_get_rates($merchant_login, $out_sum, '', $language);446 447 if(is_array($robokassa_rates_merchant_result))448 {449 $this->set_robokassa_rates_merchant($robokassa_rates_merchant_result);450 }451 }452 }453 454 /**455 * Get settings by method id for submethods456 *457 * @param string $method_id458 *459 * @return mixed460 */461 public function get_method_settings_by_method_id($method_id = 'robokassa')462 {463 return get_option('woocommerce_' . $method_id . '_settings');464 }465 466 /**467 * Load currency rates by cbr468 *469 * @return mixed470 */471 public function load_currency_rates_by_cbr()472 {473 $transient_name = 'wc_robokassa_currency_rates_cbr';474 $current_rates = get_transient($transient_name);475 476 if($current_rates)477 {478 $this->set_currency_rates_by_cbr($current_rates);479 return $current_rates;480 }481 482 $url = 'https://www.cbr-xml-daily.ru/daily_json.js';483 484 $result = wp_remote_get($url);485 $result_body = wp_remote_retrieve_body($result);486 487 if($result_body !== '')488 {489 $rates = json_decode($result_body, true);490 set_transient($transient_name, $rates, 60 * 15);491 $this->set_currency_rates_by_cbr($rates);492 493 return $rates;494 }495 496 return false;497 }498 499 /**500 * Get merchant rates from Robokassa501 *502 * @return array503 */504 public function get_robokassa_rates_merchant()505 {506 return $this->robokassa_rates_merchant;507 }508 509 /**510 * Set merchant rates from Robokassa511 *512 * @param array $robokassa_rates_merchant513 */514 public function set_robokassa_rates_merchant($robokassa_rates_merchant)515 {516 $this->robokassa_rates_merchant = $robokassa_rates_merchant;517 }518 519 /**520 * Get merchant currencies available from Robokassa521 *522 * @return array523 */524 public function get_robokassa_available_currencies()525 {526 return $this->robokassa_available_currencies;527 }528 529 /**530 * Set merchant currencies available from Robokassa531 *532 * @param array $robokassa_available_currencies533 */534 public function set_robokassa_available_currencies($robokassa_available_currencies)535 {536 $this->robokassa_available_currencies = $robokassa_available_currencies;537 }538 539 /**540 * @return array541 */542 public function get_currency_rates_by_cbr()543 {544 return $this->currency_rates_by_cbr;545 }546 547 /**548 * @param array $currency_rates_by_cbr549 */550 public function set_currency_rates_by_cbr($currency_rates_by_cbr)551 {552 $this->currency_rates_by_cbr = $currency_rates_by_cbr;553 }554 555 /**556 * Get Robokassa api557 *558 * @return Wc_Robokassa_Api559 */560 public function get_robokassa_api()561 {562 return $this->robokassa_api;563 }564 565 /**566 * Set Robokassa api567 *568 * @param Wc_Robokassa_Api $robokassa_api569 */570 public function set_robokassa_api($robokassa_api)571 {572 $this->robokassa_api = $robokassa_api;573 }574 575 /**576 * Load WooCommerce current currency577 *578 * @return string579 */580 public function load_currency()581 {582 $wc_currency = wc_robokassa_get_wc_currency();583 584 /**585 * WooCommerce Currency Switcher586 */587 if(class_exists('WOOCS'))588 {589 global $WOOCS;590 591 wc_robokassa_logger()->alert('load_currency WooCommerce Currency Switcher detect');592 593 $wc_currency = strtoupper($WOOCS->storage->get_val('woocs_current_currency'));594 }595 596 wc_robokassa_logger()->debug('load_currency $wc_version', $wc_currency);597 598 $this->set_wc_currency($wc_currency);599 600 return $wc_currency;601 }602 603 /**604 * Load current WC version605 *606 * @return string607 */608 public function load_wc_version()609 {610 $wc_version = wc_robokassa_get_wc_version();611 612 wc_robokassa_logger()->info('load_wc_version: $wc_version' . $wc_version);613 614 $this->set_wc_version($wc_version);615 616 return $wc_version;617 }618 619 /**620 * Add the gateway to WooCommerce621 *622 * @param $methods - all WooCommerce initialized gateways623 *624 * @return array - new WooCommerce initialized gateways625 */626 public function add_gateway_method($methods)627 {628 $default_class_name = 'Wc_Robokassa_Method';629 630 $robokassa_method_class_name = apply_filters('wc_robokassa_method_class_name_add', $default_class_name);631 632 if(!class_exists($robokassa_method_class_name))633 {634 $robokassa_method_class_name = $default_class_name;635 }636 637 $methods[] = $robokassa_method_class_name;638 639 return $methods;640 }641 642 /**643 * Add the submethods gateway to WooCommerce644 *645 * @param $methods - all WooCommerce initialized gateways646 *647 * @return array - new WooCommerce initialized gateways648 */649 public function add_gateway_submethods($methods)650 {651 671 $methods[] = 'Wc_Robokassa_Bank_Alfabank_Method'; 652 672 $methods[] = 'Wc_Robokassa_Bank_Bank_Avb_Method'; … … 815 835 816 836 /** 817 * Add page explode actions 837 * Add page explode actions 838 * 839 * @return void 818 840 */ 819 841 public function page_explode() -
wc-robokassa/trunk/includes/functions-wc-robokassa.php
r2334486 r2507761 21 21 * 22 22 * @since 3.0.2 23 * 24 * @return null|string 23 25 */ 24 26 function wc_robokassa_get_wc_version() … … 74 76 } 75 77 76 77 78 /** 78 79 * Load localisation files -
wc-robokassa/trunk/languages/wc-robokassa-ru_RU.po
r2334486 r2507761 2 2 msgstr "" 3 3 "Project-Id-Version: Payment gateway - Robokassa for WooCommerce\n" 4 "POT-Creation-Date: 202 0-07-02 22:42+0300\n"5 "PO-Revision-Date: 202 0-07-02 22:43+0300\n"4 "POT-Creation-Date: 2021-04-02 01:20+0300\n" 5 "PO-Revision-Date: 2021-04-02 01:22+0300\n" 6 6 "Last-Translator: Mofsy <support@mofsy.ru>\n" 7 7 "Language-Team: Mofsy <support@mofsy.ru>\n" … … 23 23 24 24 #: includes/class-wc-robokassa-method.php:187 25 #: includes/class-wc-robokassa-method.php:13 1825 #: includes/class-wc-robokassa-method.php:1338 26 26 #: includes/class-wc-robokassa-sub-method.php:50 27 27 msgid "Robokassa" … … 32 32 msgstr "Оплата через Робокассу." 33 33 34 #: includes/class-wc-robokassa-method.php:96 735 msgid " Activation"36 msgstr "Активация "37 38 #: includes/class-wc-robokassa-method.php:97 034 #: includes/class-wc-robokassa-method.php:968 35 msgid "Support activation" 36 msgstr "Активация поддержки" 37 38 #: includes/class-wc-robokassa-method.php:971 39 39 msgid "The code can be obtained from the plugin website:" 40 40 msgstr "Код можно получить на сайте плагина:" 41 41 42 #: includes/class-wc-robokassa-method.php:97 042 #: includes/class-wc-robokassa-method.php:971 43 43 msgid "" 44 44 "This section will disappear after enter a valid code before the expiration " … … 48 48 "действия введенного кода или его аннулирования." 49 49 50 #: includes/class-wc-robokassa-method.php:97 550 #: includes/class-wc-robokassa-method.php:976 51 51 msgid "Input code" 52 52 msgstr "Ввод кода" 53 53 54 #: includes/class-wc-robokassa-method.php:97 854 #: includes/class-wc-robokassa-method.php:979 55 55 msgid "" 56 56 "If enter the correct code, the current environment will be activated. Enter " … … 60 60 "только на реальной рабочей станции." 61 61 62 #: includes/class-wc-robokassa-method.php:10 2862 #: includes/class-wc-robokassa-method.php:1019 63 63 msgid "Activate" 64 64 msgstr "Активация" 65 65 66 #: includes/class-wc-robokassa-method.php:105 066 #: includes/class-wc-robokassa-method.php:1051 67 67 #: includes/class-wc-robokassa-sub-method.php:547 68 68 msgid "Main settings" 69 69 msgstr "Основные настройки" 70 70 71 #: includes/class-wc-robokassa-method.php:105 271 #: includes/class-wc-robokassa-method.php:1053 72 72 msgid "" 73 73 "Without these settings, the payment gateway will not work. Be sure to make " … … 77 77 "настройки в этом блоке." 78 78 79 #: includes/class-wc-robokassa-method.php:1057 80 #: includes/class-wc-robokassa-sub-method.php:554 81 msgid "Online / Offline" 82 msgstr "Включено / Отключено" 83 84 #: includes/class-wc-robokassa-method.php:1059 85 msgid "Tick the checkbox if you need to activate the payment gateway." 86 msgstr "Поставьте галочку, если вам нужно активировать платежный шлюз." 79 #: includes/class-wc-robokassa-method.php:1058 80 msgid "Main method" 81 msgstr "Основной метод" 87 82 88 83 #: includes/class-wc-robokassa-method.php:1060 89 msgid "" 90 "On disconnection, the payment gateway will not be available for selection on " 91 "the site. It is useful for payments through subsidiaries, or just in case of " 84 msgid "Tick the checkbox if you need to show the payment gateway." 85 msgstr "Поставьте галочку, если нужно активировать платежный шлюз." 86 87 #: includes/class-wc-robokassa-method.php:1061 88 msgid "" 89 "On disabled, the payment gateway will not be available for selection on the " 90 "site. Feature useful for payments through subsidiaries, or just in case of " 92 91 "temporary disconnection." 93 92 msgstr "" 94 93 "При отключении, платежный шлюз не будет доступен для выбора на сайте. " 95 "Настройка полезна для платежей через дочерние методы ,или просто в случае "94 "Настройка полезна для платежей через дочерние методы или просто в случае " 96 95 "временного отключения." 97 96 98 #: includes/class-wc-robokassa-method.php:1066 97 #: includes/class-wc-robokassa-method.php:1067 98 #: includes/class-wc-robokassa-method.php:1242 99 msgid "Sub methods" 100 msgstr "Дочерние методы" 101 102 #: includes/class-wc-robokassa-method.php:1069 103 msgid "Tick the checkbox to enable sub methods feature. Default is disabled." 104 msgstr "" 105 "Установите флажок, чтобы включить дочерние методы. По умолчанию - отключены." 106 107 #: includes/class-wc-robokassa-method.php:1070 108 msgid "" 109 "Use of all mechanisms of child payment methods. The main method can be " 110 "turned off. The cart will show the child payment methods." 111 msgstr "" 112 "Использование всех механизмов дочерних методов оплаты. Основной метод можно " 113 "отключить. В корзине будут указаны дочерние способы оплаты." 114 115 #: includes/class-wc-robokassa-method.php:1076 99 116 msgid "Shop identifier" 100 117 msgstr "Идентификатор магазина" 101 118 102 #: includes/class-wc-robokassa-method.php:10 68119 #: includes/class-wc-robokassa-method.php:1078 103 120 msgid "Unique identifier for shop from Robokassa." 104 121 msgstr "Уникальный идентификатор магазина из личного кабинета Робокассы." 105 122 106 #: includes/class-wc-robokassa-method.php:1074 107 #: includes/class-wc-robokassa-method.php:1168 108 msgid "Hash calculation algorithm" 109 msgstr "Алгоритм вычисления хэша" 110 111 #: includes/class-wc-robokassa-method.php:1075 112 msgid "" 113 "The algorithm must match the one specified in the personal account of " 114 "Robokassa." 115 msgstr "" 116 "Алгоритм должен соответствовать тому, который указан в личном кабинете " 117 "Робокассы." 123 #: includes/class-wc-robokassa-method.php:1084 124 msgid "Test mode" 125 msgstr "Тестовый режим" 126 127 #: includes/class-wc-robokassa-method.php:1086 128 msgid "Tick the checkbox to enable test mode. Default is enabled." 129 msgstr "" 130 "Установите флажок, чтобы включить тестовый режим. По умолчанию включено." 131 132 #: includes/class-wc-robokassa-method.php:1087 133 msgid "" 134 "When you activate the test mode, no funds will be debited. In this case, the " 135 "payment gateway will only be displayed when you log in with an administrator " 136 "account. This is done in order to protect you from false orders." 137 msgstr "" 138 "При активации тестового режима денежные средства списываться не будут. В " 139 "этом случае платежный шлюз будет отображаться только при входе в систему с " 140 "учетной записью администратора. Это делается для того, чтобы защитить вас от " 141 "ложных заказов." 118 142 119 143 #: includes/class-wc-robokassa-method.php:1091 120 #: includes/class-wc-robokassa-method.php:1185121 msgid "Password #1"122 msgstr "Пароль #1"123 124 #: includes/class-wc-robokassa-method.php:1093125 msgid ""126 "Shop pass #1 must match the one specified in the personal account of "127 "Robokassa."128 msgstr ""129 "Пароль #1 должен соответствовать тому, который указан в личном кабинете "130 "Робокассы."131 132 #: includes/class-wc-robokassa-method.php:1099133 #: includes/class-wc-robokassa-method.php:1193134 msgid "Password #2"135 msgstr "Пароль #2"136 137 #: includes/class-wc-robokassa-method.php:1101138 msgid ""139 "Shop pass #2 must match the one specified in the personal account of "140 "Robokassa."141 msgstr ""142 "Пароль #2 должен соответствовать тому, который указан в личном кабинете "143 "Робокассы."144 145 #: includes/class-wc-robokassa-method.php:1105146 144 msgid "" 147 145 "Address to notify the site of the results of operations in the background. " … … 153 151 "настройках. Способ уведомления: POST." 154 152 155 #: includes/class-wc-robokassa-method.php:1 109153 #: includes/class-wc-robokassa-method.php:1095 156 154 msgid "Result Url" 157 155 msgstr "Result Url" 158 156 159 #: includes/class-wc-robokassa-method.php:11 16157 #: includes/class-wc-robokassa-method.php:1102 160 158 msgid "" 161 159 "The address for the user to go to the site after successful payment. Copy " … … 168 166 "Способ уведомления: POST. Вы можете указать другие адреса по вашему выбору." 169 167 170 #: includes/class-wc-robokassa-method.php:11 20168 #: includes/class-wc-robokassa-method.php:1106 171 169 msgid "Success Url" 172 170 msgstr "Success Url" 173 171 174 #: includes/class-wc-robokassa-method.php:11 27172 #: includes/class-wc-robokassa-method.php:1113 175 173 msgid "" 176 174 "The address for the user to go to the site, after payment with an error. " … … 183 181 "Способ уведомления: POST. Вы можете указать другие адреса по вашему выбору." 184 182 185 #: includes/class-wc-robokassa-method.php:11 31183 #: includes/class-wc-robokassa-method.php:1117 186 184 msgid "Fail Url" 187 185 msgstr "Fail Url" 188 186 189 #: includes/class-wc-robokassa-method.php:1152 187 #: includes/class-wc-robokassa-method.php:1138 188 msgid "Parameters for real payments" 189 msgstr "Параметры для реальных платежей" 190 191 #: includes/class-wc-robokassa-method.php:1140 192 msgid "" 193 "Passwords and hashing algorithms for real payments differ from those " 194 "specified for test payments." 195 msgstr "" 196 "Пароли и алгоритмы хэширования для реальных платежей отличаются от тех, что " 197 "указаны для тестовых платежей." 198 199 #: includes/class-wc-robokassa-method.php:1145 200 #: includes/class-wc-robokassa-method.php:1197 201 msgid "Hash calculation algorithm" 202 msgstr "Алгоритм вычисления хэша" 203 204 #: includes/class-wc-robokassa-method.php:1146 205 msgid "" 206 "The algorithm must match the one specified in the personal account of " 207 "Robokassa." 208 msgstr "" 209 "Алгоритм должен соответствовать тому, который указан в личном кабинете " 210 "Робокассы." 211 212 #: includes/class-wc-robokassa-method.php:1162 213 #: includes/class-wc-robokassa-method.php:1214 214 msgid "Password #1" 215 msgstr "Пароль #1" 216 217 #: includes/class-wc-robokassa-method.php:1164 218 msgid "" 219 "Shop pass #1 must match the one specified in the personal account of " 220 "Robokassa." 221 msgstr "" 222 "Пароль #1 должен соответствовать тому, который указан в личном кабинете " 223 "Робокассы." 224 225 #: includes/class-wc-robokassa-method.php:1170 226 #: includes/class-wc-robokassa-method.php:1222 227 msgid "Password #2" 228 msgstr "Пароль #2" 229 230 #: includes/class-wc-robokassa-method.php:1172 231 msgid "" 232 "Shop pass #2 must match the one specified in the personal account of " 233 "Robokassa." 234 msgstr "" 235 "Пароль #2 должен соответствовать тому, который указан в личном кабинете " 236 "Робокассы." 237 238 #: includes/class-wc-robokassa-method.php:1190 190 239 msgid "Parameters for test payments" 191 240 msgstr "Параметры для тестовых платежей" 192 241 193 #: includes/class-wc-robokassa-method.php:11 54242 #: includes/class-wc-robokassa-method.php:1192 194 243 msgid "" 195 244 "Passwords and hashing algorithms for test payments differ from those " … … 199 248 "указаны для реальных платежей." 200 249 201 #: includes/class-wc-robokassa-method.php:1159 202 msgid "Test mode" 203 msgstr "Тестовый режим" 204 205 #: includes/class-wc-robokassa-method.php:1161 206 #: includes/class-wc-robokassa-method.php:1203 207 #: includes/class-wc-robokassa-method.php:1277 208 msgid "Select the checkbox to enable this feature. Default is enabled." 209 msgstr "" 210 "Установите флажок, чтобы включить эту функцию. Значение по умолчанию " 211 "включено." 212 213 #: includes/class-wc-robokassa-method.php:1162 214 msgid "" 215 "When you activate the test mode, no funds will be debited. In this case, the " 216 "payment gateway will only be displayed when you log in with an administrator " 217 "account. This is done in order to protect you from false orders." 218 msgstr "" 219 "При активации тестового режима денежные средства списываться не будут. В " 220 "этом случае платежный шлюз будет отображаться только при входе в систему с " 221 "учетной записью администратора. Это делается для того, чтобы защитить вас от " 222 "ложных заказов." 223 224 #: includes/class-wc-robokassa-method.php:1169 250 #: includes/class-wc-robokassa-method.php:1198 225 251 msgid "" 226 252 "The algorithm must match the one specified in the personal account of " … … 230 256 "Робокассы." 231 257 232 #: includes/class-wc-robokassa-method.php:1 187258 #: includes/class-wc-robokassa-method.php:1216 233 259 msgid "" 234 260 "Shop pass #1 for testing payments. The pass must match the one specified in " … … 238 264 "указан в личном кабинете Робокассы." 239 265 240 #: includes/class-wc-robokassa-method.php:1 195266 #: includes/class-wc-robokassa-method.php:1224 241 267 msgid "" 242 268 "Shop pass #2 for testing payments. The pass must match the one specified in " … … 246 272 "указан в личном кабинете Робокассы." 247 273 248 #: includes/class-wc-robokassa-method.php:1201 249 msgid "Test notification display on the test mode" 250 msgstr "Отображение уведомлений о тестировании в тестовом режиме" 251 252 #: includes/class-wc-robokassa-method.php:1204 253 msgid "" 254 "A notification about the activated test mode will be displayed when the " 255 "payment." 256 msgstr "" 257 "При оплате будет выведено уведомление об активированном тестовом режиме." 258 259 #: includes/class-wc-robokassa-method.php:1222 260 msgid "Sub methods" 261 msgstr "Дочерние методы" 262 263 #: includes/class-wc-robokassa-method.php:1224 274 #: includes/class-wc-robokassa-method.php:1244 264 275 msgid "General settings for the sub methods of payment." 265 276 msgstr "Основные настройки для дочерних методов платежа." 266 277 267 #: includes/class-wc-robokassa-method.php:1229268 msgid "Enable sub methods"269 msgstr "Включить дочерние методы"270 271 #: includes/class-wc-robokassa-method.php:1231272 #: includes/class-wc-robokassa-method.php:1240273 278 #: includes/class-wc-robokassa-method.php:1249 274 #: includes/class-wc-robokassa-method.php:1308275 #: includes/class-wc-robokassa-method.php:1360276 #: includes/class-wc-robokassa-method.php:1469277 #: includes/class-wc-robokassa-method.php:1478278 #: includes/class-wc-robokassa-method.php:1487279 #: includes/class-wc-robokassa-method.php:1496280 #: includes/class-wc-robokassa-method.php:1505281 #: includes/class-wc-robokassa-method.php:1514282 #: includes/class-wc-robokassa-method.php:1564283 #: includes/class-wc-robokassa-method.php:1573284 #: includes/class-wc-robokassa-method.php:1651285 #: includes/class-wc-robokassa-method.php:1660286 #: includes/class-wc-robokassa-sub-method.php:584287 msgid "Select the checkbox to enable this feature. Default is disabled."288 msgstr ""289 "Установите флажок, чтобы включить эту функцию. Значение по умолчанию "290 "отключено."291 292 #: includes/class-wc-robokassa-method.php:1232293 msgid "Use of all mechanisms add a child of payment methods."294 msgstr "Использование всех механизмов добавления дочерних способов оплаты."295 296 #: includes/class-wc-robokassa-method.php:1238297 279 msgid "Check available via the API" 298 280 msgstr "Проверка доступности через API" 299 281 300 #: includes/class-wc-robokassa-method.php:1241 282 #: includes/class-wc-robokassa-method.php:1251 283 #: includes/class-wc-robokassa-method.php:1260 284 #: includes/class-wc-robokassa-method.php:1328 285 #: includes/class-wc-robokassa-method.php:1380 286 #: includes/class-wc-robokassa-method.php:1489 287 #: includes/class-wc-robokassa-method.php:1498 288 #: includes/class-wc-robokassa-method.php:1507 289 #: includes/class-wc-robokassa-method.php:1516 290 #: includes/class-wc-robokassa-method.php:1525 291 #: includes/class-wc-robokassa-method.php:1534 292 #: includes/class-wc-robokassa-method.php:1584 293 #: includes/class-wc-robokassa-method.php:1593 294 #: includes/class-wc-robokassa-method.php:1603 295 #: includes/class-wc-robokassa-method.php:1612 296 msgid "Tick the checkbox to enable this feature. Default is disabled." 297 msgstr "" 298 "Установите флажок, чтобы включить эту возможность. По умолчанию отключена." 299 300 #: includes/class-wc-robokassa-method.php:1252 301 301 msgid "Check whether child methods are currently available for payment." 302 302 msgstr "Проверять, доступны ли в настоящее время для оплаты дочерние методы." 303 303 304 #: includes/class-wc-robokassa-method.php:12 47304 #: includes/class-wc-robokassa-method.php:1258 305 305 msgid "Show the total amount including the fee" 306 306 msgstr "Показывать общую сумму включая комиссию" 307 307 308 #: includes/class-wc-robokassa-method.php:12 50308 #: includes/class-wc-robokassa-method.php:1261 309 309 msgid "" 310 310 "If you enable this option, the exact amount payable, including fees, will be " … … 314 314 "сборы, будет добавлена в заголовки способов оплаты." 315 315 316 #: includes/class-wc-robokassa-method.php:12 68316 #: includes/class-wc-robokassa-method.php:1279 317 317 #: includes/class-wc-robokassa-sub-method.php:575 318 318 msgid "Interface" 319 319 msgstr "Интерфейс" 320 320 321 #: includes/class-wc-robokassa-method.php:12 70321 #: includes/class-wc-robokassa-method.php:1281 322 322 #: includes/class-wc-robokassa-sub-method.php:577 323 323 msgid "Customize the appearance. Can leave it at that." 324 324 msgstr "Настройка внешнего вида. Можете оставить все как есть." 325 325 326 #: includes/class-wc-robokassa-method.php:12 75326 #: includes/class-wc-robokassa-method.php:1286 327 327 #: includes/class-wc-robokassa-sub-method.php:582 328 328 msgid "Show icon?" 329 329 msgstr "Показать иконку?" 330 330 331 #: includes/class-wc-robokassa-method.php:1279 331 #: includes/class-wc-robokassa-method.php:1288 332 #: includes/class-wc-robokassa-method.php:1297 333 msgid "Tick the checkbox to enable this feature. Default is enabled." 334 msgstr "" 335 "Установите флажок, чтобы включить эту возможность. По умолчанию включена." 336 337 #: includes/class-wc-robokassa-method.php:1290 332 338 msgid "Next to the name of the payment method will display the logo Robokassa." 333 339 msgstr "Рядом с названием способа оплаты будет отображаться логотип Робокассы." 334 340 335 #: includes/class-wc-robokassa-method.php:1284 341 #: includes/class-wc-robokassa-method.php:1295 342 msgid "Test notification display on the test mode" 343 msgstr "Отображение уведомлений о тестировании в тестовом режиме" 344 345 #: includes/class-wc-robokassa-method.php:1298 346 msgid "" 347 "A notification about the activated test mode will be displayed when the " 348 "payment." 349 msgstr "" 350 "При оплате будет выведено уведомление об активированном тестовом режиме." 351 352 #: includes/class-wc-robokassa-method.php:1304 336 353 msgid "Language interface" 337 354 msgstr "Язык интерфейса" 338 355 339 #: includes/class-wc-robokassa-method.php:1 288356 #: includes/class-wc-robokassa-method.php:1308 340 357 msgid "Russian" 341 358 msgstr "Русский" 342 359 343 #: includes/class-wc-robokassa-method.php:1 289360 #: includes/class-wc-robokassa-method.php:1309 344 361 msgid "English" 345 362 msgstr "Английский" 346 363 347 #: includes/class-wc-robokassa-method.php:1 291364 #: includes/class-wc-robokassa-method.php:1311 348 365 msgid "What language interface displayed for the customer on Robokassa?" 349 366 msgstr "Какой язык показывать клиентам на стороне сервиса Робокасса?" 350 367 351 #: includes/class-wc-robokassa-method.php:1 297368 #: includes/class-wc-robokassa-method.php:1317 352 369 msgid "Language based on the locale?" 353 370 msgstr "Язык интерфейса на основе локали?" 354 371 355 #: includes/class-wc-robokassa-method.php:1 299372 #: includes/class-wc-robokassa-method.php:1319 356 373 msgid "Enable user language automatic detection?" 357 374 msgstr "Включить автоматическое определение языка?" 358 375 359 #: includes/class-wc-robokassa-method.php:13 00376 #: includes/class-wc-robokassa-method.php:1320 360 377 msgid "" 361 378 "Automatic detection of the users language from the WordPress environment." 362 379 msgstr "Автоматическое определение языка пользователей из среды WordPress." 363 380 364 #: includes/class-wc-robokassa-method.php:13 06381 #: includes/class-wc-robokassa-method.php:1326 365 382 msgid "Skip the received order page?" 366 383 msgstr "Пропустить страницу полученного заказа?" 367 384 368 #: includes/class-wc-robokassa-method.php:13 09385 #: includes/class-wc-robokassa-method.php:1329 369 386 msgid "This setting is used to reduce actions when users switch to payment." 370 387 msgstr "" … … 372 389 "пользователей на оплату." 373 390 374 #: includes/class-wc-robokassa-method.php:13 15391 #: includes/class-wc-robokassa-method.php:1335 375 392 #: includes/class-wc-robokassa-sub-method.php:590 376 393 msgid "Title" 377 394 msgstr "Название" 378 395 379 #: includes/class-wc-robokassa-method.php:13 17396 #: includes/class-wc-robokassa-method.php:1337 380 397 #: includes/class-wc-robokassa-sub-method.php:592 381 398 msgid "This is the name that the user sees during the payment." 382 399 msgstr "Заголовок, который видит пользователь в процессе оформления заказа." 383 400 384 #: includes/class-wc-robokassa-method.php:13 23401 #: includes/class-wc-robokassa-method.php:1343 385 402 #: includes/class-wc-robokassa-sub-method.php:598 386 403 msgid "Order button text" 387 404 msgstr "Название кнопки оплаты" 388 405 389 #: includes/class-wc-robokassa-method.php:13 25406 #: includes/class-wc-robokassa-method.php:1345 390 407 #: includes/class-wc-robokassa-sub-method.php:600 391 408 msgid "This is the button text that the user sees during the payment." … … 394 411 "заказа." 395 412 396 #: includes/class-wc-robokassa-method.php:13 26413 #: includes/class-wc-robokassa-method.php:1346 397 414 #: includes/class-wc-robokassa-sub-method.php:601 398 415 msgid "Goto pay" 399 416 msgstr "Перейти к оплате" 400 417 401 #: includes/class-wc-robokassa-method.php:13 31418 #: includes/class-wc-robokassa-method.php:1351 402 419 #: includes/class-wc-robokassa-sub-method.php:606 403 420 msgid "Description" 404 421 msgstr "Описание" 405 422 406 #: includes/class-wc-robokassa-method.php:13 33423 #: includes/class-wc-robokassa-method.php:1353 407 424 #: includes/class-wc-robokassa-sub-method.php:608 408 425 msgid "" … … 411 428 msgstr "Описанием метода оплаты которое клиент будет видеть на вашем сайте." 412 429 413 #: includes/class-wc-robokassa-method.php:13 34430 #: includes/class-wc-robokassa-method.php:1354 414 431 #: includes/class-wc-robokassa-sub-method.php:609 415 432 msgid "Payment via Robokassa." 416 433 msgstr "Оплата через Робокассу." 417 434 418 #: includes/class-wc-robokassa-method.php:13 51435 #: includes/class-wc-robokassa-method.php:1371 419 436 msgid "Cart content sending (54fz)" 420 437 msgstr "Отправка данных корзины (54 федеральный закон)" 421 438 422 #: includes/class-wc-robokassa-method.php:13 53439 #: includes/class-wc-robokassa-method.php:1373 423 440 msgid "" 424 441 "These settings are required only for legal entities in the absence of its " … … 428 445 "кассового аппарата." 429 446 430 #: includes/class-wc-robokassa-method.php:13 58447 #: includes/class-wc-robokassa-method.php:1378 431 448 msgid "The transfer of goods" 432 449 msgstr "Передача товаров" 433 450 434 #: includes/class-wc-robokassa-method.php:13 61451 #: includes/class-wc-robokassa-method.php:1381 435 452 msgid "" 436 453 "When you select the option, a check will be generated and sent to the tax " … … 444 461 "Федерации. Возможны расхождения в сумме НДС с суммой, рассчитанной магазином." 445 462 446 #: includes/class-wc-robokassa-method.php:13 67463 #: includes/class-wc-robokassa-method.php:1387 447 464 msgid "Taxation system" 448 465 msgstr "Система налогообложения" 449 466 450 #: includes/class-wc-robokassa-method.php:13 72467 #: includes/class-wc-robokassa-method.php:1392 451 468 msgid "General" 452 469 msgstr "Общая" 453 470 454 #: includes/class-wc-robokassa-method.php:13 73471 #: includes/class-wc-robokassa-method.php:1393 455 472 msgid "Simplified, income" 456 473 msgstr "Упрощенная, доход" 457 474 458 #: includes/class-wc-robokassa-method.php:13 74475 #: includes/class-wc-robokassa-method.php:1394 459 476 msgid "Simplified, income minus consumption" 460 477 msgstr "Упрощенная, доход минус расход" 461 478 462 #: includes/class-wc-robokassa-method.php:13 75479 #: includes/class-wc-robokassa-method.php:1395 463 480 msgid "Single tax on imputed income" 464 481 msgstr "Единый налог на вмененный доход" 465 482 466 #: includes/class-wc-robokassa-method.php:13 76483 #: includes/class-wc-robokassa-method.php:1396 467 484 msgid "Single agricultural tax" 468 485 msgstr "Единый сельскохозяйственный налог" 469 486 470 #: includes/class-wc-robokassa-method.php:13 77487 #: includes/class-wc-robokassa-method.php:1397 471 488 msgid "Patent system of taxation" 472 489 msgstr "Патентная система налогообложения" 473 490 474 #: includes/class-wc-robokassa-method.php:1 383491 #: includes/class-wc-robokassa-method.php:1403 475 492 msgid "Default VAT rate" 476 493 msgstr "НДС по умолчанию" 477 494 478 #: includes/class-wc-robokassa-method.php:1 388495 #: includes/class-wc-robokassa-method.php:1408 479 496 msgid "Without the vat" 480 497 msgstr "Без НДС" 481 498 482 #: includes/class-wc-robokassa-method.php:1 389499 #: includes/class-wc-robokassa-method.php:1409 483 500 msgid "VAT 0%" 484 501 msgstr "НДС 0%" 485 502 486 #: includes/class-wc-robokassa-method.php:1 390503 #: includes/class-wc-robokassa-method.php:1410 487 504 msgid "VAT 10%" 488 505 msgstr "НДС 10%" 489 506 490 #: includes/class-wc-robokassa-method.php:1 391507 #: includes/class-wc-robokassa-method.php:1411 491 508 msgid "VAT 20%" 492 509 msgstr "НДС 20%" 493 510 494 #: includes/class-wc-robokassa-method.php:1 392511 #: includes/class-wc-robokassa-method.php:1412 495 512 msgid "VAT receipt settlement rate 10/110" 496 513 msgstr "НДС рассчитанный по ставке 10/110" 497 514 498 #: includes/class-wc-robokassa-method.php:1 393515 #: includes/class-wc-robokassa-method.php:1413 499 516 msgid "VAT receipt settlement rate 20/120" 500 517 msgstr "НДС рассчитанный по ставке 20/120" 501 518 502 #: includes/class-wc-robokassa-method.php:1 399519 #: includes/class-wc-robokassa-method.php:1419 503 520 msgid "Indication of the calculation method" 504 521 msgstr "Указание метода расчета" 505 522 506 #: includes/class-wc-robokassa-method.php:14 00507 #: includes/class-wc-robokassa-method.php:14 19523 #: includes/class-wc-robokassa-method.php:1420 524 #: includes/class-wc-robokassa-method.php:1439 508 525 msgid "" 509 526 "The parameter is optional. If this parameter is not configured, the check " … … 513 530 "будет указано значение параметра по умолчанию из личного кабинета." 514 531 515 #: includes/class-wc-robokassa-method.php:14 05516 #: includes/class-wc-robokassa-method.php:14 24532 #: includes/class-wc-robokassa-method.php:1425 533 #: includes/class-wc-robokassa-method.php:1444 517 534 msgid "Default in Robokassa" 518 535 msgstr "По умолчанию в Робокассе" 519 536 520 #: includes/class-wc-robokassa-method.php:14 06537 #: includes/class-wc-robokassa-method.php:1426 521 538 msgid "Prepayment 100%" 522 539 msgstr "Предоплата 100%" 523 540 524 #: includes/class-wc-robokassa-method.php:14 07541 #: includes/class-wc-robokassa-method.php:1427 525 542 msgid "Partial prepayment" 526 543 msgstr "Частичная предоплата" 527 544 528 #: includes/class-wc-robokassa-method.php:14 08545 #: includes/class-wc-robokassa-method.php:1428 529 546 msgid "Advance" 530 547 msgstr "Аванс" 531 548 532 #: includes/class-wc-robokassa-method.php:14 09549 #: includes/class-wc-robokassa-method.php:1429 533 550 msgid "Full settlement" 534 551 msgstr "Полная предоплата" 535 552 536 #: includes/class-wc-robokassa-method.php:14 10553 #: includes/class-wc-robokassa-method.php:1430 537 554 msgid "Partial settlement and credit" 538 555 msgstr "Частичный расчет и кредит" 539 556 540 #: includes/class-wc-robokassa-method.php:14 11557 #: includes/class-wc-robokassa-method.php:1431 541 558 msgid "Transfer on credit" 542 559 msgstr "Передача в кредит" 543 560 544 #: includes/class-wc-robokassa-method.php:14 12561 #: includes/class-wc-robokassa-method.php:1432 545 562 msgid "Credit payment" 546 563 msgstr "Платеж по кредиту" 547 564 548 #: includes/class-wc-robokassa-method.php:14 18565 #: includes/class-wc-robokassa-method.php:1438 549 566 msgid "Sign of the subject of calculation" 550 567 msgstr "Признак предмета расчета" 551 568 552 #: includes/class-wc-robokassa-method.php:14 25569 #: includes/class-wc-robokassa-method.php:1445 553 570 msgid "Product" 554 571 msgstr "Товар" 555 572 556 #: includes/class-wc-robokassa-method.php:14 26573 #: includes/class-wc-robokassa-method.php:1446 557 574 msgid "Excisable goods" 558 575 msgstr "Подакцизные товары" 559 576 560 #: includes/class-wc-robokassa-method.php:14 27577 #: includes/class-wc-robokassa-method.php:1447 561 578 msgid "Work" 562 579 msgstr "Работа" 563 580 564 #: includes/class-wc-robokassa-method.php:14 28581 #: includes/class-wc-robokassa-method.php:1448 565 582 msgid "Service" 566 583 msgstr "Услуга" 567 584 568 #: includes/class-wc-robokassa-method.php:14 29585 #: includes/class-wc-robokassa-method.php:1449 569 586 msgid "Gambling rate" 570 587 msgstr "Ставка на азартные игры" 571 588 572 #: includes/class-wc-robokassa-method.php:14 30589 #: includes/class-wc-robokassa-method.php:1450 573 590 msgid "Gambling win" 574 591 msgstr "Выигрыш в азартных играх" 575 592 576 #: includes/class-wc-robokassa-method.php:14 31593 #: includes/class-wc-robokassa-method.php:1451 577 594 msgid "Lottery ticket" 578 595 msgstr "Лотерейный билет" 579 596 580 #: includes/class-wc-robokassa-method.php:14 32597 #: includes/class-wc-robokassa-method.php:1452 581 598 msgid "Winning the lottery" 582 599 msgstr "Выигрыш в лотерею" 583 600 584 #: includes/class-wc-robokassa-method.php:14 33601 #: includes/class-wc-robokassa-method.php:1453 585 602 msgid "Results of intellectual activity" 586 603 msgstr "Результаты интеллектуальной деятельности" 587 604 588 #: includes/class-wc-robokassa-method.php:14 34605 #: includes/class-wc-robokassa-method.php:1454 589 606 msgid "Payment" 590 607 msgstr "Платеж" 591 608 592 #: includes/class-wc-robokassa-method.php:14 35609 #: includes/class-wc-robokassa-method.php:1455 593 610 msgid "Agency fee" 594 611 msgstr "Агентское вознаграждение" 595 612 596 #: includes/class-wc-robokassa-method.php:14 36613 #: includes/class-wc-robokassa-method.php:1456 597 614 msgid "Compound subject of calculation" 598 615 msgstr "Соединение при подсчете" 599 616 600 #: includes/class-wc-robokassa-method.php:14 37617 #: includes/class-wc-robokassa-method.php:1457 601 618 msgid "Another object of the calculation" 602 619 msgstr "Иной предмет расчета" 603 620 604 #: includes/class-wc-robokassa-method.php:14 38621 #: includes/class-wc-robokassa-method.php:1458 605 622 msgid "Property right" 606 623 msgstr "Имущественное право собственности" 607 624 608 #: includes/class-wc-robokassa-method.php:14 39625 #: includes/class-wc-robokassa-method.php:1459 609 626 msgid "Extraordinary income" 610 627 msgstr "Внереализационный доход" 611 628 612 #: includes/class-wc-robokassa-method.php:14 40629 #: includes/class-wc-robokassa-method.php:1460 613 630 msgid "Insurance premium" 614 631 msgstr "Страховая премия" 615 632 616 #: includes/class-wc-robokassa-method.php:14 41633 #: includes/class-wc-robokassa-method.php:1461 617 634 msgid "Sales tax" 618 635 msgstr "Налог с продаж" 619 636 620 #: includes/class-wc-robokassa-method.php:14 42637 #: includes/class-wc-robokassa-method.php:1462 621 638 msgid "Resort fee" 622 639 msgstr "Курортный сбор" 623 640 624 #: includes/class-wc-robokassa-method.php:14 60641 #: includes/class-wc-robokassa-method.php:1480 625 642 msgid "Orders notes" 626 643 msgstr "Заметки для заказов" 627 644 628 #: includes/class-wc-robokassa-method.php:14 62645 #: includes/class-wc-robokassa-method.php:1482 629 646 msgid "Settings for adding notes to orders. All are off by default." 630 647 msgstr "" 631 648 "Настройки для добавления примечаний к заказам. По умолчанию все выключены." 632 649 633 #: includes/class-wc-robokassa-method.php:14 67650 #: includes/class-wc-robokassa-method.php:1487 634 651 msgid "Errors when verifying the signature of requests" 635 652 msgstr "Ошибки при проверке подписи запросов" 636 653 637 #: includes/class-wc-robokassa-method.php:14 70654 #: includes/class-wc-robokassa-method.php:1490 638 655 msgid "" 639 656 "Recording a errors when verifying the signature of requests from Robokassa." 640 657 msgstr "Запись ошибок при проверке подписи запросов от Робокассы." 641 658 642 #: includes/class-wc-robokassa-method.php:14 76659 #: includes/class-wc-robokassa-method.php:1496 643 660 msgid "Process payments" 644 661 msgstr "Процесс платежей" 645 662 646 #: includes/class-wc-robokassa-method.php:14 79663 #: includes/class-wc-robokassa-method.php:1499 647 664 msgid "" 648 665 "Recording information about the beginning of the payment process by the user." 649 666 msgstr "Запись информации о начале процесса оплаты пользователем." 650 667 651 #: includes/class-wc-robokassa-method.php:1 485668 #: includes/class-wc-robokassa-method.php:1505 652 669 msgid "Successful payments" 653 670 msgstr "Успешные оплаты" 654 671 655 #: includes/class-wc-robokassa-method.php:1 488672 #: includes/class-wc-robokassa-method.php:1508 656 673 msgid "Recording information about received requests with successful payment." 657 674 msgstr "Запись информации о полученных запросах с успешной оплатой." 658 675 659 #: includes/class-wc-robokassa-method.php:1 494676 #: includes/class-wc-robokassa-method.php:1514 660 677 msgid "Background requests" 661 678 msgstr "Фоновые запросы" 662 679 663 #: includes/class-wc-robokassa-method.php:1 497680 #: includes/class-wc-robokassa-method.php:1517 664 681 msgid "" 665 682 "Recording information about the background queries about transactions from " … … 667 684 msgstr "Запись информации о фоновых запросах по транзакциям от Робокассы." 668 685 669 #: includes/class-wc-robokassa-method.php:15 03686 #: includes/class-wc-robokassa-method.php:1523 670 687 msgid "Failed requests" 671 688 msgstr "Неудачные запросы" 672 689 673 #: includes/class-wc-robokassa-method.php:15 06690 #: includes/class-wc-robokassa-method.php:1526 674 691 msgid "" 675 692 "Recording information about the clients return to the canceled payment page." 676 693 msgstr "Запись информации о возврате клиентов на страницу отмененного платежа." 677 694 678 #: includes/class-wc-robokassa-method.php:15 12695 #: includes/class-wc-robokassa-method.php:1532 679 696 msgid "Success requests" 680 697 msgstr "Успешные запросы" 681 698 682 #: includes/class-wc-robokassa-method.php:15 15699 #: includes/class-wc-robokassa-method.php:1535 683 700 msgid "" 684 701 "Recording information about the clients return to the success payment page." 685 702 msgstr "Запись информации о возврате клиентов на страницу успешного платежа." 686 703 687 #: includes/class-wc-robokassa-method.php:15 33704 #: includes/class-wc-robokassa-method.php:1553 688 705 msgid "Technical details" 689 706 msgstr "Технические детали" 690 707 691 #: includes/class-wc-robokassa-method.php:15 35708 #: includes/class-wc-robokassa-method.php:1555 692 709 msgid "" 693 710 "Setting technical parameters. Used by technical specialists. Can leave it at " … … 697 714 "Можете оставить все как есть." 698 715 699 #: includes/class-wc-robokassa-method.php:15 42716 #: includes/class-wc-robokassa-method.php:1562 700 717 msgid "Logging" 701 718 msgstr "Ведение журнала" 702 719 703 #: includes/class-wc-robokassa-method.php:15 44720 #: includes/class-wc-robokassa-method.php:1564 704 721 msgid "" 705 722 "You can enable gateway logging, specify the level of error that you want to " … … 711 728 "удаляются. По умолчанию частота ошибок не должна быть меньше, чем ошибка." 712 729 713 #: includes/class-wc-robokassa-method.php:15 44730 #: includes/class-wc-robokassa-method.php:1564 714 731 msgid "Current file: " 715 732 msgstr "Текущий файл: " 716 733 717 #: includes/class-wc-robokassa-method.php:15 48734 #: includes/class-wc-robokassa-method.php:1568 718 735 msgid "Off" 719 736 msgstr "Отключить" 720 737 721 #: includes/class-wc-robokassa-method.php:1562 722 msgid "Cart clearing" 723 msgstr "Очистка корзины" 724 725 #: includes/class-wc-robokassa-method.php:1565 726 msgid "" 727 "Clean the customers cart if payment is successful? If so, the shopping cart " 728 "will be cleaned. If not, the goods already purchased will most likely remain " 729 "in the shopping cart." 730 msgstr "" 731 "Очистить корзину клиентов, если оплата прошла успешно? Если да, корзина " 732 "будет очищена. Если нет, то уже приобретенные товары скорее всего останутся " 733 "в корзине." 734 735 #: includes/class-wc-robokassa-method.php:1571 736 msgid "Mark order as cancelled?" 737 msgstr "Отметить заказ как отмененный?" 738 739 #: includes/class-wc-robokassa-method.php:1574 740 msgid "" 741 "Change the status of the order to canceled when the user cancels the " 742 "payment. The status changes when the user returns to the cancelled payment " 743 "page." 744 msgstr "" 745 "Измените статус заказа на отмененный, когда пользователь отменяет платеж. " 746 "Статус меняется при возврате пользователя на страницу отмененного платежа." 747 748 #: includes/class-wc-robokassa-method.php:1605 749 #, php-format 750 msgid "Any "%1$s" method" 751 msgstr "" 752 753 #: includes/class-wc-robokassa-method.php:1621 754 #, php-format 755 msgid "%1$s (#%2$s)" 756 msgstr "" 757 758 #: includes/class-wc-robokassa-method.php:1624 759 #, php-format 760 msgid "%1$s – %2$s" 761 msgstr "" 762 763 #: includes/class-wc-robokassa-method.php:1624 764 msgid "Other locations" 765 msgstr "Другие пункты" 766 767 #: includes/class-wc-robokassa-method.php:1633 768 msgid "Enable for shipping methods" 769 msgstr "Включить для способов доставки" 770 771 #: includes/class-wc-robokassa-method.php:1638 772 msgid "" 773 "If only available for certain methods, set it up here. Leave blank to enable " 774 "for all methods." 775 msgstr "" 776 "Если платежный метод доступен только для определенных методов доставки, " 777 "установите их здесь. Оставьте пустым, чтобы включить все методы." 778 779 #: includes/class-wc-robokassa-method.php:1642 780 msgid "Select shipping methods" 781 msgstr "Выберите способы доставки" 782 783 #: includes/class-wc-robokassa-method.php:1649 738 #: includes/class-wc-robokassa-method.php:1582 784 739 msgid "Payment of the commission for the buyer" 785 740 msgstr "Оплата комиссии за покупателя" 786 741 787 #: includes/class-wc-robokassa-method.php:1 652742 #: includes/class-wc-robokassa-method.php:1585 788 743 msgid "" 789 744 "When you enable this feature, the store will pay all customer Commission " … … 795 750 "физических лиц." 796 751 797 #: includes/class-wc-robokassa-method.php:1 658752 #: includes/class-wc-robokassa-method.php:1591 798 753 msgid "" 799 754 "Preliminary conversion of order currency into roubles for commission " … … 801 756 msgstr "Предварительная конвертация валюты заказа в рубли для расчета комиссии" 802 757 803 #: includes/class-wc-robokassa-method.php:1 661758 #: includes/class-wc-robokassa-method.php:1594 804 759 msgid "" 805 760 "If the calculation of the customer commission is included and the order is " … … 812 767 "Это необходимо из-за плохого API Робокассы." 813 768 814 #: includes/class-wc-robokassa-method.php:1780 769 #: includes/class-wc-robokassa-method.php:1601 770 msgid "Cart clearing" 771 msgstr "Очистка корзины" 772 773 #: includes/class-wc-robokassa-method.php:1604 774 msgid "" 775 "Clean the customers cart if payment is successful? If so, the shopping cart " 776 "will be cleaned. If not, the goods already purchased will most likely remain " 777 "in the shopping cart." 778 msgstr "" 779 "Очистить корзину клиентов, если оплата прошла успешно? Если да, корзина " 780 "будет очищена. Если нет, то уже приобретенные товары скорее всего останутся " 781 "в корзине." 782 783 #: includes/class-wc-robokassa-method.php:1610 784 msgid "Mark order as cancelled?" 785 msgstr "Отметить заказ как отмененный?" 786 787 #: includes/class-wc-robokassa-method.php:1613 788 msgid "" 789 "Change the status of the order to canceled when the user cancels the " 790 "payment. The status changes when the user returns to the cancelled payment " 791 "page." 792 msgstr "" 793 "Измените статус заказа на отмененный, когда пользователь отменяет платеж. " 794 "Статус меняется при возврате пользователя на страницу отмененного платежа." 795 796 #: includes/class-wc-robokassa-method.php:1644 797 #, php-format 798 msgid "Any "%1$s" method" 799 msgstr "" 800 801 #: includes/class-wc-robokassa-method.php:1660 802 #, php-format 803 msgid "%1$s (#%2$s)" 804 msgstr "" 805 806 #: includes/class-wc-robokassa-method.php:1663 807 #, php-format 808 msgid "%1$s – %2$s" 809 msgstr "" 810 811 #: includes/class-wc-robokassa-method.php:1663 812 msgid "Other locations" 813 msgstr "Другие пункты" 814 815 #: includes/class-wc-robokassa-method.php:1672 816 msgid "Enable for shipping methods" 817 msgstr "Включить для способов доставки" 818 819 #: includes/class-wc-robokassa-method.php:1677 820 msgid "" 821 "If only available for certain methods, set it up here. Leave blank to enable " 822 "for all methods." 823 msgstr "" 824 "Если платежный метод доступен только для определенных методов доставки, " 825 "установите их здесь. Оставьте пустым, чтобы включить все методы." 826 827 #: includes/class-wc-robokassa-method.php:1681 828 msgid "Select shipping methods" 829 msgstr "Выберите способы доставки" 830 831 #: includes/class-wc-robokassa-method.php:1800 815 832 msgid "Return to payment gateways" 816 833 msgstr "Вернутся к платежным шлюзам" 817 834 818 #: includes/class-wc-robokassa-method.php:18 37835 #: includes/class-wc-robokassa-method.php:1857 819 836 msgid "" 820 837 "TEST mode is active. Payment will not be charged. After checking, disable " … … 824 841 "режим." 825 842 826 #: includes/class-wc-robokassa-method.php:18 60843 #: includes/class-wc-robokassa-method.php:1880 827 844 msgid "" 828 845 "The customer clicked the payment button, but an error occurred while getting " … … 831 848 "Клиент нажал кнопку оплаты, но при получении объекта заказа произошла ошибка." 832 849 833 #: includes/class-wc-robokassa-method.php:1 881850 #: includes/class-wc-robokassa-method.php:1901 834 851 msgid "" 835 852 "The customer clicked the payment button and was sent to the side of the " … … 837 854 msgstr "Клиент нажал на кнопку оплаты и был отправлен в сторону Робокассы." 838 855 839 #: includes/class-wc-robokassa-method.php:1 895856 #: includes/class-wc-robokassa-method.php:1915 840 857 msgid "" 841 858 "The customer clicked the payment button and was sent to the page of the " … … 844 861 "Клиент нажал кнопку оплаты и был отправлен на страницу полученного заказа." 845 862 846 #: includes/class-wc-robokassa-method.php: 1996863 #: includes/class-wc-robokassa-method.php:2016 847 864 #: includes/class-wc-robokassa-sub-method.php:250 848 865 msgid "Order number: " 849 866 msgstr "Номер заказа: " 850 867 851 #: includes/class-wc-robokassa-method.php:21 15868 #: includes/class-wc-robokassa-method.php:2135 852 869 #: includes/class-wc-robokassa-sub-method.php:396 853 870 msgid "Pay" 854 871 msgstr "Оплатить" 855 872 856 #: includes/class-wc-robokassa-method.php:21 16873 #: includes/class-wc-robokassa-method.php:2136 857 874 #: includes/class-wc-robokassa-sub-method.php:397 858 875 msgid "Cancel & return to cart" 859 876 msgstr "Отменить и вернутся в корзину" 860 877 861 #: includes/class-wc-robokassa-method.php:22 10878 #: includes/class-wc-robokassa-method.php:2230 862 879 msgid "Delivery" 863 880 msgstr "Доставка" 864 881 865 #: includes/class-wc-robokassa-method.php:24 34882 #: includes/class-wc-robokassa-method.php:2454 866 883 msgid "Order not found." 867 884 msgstr "Заказ не найден." 868 885 869 #: includes/class-wc-robokassa-method.php:24 50886 #: includes/class-wc-robokassa-method.php:2470 870 887 #, php-format 871 888 msgid "Robokassa request. Sum: %1$s. Signature: %2$s. Remote signature: %3$s" … … 873 890 "Запрос от Робокассы. Сумма: %1$s. Подпись: %2$s. Удаленная подпись: %3$s" 874 891 875 #: includes/class-wc-robokassa-method.php:24 69892 #: includes/class-wc-robokassa-method.php:2489 876 893 #, php-format 877 894 msgid "Validate hash error. Local: %1$s Remote: %2$s" 878 895 msgstr "Ошибка валидации хеша. Локальный: %1$s Удаленный: %2$s" 879 896 880 #: includes/class-wc-robokassa-method.php:2 484897 #: includes/class-wc-robokassa-method.php:2504 881 898 msgid "Order successfully paid (TEST MODE)." 882 899 msgstr "Счет успешно оплачен (ТЕСТОВЫЙ ПЛАТЕЖ)" 883 900 884 #: includes/class-wc-robokassa-method.php:2 493901 #: includes/class-wc-robokassa-method.php:2513 885 902 msgid "Order successfully paid." 886 903 msgstr "Счет успешно оплачен." 887 904 888 #: includes/class-wc-robokassa-method.php:25 03905 #: includes/class-wc-robokassa-method.php:2523 889 906 msgid "Payment error, please pay other time." 890 907 msgstr "Ошибка платежа, пожалуйста повторите попытку позже." 891 908 892 #: includes/class-wc-robokassa-method.php:25 11909 #: includes/class-wc-robokassa-method.php:2531 893 910 msgid "The client returned to the payment success page." 894 911 msgstr "Клиент вернулся на страницу успешной оплаты." 895 912 896 #: includes/class-wc-robokassa-method.php:25 32913 #: includes/class-wc-robokassa-method.php:2552 897 914 msgid "" 898 915 "Order cancellation. The client returned to the payment cancellation page." 899 916 msgstr "Отмена заказа. Клиент вернулся на страницу отмены платежа." 900 917 901 #: includes/class-wc-robokassa-method.php:25 50918 #: includes/class-wc-robokassa-method.php:2570 902 919 msgid "Api request error. Action not found." 903 920 msgstr "Ошибка запроса к API. Действие не найдено." 904 921 905 #: includes/class-wc-robokassa-method.php:27 37922 #: includes/class-wc-robokassa-method.php:2757 906 923 msgid "" 907 924 "The activation was not success. It may be difficult to release new updates." 908 925 msgstr "" 909 "Активация не была выполнена. Возможно,будет сложно выпустить новые "926 "Активация поддержки не выполнена. Возможно будет сложно выпустить новые " 910 927 "обновления." 911 928 912 #: includes/class-wc-robokassa-method.php:27 54929 #: includes/class-wc-robokassa-method.php:2774 913 930 msgid "disconnected" 914 931 msgstr "отключено" 915 932 916 #: includes/class-wc-robokassa-method.php:27 60933 #: includes/class-wc-robokassa-method.php:2780 917 934 msgid "connected" 918 935 msgstr "подключено" 919 936 920 #: includes/class-wc-robokassa-method.php:27 64937 #: includes/class-wc-robokassa-method.php:2784 921 938 msgid "API Robokassa: " 922 939 msgstr "API Робокассы: " 923 940 924 #: includes/class-wc-robokassa-method.php:27 79941 #: includes/class-wc-robokassa-method.php:2799 925 942 msgid "active" 926 msgstr "актив но"927 928 #: includes/class-wc-robokassa-method.php:2 785943 msgstr "активен" 944 945 #: includes/class-wc-robokassa-method.php:2805 929 946 msgid "inactive" 930 msgstr "неактив но"931 932 #: includes/class-wc-robokassa-method.php:2 789947 msgstr "неактивен" 948 949 #: includes/class-wc-robokassa-method.php:2809 933 950 msgid "Test mode: " 934 951 msgstr "Тестовый режим: " 935 952 936 #: includes/class-wc-robokassa-method.php:28 12953 #: includes/class-wc-robokassa-method.php:2832 937 954 msgid "Currency: " 938 955 msgstr "Валюта: " 939 956 940 #: includes/class-wc-robokassa-method.php:28 30957 #: includes/class-wc-robokassa-method.php:2850 941 958 msgid "" 942 959 "The logging level is too low. Need to increase the level after debugging." … … 954 971 msgstr "Работа невозможна без этих настроек." 955 972 973 #: includes/class-wc-robokassa-sub-method.php:554 974 msgid "Online / Offline" 975 msgstr "Включено / Отключено" 976 956 977 #: includes/class-wc-robokassa-sub-method.php:556 957 978 msgid "Enable display of the payment method on the website" 958 979 msgstr "Включить отображение платежного метода на сайте" 959 980 960 #: includes/class-wc-robokassa.php:379 981 #: includes/class-wc-robokassa-sub-method.php:584 982 msgid "Select the checkbox to enable this feature. Default is disabled." 983 msgstr "" 984 "Установите флажок, чтобы включить эту возможность. Значение по умолчанию - " 985 "отключено." 986 987 #: includes/class-wc-robokassa.php:356 961 988 msgid "This activation code is active." 962 989 msgstr "Этот код активации активен." 963 990 964 #: includes/class-wc-robokassa.php:3 80991 #: includes/class-wc-robokassa.php:357 965 992 msgid "Error: This activation code has expired." 966 993 msgstr "Ошибка: Этот код активации истек." 967 994 968 #: includes/class-wc-robokassa.php:3 81995 #: includes/class-wc-robokassa.php:358 969 996 msgid "Activation code republished. Awaiting reactivation." 970 997 msgstr "Код активации переиздан. Ожидание повторной активации." 971 998 972 #: includes/class-wc-robokassa.php:3 82999 #: includes/class-wc-robokassa.php:359 973 1000 msgid "Error: This activation code has been suspended." 974 1001 msgstr "Ошибка: Этот код активации приостановлен." 975 1002 976 #: includes/class-wc-robokassa.php:3 831003 #: includes/class-wc-robokassa.php:360 977 1004 msgid "This activation code is not found." 978 1005 msgstr "Указанный код активации не найден." 979 1006 980 #: includes/class-wc-robokassa.php:3 841007 #: includes/class-wc-robokassa.php:361 981 1008 msgid "This activation code is active (localhost)." 982 1009 msgstr "Этот код активации активен (localhost)." 983 1010 984 #: includes/class-wc-robokassa.php:3 851011 #: includes/class-wc-robokassa.php:362 985 1012 msgid "Error: This activation code is pending review." 986 1013 msgstr "Ошибка: Этот код активации находится на рассмотрении." 987 1014 988 #: includes/class-wc-robokassa.php:3 861015 #: includes/class-wc-robokassa.php:363 989 1016 msgid "" 990 1017 "Error: This version of the software was released after your download access " … … 995 1022 "свяжитесь со службой поддержки для получения более подробной информации." 996 1023 997 #: includes/class-wc-robokassa.php:3 871024 #: includes/class-wc-robokassa.php:364 998 1025 msgid "Error: The activation code variable is empty." 999 1026 msgstr "Ошибка: Переменная кода активации пуста." 1000 1027 1001 #: includes/class-wc-robokassa.php:3 881028 #: includes/class-wc-robokassa.php:365 1002 1029 msgid "Error: I could not obtain a new local code." 1003 1030 msgstr "Ошибка: Я не смог получить новый локальный код." 1004 1031 1005 #: includes/class-wc-robokassa.php:3 891032 #: includes/class-wc-robokassa.php:366 1006 1033 msgid "Error: The maximum local code delay period has expired." 1007 1034 msgstr "Ошибка: Максимальный период задержки локального кода истек." 1008 1035 1009 #: includes/class-wc-robokassa.php:3 901036 #: includes/class-wc-robokassa.php:367 1010 1037 msgid "Error: The local key has been tampered with or is invalid." 1011 1038 msgstr "Ошибка: Локальный ключ был подделан или недействителен." 1012 1039 1013 #: includes/class-wc-robokassa.php:3 911040 #: includes/class-wc-robokassa.php:368 1014 1041 msgid "Error: The local code is invalid for this location." 1015 1042 msgstr "Ошибка: локальный код недействителен для этого места." 1016 1043 1017 #: includes/class-wc-robokassa.php:3 921044 #: includes/class-wc-robokassa.php:369 1018 1045 msgid "" 1019 1046 "Error: Please create the following file (and directories if they dont exist " … … 1023 1050 "существуют): " 1024 1051 1025 #: includes/class-wc-robokassa.php:3 931052 #: includes/class-wc-robokassa.php:370 1026 1053 msgid "Error: Please make the following path writable: " 1027 1054 msgstr "Ошибка: Пожалуйста, сделайте следующий путь доступным для записи: " 1028 1055 1029 #: includes/class-wc-robokassa.php:3 941056 #: includes/class-wc-robokassa.php:371 1030 1057 msgid "Error: I could not determine the local key storage on clear." 1031 1058 msgstr "Ошибка: Я не смог определить локальное хранилище ключей на чистоте." 1032 1059 1033 #: includes/class-wc-robokassa.php:3 951060 #: includes/class-wc-robokassa.php:372 1034 1061 msgid "Error: I could not save the local key." 1035 1062 msgstr "Ошибка: Я не смог сохранить локальный ключ." 1036 1063 1037 #: includes/class-wc-robokassa.php:3 961064 #: includes/class-wc-robokassa.php:373 1038 1065 msgid "Error: The local code is invalid for this activation code." 1039 1066 msgstr "Ошибка: Локальный код недействителен для указанного кода активации." 1040 1067 1041 #: includes/class-wc-robokassa.php:3 971068 #: includes/class-wc-robokassa.php:374 1042 1069 msgid "Error: This activation code has been deleted." 1043 1070 msgstr "Ошибка: Этот код активации был удален." 1044 1071 1045 #: includes/class-wc-robokassa.php:3 981072 #: includes/class-wc-robokassa.php:375 1046 1073 msgid "Error: This activation code has draft." 1047 1074 msgstr "Ошибка: Этот код активации имеет черновик." 1048 1075 1049 #: includes/class-wc-robokassa.php:3 991076 #: includes/class-wc-robokassa.php:376 1050 1077 msgid "Error: This activation code has available." 1051 1078 msgstr "Ошибка: Этот код активации доступен." 1052 1079 1053 #: includes/class-wc-robokassa.php: 4001080 #: includes/class-wc-robokassa.php:377 1054 1081 msgid "Error: This activation code has been blocked." 1055 1082 msgstr "Ошибка: Этот код активации заблокирован." 1056 1083 1057 #: includes/class-wc-robokassa.php:7 631084 #: includes/class-wc-robokassa.php:783 1058 1085 msgid "Official site" 1059 1086 msgstr "Официальная страница" 1060 1087 1061 #: includes/class-wc-robokassa.php:7 781088 #: includes/class-wc-robokassa.php:798 1062 1089 msgid "Settings" 1063 1090 msgstr "Настройки" 1064 1091 1065 #: includes/class-wc-robokassa.php:8 071092 #: includes/class-wc-robokassa.php:827 1066 1093 msgid "" 1067 1094 "The plugin for accepting payments through ROBOKASSA for WooCommerce has been " … … 1071 1098 "версии, требующей дополнительной настройки." 1072 1099 1073 #: includes/class-wc-robokassa.php:8 091100 #: includes/class-wc-robokassa.php:829 1074 1101 msgid "here" 1075 1102 msgstr "сюда" 1076 1103 1077 #: includes/class-wc-robokassa.php:8 101104 #: includes/class-wc-robokassa.php:830 1078 1105 #, php-format 1079 1106 msgid "Press %s (go to payment gateway settings)." 1080 1107 msgstr "Нажмите %s (для перехода к настройкам платежного шлюза)." 1081 1108 1082 #: includes/class-wc-robokassa.php:9 271109 #: includes/class-wc-robokassa.php:949 1083 1110 msgid "Useful information" 1084 1111 msgstr "Полезная информация" 1085 1112 1086 #: includes/class-wc-robokassa.php:9 311113 #: includes/class-wc-robokassa.php:953 1087 1114 msgid "Official plugin page" 1088 1115 msgstr "Официальная страница" 1089 1116 1090 #: includes/class-wc-robokassa.php:9 321117 #: includes/class-wc-robokassa.php:954 1091 1118 msgid "Related news: ROBOKASSA" 1092 1119 msgstr "Новости по теме Робокасса" 1093 1120 1094 #: includes/class-wc-robokassa.php:9 331121 #: includes/class-wc-robokassa.php:955 1095 1122 msgid "Plugins for WooCommerce" 1096 1123 msgstr "Плагины для WooCommerce" 1097 1124 1098 #: includes/class-wc-robokassa.php:9 531125 #: includes/class-wc-robokassa.php:975 1099 1126 msgid "Errors not found. Payment acceptance is active." 1100 1127 msgstr "Ошибки не найдены. Прием платежей активен." 1101 1128 1102 #: includes/class-wc-robokassa.php:9 571129 #: includes/class-wc-robokassa.php:979 1103 1130 msgid "" 1104 1131 "Warnings found. They are highlighted in yellow. You should attention to them." 1105 1132 msgstr "" 1106 " Предупреждения найдены. Они выделены желтым цветом. Вы должны обратить на"1107 " нихвнимание."1108 1109 #: includes/class-wc-robokassa.php:9 611133 "Найдены предупреждения. Они выделены желтым цветом. Нужно обратить на них " 1134 "внимание." 1135 1136 #: includes/class-wc-robokassa.php:983 1110 1137 msgid "" 1111 1138 "Critical errors were detected. They are highlighted in red. Payment " … … 1115 1142 "платежей не активен." 1116 1143 1117 #: includes/class-wc-robokassa.php:9 651144 #: includes/class-wc-robokassa.php:987 1118 1145 msgid "Status" 1119 1146 msgstr "Состояние" … … 1247 1274 msgstr "https://mofsy.ru" 1248 1275 1276 #~ msgid "Use of all mechanisms add a child of payment methods." 1277 #~ msgstr "Использование всех механизмов добавления дочерних способов оплаты." 1278 1279 #~ msgid "Enable sub methods" 1280 #~ msgstr "Включить дочерние методы" 1281 1249 1282 #~ msgid "Technical key" 1250 1283 #~ msgstr "Технический ключ" … … 1398 1431 #~ msgstr "Скидка составляет 400 рублей." 1399 1432 1400 #, php-format1401 1433 #~ msgid "" 1402 1434 #~ "Press %s (to go to payment gateway settings). Examine the new settings " -
wc-robokassa/trunk/languages/wc-robokassa.pot
r2334486 r2507761 4 4 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 5 5 "Project-Id-Version: Payment gateway - Robokassa for WooCommerce\n" 6 "POT-Creation-Date: 202 0-07-02 22:42+0300\n"6 "POT-Creation-Date: 2021-04-02 01:20+0300\n" 7 7 "PO-Revision-Date: 2016-01-10 16:41+0300\n" 8 8 "Last-Translator: Mofsy <support@mofsy.ru>\n" … … 22 22 23 23 #: includes/class-wc-robokassa-method.php:187 24 #: includes/class-wc-robokassa-method.php:13 1824 #: includes/class-wc-robokassa-method.php:1338 25 25 #: includes/class-wc-robokassa-sub-method.php:50 26 26 msgid "Robokassa" … … 31 31 msgstr "" 32 32 33 #: includes/class-wc-robokassa-method.php:96 734 msgid " Activation"35 msgstr "" 36 37 #: includes/class-wc-robokassa-method.php:97 033 #: includes/class-wc-robokassa-method.php:968 34 msgid "Support activation" 35 msgstr "" 36 37 #: includes/class-wc-robokassa-method.php:971 38 38 msgid "The code can be obtained from the plugin website:" 39 39 msgstr "" 40 40 41 #: includes/class-wc-robokassa-method.php:97 041 #: includes/class-wc-robokassa-method.php:971 42 42 msgid "" 43 43 "This section will disappear after enter a valid code before the expiration " … … 45 45 msgstr "" 46 46 47 #: includes/class-wc-robokassa-method.php:97 547 #: includes/class-wc-robokassa-method.php:976 48 48 msgid "Input code" 49 49 msgstr "" 50 50 51 #: includes/class-wc-robokassa-method.php:97 851 #: includes/class-wc-robokassa-method.php:979 52 52 msgid "" 53 53 "If enter the correct code, the current environment will be activated. " … … 55 55 msgstr "" 56 56 57 #: includes/class-wc-robokassa-method.php:10 2857 #: includes/class-wc-robokassa-method.php:1019 58 58 msgid "Activate" 59 59 msgstr "" 60 60 61 #: includes/class-wc-robokassa-method.php:105 061 #: includes/class-wc-robokassa-method.php:1051 62 62 #: includes/class-wc-robokassa-sub-method.php:547 63 63 msgid "Main settings" 64 64 msgstr "" 65 65 66 #: includes/class-wc-robokassa-method.php:105 266 #: includes/class-wc-robokassa-method.php:1053 67 67 msgid "" 68 68 "Without these settings, the payment gateway will not work. Be sure to make " … … 70 70 msgstr "" 71 71 72 #: includes/class-wc-robokassa-method.php:1057 73 #: includes/class-wc-robokassa-sub-method.php:554 74 msgid "Online / Offline" 75 msgstr "" 76 77 #: includes/class-wc-robokassa-method.php:1059 78 msgid "Tick the checkbox if you need to activate the payment gateway." 72 #: includes/class-wc-robokassa-method.php:1058 73 msgid "Main method" 79 74 msgstr "" 80 75 81 76 #: includes/class-wc-robokassa-method.php:1060 82 msgid "" 83 "On disconnection, the payment gateway will not be available for selection " 84 "on the site. It is useful for payments through subsidiaries, or just in " 77 msgid "Tick the checkbox if you need to show the payment gateway." 78 msgstr "" 79 80 #: includes/class-wc-robokassa-method.php:1061 81 msgid "" 82 "On disabled, the payment gateway will not be available for selection on " 83 "the site. Feature useful for payments through subsidiaries, or just in " 85 84 "case of temporary disconnection." 86 85 msgstr "" 87 86 88 #: includes/class-wc-robokassa-method.php:1066 87 #: includes/class-wc-robokassa-method.php:1067 88 #: includes/class-wc-robokassa-method.php:1242 89 msgid "Sub methods" 90 msgstr "" 91 92 #: includes/class-wc-robokassa-method.php:1069 93 msgid "Tick the checkbox to enable sub methods feature. Default is disabled." 94 msgstr "" 95 96 #: includes/class-wc-robokassa-method.php:1070 97 msgid "" 98 "Use of all mechanisms of child payment methods. The main method can be " 99 "turned off. The cart will show the child payment methods." 100 msgstr "" 101 102 #: includes/class-wc-robokassa-method.php:1076 89 103 msgid "Shop identifier" 90 104 msgstr "" 91 105 92 #: includes/class-wc-robokassa-method.php:10 68106 #: includes/class-wc-robokassa-method.php:1078 93 107 msgid "Unique identifier for shop from Robokassa." 94 108 msgstr "" 95 109 96 #: includes/class-wc-robokassa-method.php:1074 97 #: includes/class-wc-robokassa-method.php:1168 98 msgid "Hash calculation algorithm" 99 msgstr "" 100 101 #: includes/class-wc-robokassa-method.php:1075 102 msgid "" 103 "The algorithm must match the one specified in the personal account of " 104 "Robokassa." 110 #: includes/class-wc-robokassa-method.php:1084 111 msgid "Test mode" 112 msgstr "" 113 114 #: includes/class-wc-robokassa-method.php:1086 115 msgid "Tick the checkbox to enable test mode. Default is enabled." 116 msgstr "" 117 118 #: includes/class-wc-robokassa-method.php:1087 119 msgid "" 120 "When you activate the test mode, no funds will be debited. In this case, " 121 "the payment gateway will only be displayed when you log in with an " 122 "administrator account. This is done in order to protect you from false " 123 "orders." 105 124 msgstr "" 106 125 107 126 #: includes/class-wc-robokassa-method.php:1091 108 #: includes/class-wc-robokassa-method.php:1185109 msgid "Password #1"110 msgstr ""111 112 #: includes/class-wc-robokassa-method.php:1093113 msgid ""114 "Shop pass #1 must match the one specified in the personal account of "115 "Robokassa."116 msgstr ""117 118 #: includes/class-wc-robokassa-method.php:1099119 #: includes/class-wc-robokassa-method.php:1193120 msgid "Password #2"121 msgstr ""122 123 #: includes/class-wc-robokassa-method.php:1101124 msgid ""125 "Shop pass #2 must match the one specified in the personal account of "126 "Robokassa."127 msgstr ""128 129 #: includes/class-wc-robokassa-method.php:1105130 127 msgid "" 131 128 "Address to notify the site of the results of operations in the background. " … … 134 131 msgstr "" 135 132 136 #: includes/class-wc-robokassa-method.php:1 109133 #: includes/class-wc-robokassa-method.php:1095 137 134 msgid "Result Url" 138 135 msgstr "" 139 136 140 #: includes/class-wc-robokassa-method.php:11 16137 #: includes/class-wc-robokassa-method.php:1102 141 138 msgid "" 142 139 "The address for the user to go to the site after successful payment. Copy " … … 146 143 msgstr "" 147 144 148 #: includes/class-wc-robokassa-method.php:11 20145 #: includes/class-wc-robokassa-method.php:1106 149 146 msgid "Success Url" 150 147 msgstr "" 151 148 152 #: includes/class-wc-robokassa-method.php:11 27149 #: includes/class-wc-robokassa-method.php:1113 153 150 msgid "" 154 151 "The address for the user to go to the site, after payment with an error. " … … 158 155 msgstr "" 159 156 160 #: includes/class-wc-robokassa-method.php:11 31157 #: includes/class-wc-robokassa-method.php:1117 161 158 msgid "Fail Url" 162 159 msgstr "" 163 160 164 #: includes/class-wc-robokassa-method.php:1152 161 #: includes/class-wc-robokassa-method.php:1138 162 msgid "Parameters for real payments" 163 msgstr "" 164 165 #: includes/class-wc-robokassa-method.php:1140 166 msgid "" 167 "Passwords and hashing algorithms for real payments differ from those " 168 "specified for test payments." 169 msgstr "" 170 171 #: includes/class-wc-robokassa-method.php:1145 172 #: includes/class-wc-robokassa-method.php:1197 173 msgid "Hash calculation algorithm" 174 msgstr "" 175 176 #: includes/class-wc-robokassa-method.php:1146 177 msgid "" 178 "The algorithm must match the one specified in the personal account of " 179 "Robokassa." 180 msgstr "" 181 182 #: includes/class-wc-robokassa-method.php:1162 183 #: includes/class-wc-robokassa-method.php:1214 184 msgid "Password #1" 185 msgstr "" 186 187 #: includes/class-wc-robokassa-method.php:1164 188 msgid "" 189 "Shop pass #1 must match the one specified in the personal account of " 190 "Robokassa." 191 msgstr "" 192 193 #: includes/class-wc-robokassa-method.php:1170 194 #: includes/class-wc-robokassa-method.php:1222 195 msgid "Password #2" 196 msgstr "" 197 198 #: includes/class-wc-robokassa-method.php:1172 199 msgid "" 200 "Shop pass #2 must match the one specified in the personal account of " 201 "Robokassa." 202 msgstr "" 203 204 #: includes/class-wc-robokassa-method.php:1190 165 205 msgid "Parameters for test payments" 166 206 msgstr "" 167 207 168 #: includes/class-wc-robokassa-method.php:11 54208 #: includes/class-wc-robokassa-method.php:1192 169 209 msgid "" 170 210 "Passwords and hashing algorithms for test payments differ from those " … … 172 212 msgstr "" 173 213 174 #: includes/class-wc-robokassa-method.php:1159 175 msgid "Test mode" 176 msgstr "" 177 178 #: includes/class-wc-robokassa-method.php:1161 179 #: includes/class-wc-robokassa-method.php:1203 180 #: includes/class-wc-robokassa-method.php:1277 181 msgid "Select the checkbox to enable this feature. Default is enabled." 182 msgstr "" 183 184 #: includes/class-wc-robokassa-method.php:1162 185 msgid "" 186 "When you activate the test mode, no funds will be debited. In this case, " 187 "the payment gateway will only be displayed when you log in with an " 188 "administrator account. This is done in order to protect you from false " 189 "orders." 190 msgstr "" 191 192 #: includes/class-wc-robokassa-method.php:1169 214 #: includes/class-wc-robokassa-method.php:1198 193 215 msgid "" 194 216 "The algorithm must match the one specified in the personal account of " … … 196 218 msgstr "" 197 219 198 #: includes/class-wc-robokassa-method.php:1 187220 #: includes/class-wc-robokassa-method.php:1216 199 221 msgid "" 200 222 "Shop pass #1 for testing payments. The pass must match the one specified " … … 202 224 msgstr "" 203 225 204 #: includes/class-wc-robokassa-method.php:1 195226 #: includes/class-wc-robokassa-method.php:1224 205 227 msgid "" 206 228 "Shop pass #2 for testing payments. The pass must match the one specified " … … 208 230 msgstr "" 209 231 210 #: includes/class-wc-robokassa-method.php:1201 232 #: includes/class-wc-robokassa-method.php:1244 233 msgid "General settings for the sub methods of payment." 234 msgstr "" 235 236 #: includes/class-wc-robokassa-method.php:1249 237 msgid "Check available via the API" 238 msgstr "" 239 240 #: includes/class-wc-robokassa-method.php:1251 241 #: includes/class-wc-robokassa-method.php:1260 242 #: includes/class-wc-robokassa-method.php:1328 243 #: includes/class-wc-robokassa-method.php:1380 244 #: includes/class-wc-robokassa-method.php:1489 245 #: includes/class-wc-robokassa-method.php:1498 246 #: includes/class-wc-robokassa-method.php:1507 247 #: includes/class-wc-robokassa-method.php:1516 248 #: includes/class-wc-robokassa-method.php:1525 249 #: includes/class-wc-robokassa-method.php:1534 250 #: includes/class-wc-robokassa-method.php:1584 251 #: includes/class-wc-robokassa-method.php:1593 252 #: includes/class-wc-robokassa-method.php:1603 253 #: includes/class-wc-robokassa-method.php:1612 254 msgid "Tick the checkbox to enable this feature. Default is disabled." 255 msgstr "" 256 257 #: includes/class-wc-robokassa-method.php:1252 258 msgid "Check whether child methods are currently available for payment." 259 msgstr "" 260 261 #: includes/class-wc-robokassa-method.php:1258 262 msgid "Show the total amount including the fee" 263 msgstr "" 264 265 #: includes/class-wc-robokassa-method.php:1261 266 msgid "" 267 "If you enable this option, the exact amount payable, including fees, will " 268 "be added to the payment method headers." 269 msgstr "" 270 271 #: includes/class-wc-robokassa-method.php:1279 272 #: includes/class-wc-robokassa-sub-method.php:575 273 msgid "Interface" 274 msgstr "" 275 276 #: includes/class-wc-robokassa-method.php:1281 277 #: includes/class-wc-robokassa-sub-method.php:577 278 msgid "Customize the appearance. Can leave it at that." 279 msgstr "" 280 281 #: includes/class-wc-robokassa-method.php:1286 282 #: includes/class-wc-robokassa-sub-method.php:582 283 msgid "Show icon?" 284 msgstr "" 285 286 #: includes/class-wc-robokassa-method.php:1288 287 #: includes/class-wc-robokassa-method.php:1297 288 msgid "Tick the checkbox to enable this feature. Default is enabled." 289 msgstr "" 290 291 #: includes/class-wc-robokassa-method.php:1290 292 msgid "" 293 "Next to the name of the payment method will display the logo Robokassa." 294 msgstr "" 295 296 #: includes/class-wc-robokassa-method.php:1295 211 297 msgid "Test notification display on the test mode" 212 298 msgstr "" 213 299 214 #: includes/class-wc-robokassa-method.php:12 04300 #: includes/class-wc-robokassa-method.php:1298 215 301 msgid "" 216 302 "A notification about the activated test mode will be displayed when the " … … 218 304 msgstr "" 219 305 220 #: includes/class-wc-robokassa-method.php:1222 221 msgid "Sub methods" 222 msgstr "" 223 224 #: includes/class-wc-robokassa-method.php:1224 225 msgid "General settings for the sub methods of payment." 226 msgstr "" 227 228 #: includes/class-wc-robokassa-method.php:1229 229 msgid "Enable sub methods" 230 msgstr "" 231 232 #: includes/class-wc-robokassa-method.php:1231 233 #: includes/class-wc-robokassa-method.php:1240 234 #: includes/class-wc-robokassa-method.php:1249 306 #: includes/class-wc-robokassa-method.php:1304 307 msgid "Language interface" 308 msgstr "" 309 235 310 #: includes/class-wc-robokassa-method.php:1308 236 #: includes/class-wc-robokassa-method.php:1360237 #: includes/class-wc-robokassa-method.php:1469238 #: includes/class-wc-robokassa-method.php:1478239 #: includes/class-wc-robokassa-method.php:1487240 #: includes/class-wc-robokassa-method.php:1496241 #: includes/class-wc-robokassa-method.php:1505242 #: includes/class-wc-robokassa-method.php:1514243 #: includes/class-wc-robokassa-method.php:1564244 #: includes/class-wc-robokassa-method.php:1573245 #: includes/class-wc-robokassa-method.php:1651246 #: includes/class-wc-robokassa-method.php:1660247 #: includes/class-wc-robokassa-sub-method.php:584248 msgid "Select the checkbox to enable this feature. Default is disabled."249 msgstr ""250 251 #: includes/class-wc-robokassa-method.php:1232252 msgid "Use of all mechanisms add a child of payment methods."253 msgstr ""254 255 #: includes/class-wc-robokassa-method.php:1238256 msgid "Check available via the API"257 msgstr ""258 259 #: includes/class-wc-robokassa-method.php:1241260 msgid "Check whether child methods are currently available for payment."261 msgstr ""262 263 #: includes/class-wc-robokassa-method.php:1247264 msgid "Show the total amount including the fee"265 msgstr ""266 267 #: includes/class-wc-robokassa-method.php:1250268 msgid ""269 "If you enable this option, the exact amount payable, including fees, will "270 "be added to the payment method headers."271 msgstr ""272 273 #: includes/class-wc-robokassa-method.php:1268274 #: includes/class-wc-robokassa-sub-method.php:575275 msgid "Interface"276 msgstr ""277 278 #: includes/class-wc-robokassa-method.php:1270279 #: includes/class-wc-robokassa-sub-method.php:577280 msgid "Customize the appearance. Can leave it at that."281 msgstr ""282 283 #: includes/class-wc-robokassa-method.php:1275284 #: includes/class-wc-robokassa-sub-method.php:582285 msgid "Show icon?"286 msgstr ""287 288 #: includes/class-wc-robokassa-method.php:1279289 msgid ""290 "Next to the name of the payment method will display the logo Robokassa."291 msgstr ""292 293 #: includes/class-wc-robokassa-method.php:1284294 msgid "Language interface"295 msgstr ""296 297 #: includes/class-wc-robokassa-method.php:1288298 311 msgid "Russian" 299 312 msgstr "" 300 313 301 #: includes/class-wc-robokassa-method.php:1 289314 #: includes/class-wc-robokassa-method.php:1309 302 315 msgid "English" 303 316 msgstr "" 304 317 305 #: includes/class-wc-robokassa-method.php:1 291318 #: includes/class-wc-robokassa-method.php:1311 306 319 msgid "What language interface displayed for the customer on Robokassa?" 307 320 msgstr "" 308 321 309 #: includes/class-wc-robokassa-method.php:1 297322 #: includes/class-wc-robokassa-method.php:1317 310 323 msgid "Language based on the locale?" 311 324 msgstr "" 312 325 313 #: includes/class-wc-robokassa-method.php:1 299326 #: includes/class-wc-robokassa-method.php:1319 314 327 msgid "Enable user language automatic detection?" 315 328 msgstr "" 316 329 317 #: includes/class-wc-robokassa-method.php:13 00330 #: includes/class-wc-robokassa-method.php:1320 318 331 msgid "" 319 332 "Automatic detection of the users language from the WordPress environment." 320 333 msgstr "" 321 334 322 #: includes/class-wc-robokassa-method.php:13 06335 #: includes/class-wc-robokassa-method.php:1326 323 336 msgid "Skip the received order page?" 324 337 msgstr "" 325 338 326 #: includes/class-wc-robokassa-method.php:13 09339 #: includes/class-wc-robokassa-method.php:1329 327 340 msgid "This setting is used to reduce actions when users switch to payment." 328 341 msgstr "" 329 342 330 #: includes/class-wc-robokassa-method.php:13 15343 #: includes/class-wc-robokassa-method.php:1335 331 344 #: includes/class-wc-robokassa-sub-method.php:590 332 345 msgid "Title" 333 346 msgstr "" 334 347 335 #: includes/class-wc-robokassa-method.php:13 17348 #: includes/class-wc-robokassa-method.php:1337 336 349 #: includes/class-wc-robokassa-sub-method.php:592 337 350 msgid "This is the name that the user sees during the payment." 338 351 msgstr "" 339 352 340 #: includes/class-wc-robokassa-method.php:13 23353 #: includes/class-wc-robokassa-method.php:1343 341 354 #: includes/class-wc-robokassa-sub-method.php:598 342 355 msgid "Order button text" 343 356 msgstr "" 344 357 345 #: includes/class-wc-robokassa-method.php:13 25358 #: includes/class-wc-robokassa-method.php:1345 346 359 #: includes/class-wc-robokassa-sub-method.php:600 347 360 msgid "This is the button text that the user sees during the payment." 348 361 msgstr "" 349 362 350 #: includes/class-wc-robokassa-method.php:13 26363 #: includes/class-wc-robokassa-method.php:1346 351 364 #: includes/class-wc-robokassa-sub-method.php:601 352 365 msgid "Goto pay" 353 366 msgstr "" 354 367 355 #: includes/class-wc-robokassa-method.php:13 31368 #: includes/class-wc-robokassa-method.php:1351 356 369 #: includes/class-wc-robokassa-sub-method.php:606 357 370 msgid "Description" 358 371 msgstr "" 359 372 360 #: includes/class-wc-robokassa-method.php:13 33373 #: includes/class-wc-robokassa-method.php:1353 361 374 #: includes/class-wc-robokassa-sub-method.php:608 362 375 msgid "" … … 365 378 msgstr "" 366 379 367 #: includes/class-wc-robokassa-method.php:13 34380 #: includes/class-wc-robokassa-method.php:1354 368 381 #: includes/class-wc-robokassa-sub-method.php:609 369 382 msgid "Payment via Robokassa." 370 383 msgstr "" 371 384 372 #: includes/class-wc-robokassa-method.php:13 51385 #: includes/class-wc-robokassa-method.php:1371 373 386 msgid "Cart content sending (54fz)" 374 387 msgstr "" 375 388 376 #: includes/class-wc-robokassa-method.php:13 53389 #: includes/class-wc-robokassa-method.php:1373 377 390 msgid "" 378 391 "These settings are required only for legal entities in the absence of its " … … 380 393 msgstr "" 381 394 382 #: includes/class-wc-robokassa-method.php:13 58395 #: includes/class-wc-robokassa-method.php:1378 383 396 msgid "The transfer of goods" 384 397 msgstr "" 385 398 386 #: includes/class-wc-robokassa-method.php:13 61399 #: includes/class-wc-robokassa-method.php:1381 387 400 msgid "" 388 401 "When you select the option, a check will be generated and sent to the tax " … … 393 406 msgstr "" 394 407 395 #: includes/class-wc-robokassa-method.php:13 67408 #: includes/class-wc-robokassa-method.php:1387 396 409 msgid "Taxation system" 397 410 msgstr "" 398 411 399 #: includes/class-wc-robokassa-method.php:13 72412 #: includes/class-wc-robokassa-method.php:1392 400 413 msgid "General" 401 414 msgstr "" 402 415 403 #: includes/class-wc-robokassa-method.php:13 73416 #: includes/class-wc-robokassa-method.php:1393 404 417 msgid "Simplified, income" 405 418 msgstr "" 406 419 407 #: includes/class-wc-robokassa-method.php:13 74420 #: includes/class-wc-robokassa-method.php:1394 408 421 msgid "Simplified, income minus consumption" 409 422 msgstr "" 410 423 411 #: includes/class-wc-robokassa-method.php:13 75424 #: includes/class-wc-robokassa-method.php:1395 412 425 msgid "Single tax on imputed income" 413 426 msgstr "" 414 427 415 #: includes/class-wc-robokassa-method.php:13 76428 #: includes/class-wc-robokassa-method.php:1396 416 429 msgid "Single agricultural tax" 417 430 msgstr "" 418 431 419 #: includes/class-wc-robokassa-method.php:13 77432 #: includes/class-wc-robokassa-method.php:1397 420 433 msgid "Patent system of taxation" 421 434 msgstr "" 422 435 423 #: includes/class-wc-robokassa-method.php:1 383436 #: includes/class-wc-robokassa-method.php:1403 424 437 msgid "Default VAT rate" 425 438 msgstr "" 426 439 427 #: includes/class-wc-robokassa-method.php:1 388440 #: includes/class-wc-robokassa-method.php:1408 428 441 msgid "Without the vat" 429 442 msgstr "" 430 443 431 #: includes/class-wc-robokassa-method.php:1 389444 #: includes/class-wc-robokassa-method.php:1409 432 445 msgid "VAT 0%" 433 446 msgstr "" 434 447 435 #: includes/class-wc-robokassa-method.php:1 390448 #: includes/class-wc-robokassa-method.php:1410 436 449 msgid "VAT 10%" 437 450 msgstr "" 438 451 439 #: includes/class-wc-robokassa-method.php:1 391452 #: includes/class-wc-robokassa-method.php:1411 440 453 msgid "VAT 20%" 441 454 msgstr "" 442 455 443 #: includes/class-wc-robokassa-method.php:1 392456 #: includes/class-wc-robokassa-method.php:1412 444 457 msgid "VAT receipt settlement rate 10/110" 445 458 msgstr "" 446 459 447 #: includes/class-wc-robokassa-method.php:1 393460 #: includes/class-wc-robokassa-method.php:1413 448 461 msgid "VAT receipt settlement rate 20/120" 449 462 msgstr "" 450 463 451 #: includes/class-wc-robokassa-method.php:1 399464 #: includes/class-wc-robokassa-method.php:1419 452 465 msgid "Indication of the calculation method" 453 466 msgstr "" 454 467 455 #: includes/class-wc-robokassa-method.php:14 00456 #: includes/class-wc-robokassa-method.php:14 19468 #: includes/class-wc-robokassa-method.php:1420 469 #: includes/class-wc-robokassa-method.php:1439 457 470 msgid "" 458 471 "The parameter is optional. If this parameter is not configured, the check " … … 460 473 msgstr "" 461 474 462 #: includes/class-wc-robokassa-method.php:14 05463 #: includes/class-wc-robokassa-method.php:14 24475 #: includes/class-wc-robokassa-method.php:1425 476 #: includes/class-wc-robokassa-method.php:1444 464 477 msgid "Default in Robokassa" 465 478 msgstr "" 466 479 467 #: includes/class-wc-robokassa-method.php:14 06480 #: includes/class-wc-robokassa-method.php:1426 468 481 msgid "Prepayment 100%" 469 482 msgstr "" 470 483 471 #: includes/class-wc-robokassa-method.php:14 07484 #: includes/class-wc-robokassa-method.php:1427 472 485 msgid "Partial prepayment" 473 486 msgstr "" 474 487 475 #: includes/class-wc-robokassa-method.php:14 08488 #: includes/class-wc-robokassa-method.php:1428 476 489 msgid "Advance" 477 490 msgstr "" 478 491 479 #: includes/class-wc-robokassa-method.php:14 09492 #: includes/class-wc-robokassa-method.php:1429 480 493 msgid "Full settlement" 481 494 msgstr "" 482 495 483 #: includes/class-wc-robokassa-method.php:14 10496 #: includes/class-wc-robokassa-method.php:1430 484 497 msgid "Partial settlement and credit" 485 498 msgstr "" 486 499 487 #: includes/class-wc-robokassa-method.php:14 11500 #: includes/class-wc-robokassa-method.php:1431 488 501 msgid "Transfer on credit" 489 502 msgstr "" 490 503 491 #: includes/class-wc-robokassa-method.php:14 12504 #: includes/class-wc-robokassa-method.php:1432 492 505 msgid "Credit payment" 493 506 msgstr "" 494 507 495 #: includes/class-wc-robokassa-method.php:14 18508 #: includes/class-wc-robokassa-method.php:1438 496 509 msgid "Sign of the subject of calculation" 497 510 msgstr "" 498 511 499 #: includes/class-wc-robokassa-method.php:14 25512 #: includes/class-wc-robokassa-method.php:1445 500 513 msgid "Product" 501 514 msgstr "" 502 515 503 #: includes/class-wc-robokassa-method.php:14 26516 #: includes/class-wc-robokassa-method.php:1446 504 517 msgid "Excisable goods" 505 518 msgstr "" 506 519 507 #: includes/class-wc-robokassa-method.php:14 27520 #: includes/class-wc-robokassa-method.php:1447 508 521 msgid "Work" 509 522 msgstr "" 510 523 511 #: includes/class-wc-robokassa-method.php:14 28524 #: includes/class-wc-robokassa-method.php:1448 512 525 msgid "Service" 513 526 msgstr "" 514 527 515 #: includes/class-wc-robokassa-method.php:14 29528 #: includes/class-wc-robokassa-method.php:1449 516 529 msgid "Gambling rate" 517 530 msgstr "" 518 531 519 #: includes/class-wc-robokassa-method.php:14 30532 #: includes/class-wc-robokassa-method.php:1450 520 533 msgid "Gambling win" 521 534 msgstr "" 522 535 523 #: includes/class-wc-robokassa-method.php:14 31536 #: includes/class-wc-robokassa-method.php:1451 524 537 msgid "Lottery ticket" 525 538 msgstr "" 526 539 527 #: includes/class-wc-robokassa-method.php:14 32540 #: includes/class-wc-robokassa-method.php:1452 528 541 msgid "Winning the lottery" 529 542 msgstr "" 530 543 531 #: includes/class-wc-robokassa-method.php:14 33544 #: includes/class-wc-robokassa-method.php:1453 532 545 msgid "Results of intellectual activity" 533 546 msgstr "" 534 547 535 #: includes/class-wc-robokassa-method.php:14 34548 #: includes/class-wc-robokassa-method.php:1454 536 549 msgid "Payment" 537 550 msgstr "" 538 551 539 #: includes/class-wc-robokassa-method.php:14 35552 #: includes/class-wc-robokassa-method.php:1455 540 553 msgid "Agency fee" 541 554 msgstr "" 542 555 543 #: includes/class-wc-robokassa-method.php:14 36556 #: includes/class-wc-robokassa-method.php:1456 544 557 msgid "Compound subject of calculation" 545 558 msgstr "" 546 559 547 #: includes/class-wc-robokassa-method.php:14 37560 #: includes/class-wc-robokassa-method.php:1457 548 561 msgid "Another object of the calculation" 549 562 msgstr "" 550 563 551 #: includes/class-wc-robokassa-method.php:14 38564 #: includes/class-wc-robokassa-method.php:1458 552 565 msgid "Property right" 553 566 msgstr "" 554 567 555 #: includes/class-wc-robokassa-method.php:14 39568 #: includes/class-wc-robokassa-method.php:1459 556 569 msgid "Extraordinary income" 557 570 msgstr "" 558 571 559 #: includes/class-wc-robokassa-method.php:14 40572 #: includes/class-wc-robokassa-method.php:1460 560 573 msgid "Insurance premium" 561 574 msgstr "" 562 575 563 #: includes/class-wc-robokassa-method.php:14 41576 #: includes/class-wc-robokassa-method.php:1461 564 577 msgid "Sales tax" 565 578 msgstr "" 566 579 567 #: includes/class-wc-robokassa-method.php:14 42580 #: includes/class-wc-robokassa-method.php:1462 568 581 msgid "Resort fee" 569 582 msgstr "" 570 583 571 #: includes/class-wc-robokassa-method.php:14 60584 #: includes/class-wc-robokassa-method.php:1480 572 585 msgid "Orders notes" 573 586 msgstr "" 574 587 575 #: includes/class-wc-robokassa-method.php:14 62588 #: includes/class-wc-robokassa-method.php:1482 576 589 msgid "Settings for adding notes to orders. All are off by default." 577 590 msgstr "" 578 591 579 #: includes/class-wc-robokassa-method.php:14 67592 #: includes/class-wc-robokassa-method.php:1487 580 593 msgid "Errors when verifying the signature of requests" 581 594 msgstr "" 582 595 583 #: includes/class-wc-robokassa-method.php:14 70596 #: includes/class-wc-robokassa-method.php:1490 584 597 msgid "" 585 598 "Recording a errors when verifying the signature of requests from Robokassa." 586 599 msgstr "" 587 600 588 #: includes/class-wc-robokassa-method.php:14 76601 #: includes/class-wc-robokassa-method.php:1496 589 602 msgid "Process payments" 590 603 msgstr "" 591 604 592 #: includes/class-wc-robokassa-method.php:14 79605 #: includes/class-wc-robokassa-method.php:1499 593 606 msgid "" 594 607 "Recording information about the beginning of the payment process by the " … … 596 609 msgstr "" 597 610 598 #: includes/class-wc-robokassa-method.php:1 485611 #: includes/class-wc-robokassa-method.php:1505 599 612 msgid "Successful payments" 600 613 msgstr "" 601 614 602 #: includes/class-wc-robokassa-method.php:1 488615 #: includes/class-wc-robokassa-method.php:1508 603 616 msgid "" 604 617 "Recording information about received requests with successful payment." 605 618 msgstr "" 606 619 607 #: includes/class-wc-robokassa-method.php:1 494620 #: includes/class-wc-robokassa-method.php:1514 608 621 msgid "Background requests" 609 622 msgstr "" 610 623 611 #: includes/class-wc-robokassa-method.php:1 497624 #: includes/class-wc-robokassa-method.php:1517 612 625 msgid "" 613 626 "Recording information about the background queries about transactions from " … … 615 628 msgstr "" 616 629 617 #: includes/class-wc-robokassa-method.php:15 03630 #: includes/class-wc-robokassa-method.php:1523 618 631 msgid "Failed requests" 619 632 msgstr "" 620 633 621 #: includes/class-wc-robokassa-method.php:15 06634 #: includes/class-wc-robokassa-method.php:1526 622 635 msgid "" 623 636 "Recording information about the clients return to the canceled payment " … … 625 638 msgstr "" 626 639 627 #: includes/class-wc-robokassa-method.php:15 12640 #: includes/class-wc-robokassa-method.php:1532 628 641 msgid "Success requests" 629 642 msgstr "" 630 643 631 #: includes/class-wc-robokassa-method.php:15 15644 #: includes/class-wc-robokassa-method.php:1535 632 645 msgid "" 633 646 "Recording information about the clients return to the success payment page." 634 647 msgstr "" 635 648 636 #: includes/class-wc-robokassa-method.php:15 33649 #: includes/class-wc-robokassa-method.php:1553 637 650 msgid "Technical details" 638 651 msgstr "" 639 652 640 #: includes/class-wc-robokassa-method.php:15 35653 #: includes/class-wc-robokassa-method.php:1555 641 654 msgid "" 642 655 "Setting technical parameters. Used by technical specialists. Can leave it " … … 644 657 msgstr "" 645 658 646 #: includes/class-wc-robokassa-method.php:15 42659 #: includes/class-wc-robokassa-method.php:1562 647 660 msgid "Logging" 648 661 msgstr "" 649 662 650 #: includes/class-wc-robokassa-method.php:15 44663 #: includes/class-wc-robokassa-method.php:1564 651 664 msgid "" 652 665 "You can enable gateway logging, specify the level of error that you want " … … 655 668 msgstr "" 656 669 657 #: includes/class-wc-robokassa-method.php:15 44670 #: includes/class-wc-robokassa-method.php:1564 658 671 msgid "Current file: " 659 672 msgstr "" 660 673 661 #: includes/class-wc-robokassa-method.php:15 48674 #: includes/class-wc-robokassa-method.php:1568 662 675 msgid "Off" 663 676 msgstr "" 664 677 665 #: includes/class-wc-robokassa-method.php:1562 666 msgid "Cart clearing" 667 msgstr "" 668 669 #: includes/class-wc-robokassa-method.php:1565 670 msgid "" 671 "Clean the customers cart if payment is successful? If so, the shopping " 672 "cart will be cleaned. If not, the goods already purchased will most likely " 673 "remain in the shopping cart." 674 msgstr "" 675 676 #: includes/class-wc-robokassa-method.php:1571 677 msgid "Mark order as cancelled?" 678 msgstr "" 679 680 #: includes/class-wc-robokassa-method.php:1574 681 msgid "" 682 "Change the status of the order to canceled when the user cancels the " 683 "payment. The status changes when the user returns to the cancelled payment " 684 "page." 685 msgstr "" 686 687 #: includes/class-wc-robokassa-method.php:1605 688 #, php-format 689 msgid "Any "%1$s" method" 690 msgstr "" 691 692 #: includes/class-wc-robokassa-method.php:1621 693 #, php-format 694 msgid "%1$s (#%2$s)" 695 msgstr "" 696 697 #: includes/class-wc-robokassa-method.php:1624 698 #, php-format 699 msgid "%1$s – %2$s" 700 msgstr "" 701 702 #: includes/class-wc-robokassa-method.php:1624 703 msgid "Other locations" 704 msgstr "" 705 706 #: includes/class-wc-robokassa-method.php:1633 707 msgid "Enable for shipping methods" 708 msgstr "" 709 710 #: includes/class-wc-robokassa-method.php:1638 711 msgid "" 712 "If only available for certain methods, set it up here. Leave blank to " 713 "enable for all methods." 714 msgstr "" 715 716 #: includes/class-wc-robokassa-method.php:1642 717 msgid "Select shipping methods" 718 msgstr "" 719 720 #: includes/class-wc-robokassa-method.php:1649 678 #: includes/class-wc-robokassa-method.php:1582 721 679 msgid "Payment of the commission for the buyer" 722 680 msgstr "" 723 681 724 #: includes/class-wc-robokassa-method.php:1 652682 #: includes/class-wc-robokassa-method.php:1585 725 683 msgid "" 726 684 "When you enable this feature, the store will pay all customer Commission " … … 729 687 msgstr "" 730 688 731 #: includes/class-wc-robokassa-method.php:1 658689 #: includes/class-wc-robokassa-method.php:1591 732 690 msgid "" 733 691 "Preliminary conversion of order currency into roubles for commission " … … 735 693 msgstr "" 736 694 737 #: includes/class-wc-robokassa-method.php:1 661695 #: includes/class-wc-robokassa-method.php:1594 738 696 msgid "" 739 697 "If the calculation of the customer commission is included and the order is " … … 743 701 msgstr "" 744 702 745 #: includes/class-wc-robokassa-method.php:1780 703 #: includes/class-wc-robokassa-method.php:1601 704 msgid "Cart clearing" 705 msgstr "" 706 707 #: includes/class-wc-robokassa-method.php:1604 708 msgid "" 709 "Clean the customers cart if payment is successful? If so, the shopping " 710 "cart will be cleaned. If not, the goods already purchased will most likely " 711 "remain in the shopping cart." 712 msgstr "" 713 714 #: includes/class-wc-robokassa-method.php:1610 715 msgid "Mark order as cancelled?" 716 msgstr "" 717 718 #: includes/class-wc-robokassa-method.php:1613 719 msgid "" 720 "Change the status of the order to canceled when the user cancels the " 721 "payment. The status changes when the user returns to the cancelled payment " 722 "page." 723 msgstr "" 724 725 #: includes/class-wc-robokassa-method.php:1644 726 #, php-format 727 msgid "Any "%1$s" method" 728 msgstr "" 729 730 #: includes/class-wc-robokassa-method.php:1660 731 #, php-format 732 msgid "%1$s (#%2$s)" 733 msgstr "" 734 735 #: includes/class-wc-robokassa-method.php:1663 736 #, php-format 737 msgid "%1$s – %2$s" 738 msgstr "" 739 740 #: includes/class-wc-robokassa-method.php:1663 741 msgid "Other locations" 742 msgstr "" 743 744 #: includes/class-wc-robokassa-method.php:1672 745 msgid "Enable for shipping methods" 746 msgstr "" 747 748 #: includes/class-wc-robokassa-method.php:1677 749 msgid "" 750 "If only available for certain methods, set it up here. Leave blank to " 751 "enable for all methods." 752 msgstr "" 753 754 #: includes/class-wc-robokassa-method.php:1681 755 msgid "Select shipping methods" 756 msgstr "" 757 758 #: includes/class-wc-robokassa-method.php:1800 746 759 msgid "Return to payment gateways" 747 760 msgstr "" 748 761 749 #: includes/class-wc-robokassa-method.php:18 37762 #: includes/class-wc-robokassa-method.php:1857 750 763 msgid "" 751 764 "TEST mode is active. Payment will not be charged. After checking, disable " … … 753 766 msgstr "" 754 767 755 #: includes/class-wc-robokassa-method.php:18 60768 #: includes/class-wc-robokassa-method.php:1880 756 769 msgid "" 757 770 "The customer clicked the payment button, but an error occurred while " … … 759 772 msgstr "" 760 773 761 #: includes/class-wc-robokassa-method.php:1 881774 #: includes/class-wc-robokassa-method.php:1901 762 775 msgid "" 763 776 "The customer clicked the payment button and was sent to the side of the " … … 765 778 msgstr "" 766 779 767 #: includes/class-wc-robokassa-method.php:1 895780 #: includes/class-wc-robokassa-method.php:1915 768 781 msgid "" 769 782 "The customer clicked the payment button and was sent to the page of the " … … 771 784 msgstr "" 772 785 773 #: includes/class-wc-robokassa-method.php: 1996786 #: includes/class-wc-robokassa-method.php:2016 774 787 #: includes/class-wc-robokassa-sub-method.php:250 775 788 msgid "Order number: " 776 789 msgstr "" 777 790 778 #: includes/class-wc-robokassa-method.php:21 15791 #: includes/class-wc-robokassa-method.php:2135 779 792 #: includes/class-wc-robokassa-sub-method.php:396 780 793 msgid "Pay" 781 794 msgstr "" 782 795 783 #: includes/class-wc-robokassa-method.php:21 16796 #: includes/class-wc-robokassa-method.php:2136 784 797 #: includes/class-wc-robokassa-sub-method.php:397 785 798 msgid "Cancel & return to cart" 786 799 msgstr "" 787 800 788 #: includes/class-wc-robokassa-method.php:22 10801 #: includes/class-wc-robokassa-method.php:2230 789 802 msgid "Delivery" 790 803 msgstr "" 791 804 792 #: includes/class-wc-robokassa-method.php:24 34805 #: includes/class-wc-robokassa-method.php:2454 793 806 msgid "Order not found." 794 807 msgstr "" 795 808 796 #: includes/class-wc-robokassa-method.php:24 50809 #: includes/class-wc-robokassa-method.php:2470 797 810 #, php-format 798 811 msgid "Robokassa request. Sum: %1$s. Signature: %2$s. Remote signature: %3$s" 799 812 msgstr "" 800 813 801 #: includes/class-wc-robokassa-method.php:24 69814 #: includes/class-wc-robokassa-method.php:2489 802 815 #, php-format 803 816 msgid "Validate hash error. Local: %1$s Remote: %2$s" 804 817 msgstr "" 805 818 806 #: includes/class-wc-robokassa-method.php:2 484819 #: includes/class-wc-robokassa-method.php:2504 807 820 msgid "Order successfully paid (TEST MODE)." 808 821 msgstr "" 809 822 810 #: includes/class-wc-robokassa-method.php:2 493823 #: includes/class-wc-robokassa-method.php:2513 811 824 msgid "Order successfully paid." 812 825 msgstr "" 813 826 814 #: includes/class-wc-robokassa-method.php:25 03827 #: includes/class-wc-robokassa-method.php:2523 815 828 msgid "Payment error, please pay other time." 816 829 msgstr "" 817 830 818 #: includes/class-wc-robokassa-method.php:25 11831 #: includes/class-wc-robokassa-method.php:2531 819 832 msgid "The client returned to the payment success page." 820 833 msgstr "" 821 834 822 #: includes/class-wc-robokassa-method.php:25 32835 #: includes/class-wc-robokassa-method.php:2552 823 836 msgid "" 824 837 "Order cancellation. The client returned to the payment cancellation page." 825 838 msgstr "" 826 839 827 #: includes/class-wc-robokassa-method.php:25 50840 #: includes/class-wc-robokassa-method.php:2570 828 841 msgid "Api request error. Action not found." 829 842 msgstr "" 830 843 831 #: includes/class-wc-robokassa-method.php:27 37844 #: includes/class-wc-robokassa-method.php:2757 832 845 msgid "" 833 846 "The activation was not success. It may be difficult to release new updates." 834 847 msgstr "" 835 848 836 #: includes/class-wc-robokassa-method.php:27 54849 #: includes/class-wc-robokassa-method.php:2774 837 850 msgid "disconnected" 838 851 msgstr "" 839 852 840 #: includes/class-wc-robokassa-method.php:27 60853 #: includes/class-wc-robokassa-method.php:2780 841 854 msgid "connected" 842 855 msgstr "" 843 856 844 #: includes/class-wc-robokassa-method.php:27 64857 #: includes/class-wc-robokassa-method.php:2784 845 858 msgid "API Robokassa: " 846 859 msgstr "" 847 860 848 #: includes/class-wc-robokassa-method.php:27 79861 #: includes/class-wc-robokassa-method.php:2799 849 862 msgid "active" 850 863 msgstr "" 851 864 852 #: includes/class-wc-robokassa-method.php:2 785865 #: includes/class-wc-robokassa-method.php:2805 853 866 msgid "inactive" 854 867 msgstr "" 855 868 856 #: includes/class-wc-robokassa-method.php:2 789869 #: includes/class-wc-robokassa-method.php:2809 857 870 msgid "Test mode: " 858 871 msgstr "" 859 872 860 #: includes/class-wc-robokassa-method.php:28 12873 #: includes/class-wc-robokassa-method.php:2832 861 874 msgid "Currency: " 862 875 msgstr "" 863 876 864 #: includes/class-wc-robokassa-method.php:28 30877 #: includes/class-wc-robokassa-method.php:2850 865 878 msgid "" 866 879 "The logging level is too low. Need to increase the level after debugging." … … 877 890 msgstr "" 878 891 892 #: includes/class-wc-robokassa-sub-method.php:554 893 msgid "Online / Offline" 894 msgstr "" 895 879 896 #: includes/class-wc-robokassa-sub-method.php:556 880 897 msgid "Enable display of the payment method on the website" 881 898 msgstr "" 882 899 883 #: includes/class-wc-robokassa.php:379 900 #: includes/class-wc-robokassa-sub-method.php:584 901 msgid "Select the checkbox to enable this feature. Default is disabled." 902 msgstr "" 903 904 #: includes/class-wc-robokassa.php:356 884 905 msgid "This activation code is active." 885 906 msgstr "" 886 907 887 #: includes/class-wc-robokassa.php:3 80908 #: includes/class-wc-robokassa.php:357 888 909 msgid "Error: This activation code has expired." 889 910 msgstr "" 890 911 891 #: includes/class-wc-robokassa.php:3 81912 #: includes/class-wc-robokassa.php:358 892 913 msgid "Activation code republished. Awaiting reactivation." 893 914 msgstr "" 894 915 895 #: includes/class-wc-robokassa.php:3 82916 #: includes/class-wc-robokassa.php:359 896 917 msgid "Error: This activation code has been suspended." 897 918 msgstr "" 898 919 899 #: includes/class-wc-robokassa.php:3 83920 #: includes/class-wc-robokassa.php:360 900 921 msgid "This activation code is not found." 901 922 msgstr "" 902 923 903 #: includes/class-wc-robokassa.php:3 84924 #: includes/class-wc-robokassa.php:361 904 925 msgid "This activation code is active (localhost)." 905 926 msgstr "" 906 927 907 #: includes/class-wc-robokassa.php:3 85928 #: includes/class-wc-robokassa.php:362 908 929 msgid "Error: This activation code is pending review." 909 930 msgstr "" 910 931 911 #: includes/class-wc-robokassa.php:3 86932 #: includes/class-wc-robokassa.php:363 912 933 msgid "" 913 934 "Error: This version of the software was released after your download " … … 916 937 msgstr "" 917 938 918 #: includes/class-wc-robokassa.php:3 87939 #: includes/class-wc-robokassa.php:364 919 940 msgid "Error: The activation code variable is empty." 920 941 msgstr "" 921 942 922 #: includes/class-wc-robokassa.php:3 88943 #: includes/class-wc-robokassa.php:365 923 944 msgid "Error: I could not obtain a new local code." 924 945 msgstr "" 925 946 926 #: includes/class-wc-robokassa.php:3 89947 #: includes/class-wc-robokassa.php:366 927 948 msgid "Error: The maximum local code delay period has expired." 928 949 msgstr "" 929 950 930 #: includes/class-wc-robokassa.php:3 90951 #: includes/class-wc-robokassa.php:367 931 952 msgid "Error: The local key has been tampered with or is invalid." 932 953 msgstr "" 933 954 934 #: includes/class-wc-robokassa.php:3 91955 #: includes/class-wc-robokassa.php:368 935 956 msgid "Error: The local code is invalid for this location." 936 957 msgstr "" 937 958 938 #: includes/class-wc-robokassa.php:3 92959 #: includes/class-wc-robokassa.php:369 939 960 msgid "" 940 961 "Error: Please create the following file (and directories if they dont " … … 942 963 msgstr "" 943 964 944 #: includes/class-wc-robokassa.php:3 93965 #: includes/class-wc-robokassa.php:370 945 966 msgid "Error: Please make the following path writable: " 946 967 msgstr "" 947 968 948 #: includes/class-wc-robokassa.php:3 94969 #: includes/class-wc-robokassa.php:371 949 970 msgid "Error: I could not determine the local key storage on clear." 950 971 msgstr "" 951 972 952 #: includes/class-wc-robokassa.php:3 95973 #: includes/class-wc-robokassa.php:372 953 974 msgid "Error: I could not save the local key." 954 975 msgstr "" 955 976 956 #: includes/class-wc-robokassa.php:3 96977 #: includes/class-wc-robokassa.php:373 957 978 msgid "Error: The local code is invalid for this activation code." 958 979 msgstr "" 959 980 960 #: includes/class-wc-robokassa.php:3 97981 #: includes/class-wc-robokassa.php:374 961 982 msgid "Error: This activation code has been deleted." 962 983 msgstr "" 963 984 964 #: includes/class-wc-robokassa.php:3 98985 #: includes/class-wc-robokassa.php:375 965 986 msgid "Error: This activation code has draft." 966 987 msgstr "" 967 988 968 #: includes/class-wc-robokassa.php:3 99989 #: includes/class-wc-robokassa.php:376 969 990 msgid "Error: This activation code has available." 970 991 msgstr "" 971 992 972 #: includes/class-wc-robokassa.php: 400993 #: includes/class-wc-robokassa.php:377 973 994 msgid "Error: This activation code has been blocked." 974 995 msgstr "" 975 996 976 #: includes/class-wc-robokassa.php:7 63997 #: includes/class-wc-robokassa.php:783 977 998 msgid "Official site" 978 999 msgstr "" 979 1000 980 #: includes/class-wc-robokassa.php:7 781001 #: includes/class-wc-robokassa.php:798 981 1002 msgid "Settings" 982 1003 msgstr "" 983 1004 984 #: includes/class-wc-robokassa.php:8 071005 #: includes/class-wc-robokassa.php:827 985 1006 msgid "" 986 1007 "The plugin for accepting payments through ROBOKASSA for WooCommerce has " … … 988 1009 msgstr "" 989 1010 990 #: includes/class-wc-robokassa.php:8 091011 #: includes/class-wc-robokassa.php:829 991 1012 msgid "here" 992 1013 msgstr "" 993 1014 994 #: includes/class-wc-robokassa.php:8 101015 #: includes/class-wc-robokassa.php:830 995 1016 #, php-format 996 1017 msgid "Press %s (go to payment gateway settings)." 997 1018 msgstr "" 998 1019 999 #: includes/class-wc-robokassa.php:9 271020 #: includes/class-wc-robokassa.php:949 1000 1021 msgid "Useful information" 1001 1022 msgstr "" 1002 1023 1003 #: includes/class-wc-robokassa.php:9 311024 #: includes/class-wc-robokassa.php:953 1004 1025 msgid "Official plugin page" 1005 1026 msgstr "" 1006 1027 1007 #: includes/class-wc-robokassa.php:9 321028 #: includes/class-wc-robokassa.php:954 1008 1029 msgid "Related news: ROBOKASSA" 1009 1030 msgstr "" 1010 1031 1011 #: includes/class-wc-robokassa.php:9 331032 #: includes/class-wc-robokassa.php:955 1012 1033 msgid "Plugins for WooCommerce" 1013 1034 msgstr "" 1014 1035 1015 #: includes/class-wc-robokassa.php:9 531036 #: includes/class-wc-robokassa.php:975 1016 1037 msgid "Errors not found. Payment acceptance is active." 1017 1038 msgstr "" 1018 1039 1019 #: includes/class-wc-robokassa.php:9 571040 #: includes/class-wc-robokassa.php:979 1020 1041 msgid "" 1021 1042 "Warnings found. They are highlighted in yellow. You should attention to " … … 1023 1044 msgstr "" 1024 1045 1025 #: includes/class-wc-robokassa.php:9 611046 #: includes/class-wc-robokassa.php:983 1026 1047 msgid "" 1027 1048 "Critical errors were detected. They are highlighted in red. Payment " … … 1029 1050 msgstr "" 1030 1051 1031 #: includes/class-wc-robokassa.php:9 651052 #: includes/class-wc-robokassa.php:987 1032 1053 msgid "Status" 1033 1054 msgstr "" -
wc-robokassa/trunk/license.txt
r2233480 r2507761 1 1 Payment gateway - Robokassa for WooCommerce 2 2 3 Copyright © 2015-202 0by Mofsy, Official site http://mofsy.ru3 Copyright © 2015-2021 by Mofsy, Official site http://mofsy.ru 4 4 5 5 This program is free software; you can redistribute it and/or modify -
wc-robokassa/trunk/readme.txt
r2334486 r2507761 3 3 Tags: robokassa, woocommerce, робокасса, робочеки, payment, gateway, woo commerce, ecommerce, gateway, woo robokassa, shop, robo, merchant, woo, woo robo 4 4 Requires at least: 4.2 5 Tested up to: 5. 45 Tested up to: 5.7 6 6 Requires PHP: 5.6 7 7 Stable tag: trunk … … 68 68 69 69 == Changelog == 70 71 = 4.1.0 = 72 * Test: WordPress 5.7 73 * WC tested up to: 5.0 74 * Fix: loading 70 75 71 76 = 4.0.0 = -
wc-robokassa/trunk/wc-robokassa.php
r2334486 r2507761 4 4 * Description: Integration Robokassa in WooCommerce as payment gateway. 5 5 * Plugin URI: https://mofsy.ru/projects/wc-robokassa 6 * Version: 4. 0.06 * Version: 4.1.0 7 7 * WC requires at least: 3.0 8 * WC tested up to: 4.28 * WC tested up to: 5.1 9 9 * Text Domain: wc-robokassa 10 10 * Domain Path: /languages 11 11 * Author: Mofsy 12 12 * Author URI: https://mofsy.ru 13 * Copyright: Mofsy © 2015-202 013 * Copyright: Mofsy © 2015-2021 14 14 * License: GNU General Public License v3.0 15 15 * License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 19 19 defined('ABSPATH') || exit; 20 20 21 if( class_exists('WC_Robokassa') !== true)21 if(false === class_exists('WC_Robokassa')) 22 22 { 23 if(false === function_exists('get_file_data')) 24 { 25 return false; 26 } 27 23 28 $plugin_data = get_file_data(__FILE__, array('Version' => 'Version')); 24 29 define('WC_ROBOKASSA_VERSION', $plugin_data['Version']); … … 31 36 include_once __DIR__ . '/includes/class-wc-robokassa-logger.php'; 32 37 include_once __DIR__ . '/includes/class-wc-robokassa.php'; 38 39 add_action('plugins_loaded', 'WC_Robokassa', 5); 33 40 } 34 35 add_action('plugins_loaded', 'WC_Robokassa', 5);
Note: See TracChangeset
for help on using the changeset viewer.