Changeset 2200862
- Timestamp:
- 11/25/2019 08:21:55 PM (6 years ago)
- Location:
- wc-robokassa/trunk
- Files:
-
- 8 edited
-
includes/class-wc-robokassa-api.php (modified) (16 diffs)
-
includes/class-wc-robokassa-method.php (modified) (47 diffs)
-
includes/class-wc-robokassa.php (modified) (2 diffs)
-
languages/wc-robokassa-ru_RU.mo (modified) (previous)
-
languages/wc-robokassa-ru_RU.po (modified) (21 diffs)
-
languages/wc-robokassa.pot (modified) (20 diffs)
-
readme.txt (modified) (2 diffs)
-
wc-robokassa.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wc-robokassa/trunk/includes/class-wc-robokassa-api.php
r2168628 r2200862 40 40 41 41 /** 42 * Available API 43 * 44 * @return int 45 */ 46 public function is_available() 47 { 48 /** 49 * Check WP 50 */ 51 if(!function_exists('wp_remote_post') || !function_exists('wp_remote_retrieve_body')) 52 { 53 return 0; 54 } 55 56 /** 57 * Check SimpleXMLElement installed 58 */ 59 if(class_exists('SimpleXMLElement')) 60 { 61 return 1; 62 } 63 64 /** 65 * Check DOMDocument installed 66 */ 67 if(class_exists('DOMDocument')) 68 { 69 return 2; 70 } 71 72 return 0; 73 } 74 75 /** 42 76 * Интерфейс расчёта суммы к получению магазином 43 77 * … … 56 90 { 57 91 /** 58 * Check SimpleXMLElement installed 59 */ 60 if(!class_exists('SimpleXMLElement')) 92 * Check available 93 */ 94 $is_available = $this->is_available(); 95 if($is_available === 0) 61 96 { 62 97 return false; … … 88 123 { 89 124 /** 90 * Response normalize 91 */ 92 $response_data = new SimpleXMLElement($response_body); 93 94 /** 95 * Check error 96 * 97 * @todo refactoring 98 */ 99 if($response_data->Result->Code != 0) 100 { 101 return false; 102 } 103 104 return $response_data->OutSum; 125 * SimpleXMl 126 */ 127 if($is_available === 1) 128 { 129 /** 130 * Response normalize 131 */ 132 $response_data = new SimpleXMLElement($response_body); 133 134 /** 135 * Check error 136 */ 137 if(!isset($response_data->Result) || $response_data->Result->Code != 0) 138 { 139 return false; 140 } 141 142 return $response_data->OutSum; 143 } 144 145 /** 146 * DOMDocument 147 */ 148 if($is_available === 2) 149 { 150 /** 151 * Response normalize 152 */ 153 $response_data = $this->dom_xml_to_array($response_body); 154 155 /** 156 * Check error 157 */ 158 if($response_data['CalcSummsResponseData']['Result']['Code'] != 0) 159 { 160 return false; 161 } 162 163 return $response_data['CalcSummsResponseData']['OutSum']; 164 } 105 165 } 106 166 … … 128 188 { 129 189 /** 130 * Check SimpleXMLElement installed 131 */ 132 if(!class_exists('SimpleXMLElement')) 190 * Check available 191 */ 192 $is_available = $this->is_available(); 193 if($is_available === 0) 133 194 { 134 195 return false; … … 159 220 if($response_body != '') 160 221 { 161 /** 162 * Response normalize 163 */ 164 $response_data = new SimpleXMLElement($response_body); 165 166 /** 167 * Check error 168 * 169 * @todo refactoring 170 */ 171 if($response_data->Result->Code != 0) 172 { 173 return false; 174 } 222 $op_state_data = array(); 223 224 /** 225 * SimpleXML 226 */ 227 if($is_available === 1) 228 { 229 /** 230 * Response normalize 231 */ 232 $response_data = new SimpleXMLElement($response_body); 233 234 /** 235 * Check error 236 */ 237 if(!isset($response_data->Result) || $response_data->Result->Code != 0) 238 { 239 return false; 240 } 241 242 /** 243 * Текущее состояние оплаты. 244 */ 245 if(isset($response_data->State)) 246 { 247 $op_state_data['state'] = array 248 ( 249 'code' => $response_data->State->Code, 250 'request_date' => $response_data->State->RequestDate, 251 'state_date' => $response_data->State->StateDate, 252 ); 253 } 254 255 /** 256 * Информация об операции оплаты счета 257 */ 258 if(isset($response_data->Info)) 259 { 260 $op_state_data['info'] = array 261 ( 262 'inc_curr_label' => $response_data->Info->IncCurrLabel, 263 'inc_sum' => $response_data->Info->IncSum, 264 'inc_account' => $response_data->Info->IncAccount, 265 'payment_method_code' => $response_data->Info->PaymentMethod->Code, 266 'payment_method_description' => $response_data->Info->PaymentMethod->Description, 267 'out_curr_label' => $response_data->Info->OutCurrLabel, 268 'out_sum' => $response_data->Info->OutSum, 269 ); 270 } 271 } 272 273 /** 274 * DOMDocument 275 */ 276 if($is_available === 2) 277 { 278 $response_data = $this->dom_xml_to_array( $response_body ); 279 280 /** 281 * Check error 282 */ 283 if (!isset($response_data['OperationStateResponse']['Result']['Code']) || $response_data['CurrenciesList']['Result']['Code'] != 0) 284 { 285 return false; 286 } 287 288 /** 289 * Текущее состояние оплаты. 290 */ 291 if(isset($response_data['OperationStateResponse']['State'])) 292 { 293 $op_state_data['state'] = array 294 ( 295 'code' => $response_data['OperationStateResponse']['State']['Code'], 296 'request_date' => $response_data['OperationStateResponse']['State']['RequestDate'], 297 'state_date' => $response_data['OperationStateResponse']['State']['StateDate'], 298 ); 299 } 300 301 /** 302 * Информация об операции оплаты счета 303 */ 304 if(isset($response_data['OperationStateResponse']['Info'])) 305 { 306 $op_state_data['info'] = array 307 ( 308 'inc_curr_label' => $response_data['OperationStateResponse']['Info']['IncCurrLabel'], 309 'inc_sum' => $response_data['OperationStateResponse']['Info']['IncSum'], 310 'inc_account' => $response_data['OperationStateResponse']['Info']['IncAccount'], 311 'payment_method_code' => $response_data['OperationStateResponse']['Info']['PaymentMethod']['Code'], 312 'payment_method_description' => $response_data['OperationStateResponse']['Info']['PaymentMethod']['Description'], 313 'out_curr_label' => $response_data['OperationStateResponse']['Info']['OutCurrLabel'], 314 'out_sum' => $response_data['OperationStateResponse']['Info']['OutSum'], 315 ); 316 } 317 } 318 319 return $op_state_data; 175 320 } 176 321 … … 197 342 { 198 343 /** 199 * Check SimpleXMLElement installed 200 */ 201 if(!class_exists('SimpleXMLElement')) 344 * Check available 345 */ 346 $is_available = $this->is_available(); 347 if($is_available === 0) 202 348 { 203 349 return false; … … 229 375 { 230 376 /** 231 * Response normalize232 */233 $response_data = new SimpleXMLElement($response_body);234 235 /**236 * Check error237 *238 * @todo refactoring239 */240 if($response_data->Result->Code != 0)241 {242 return false;243 }244 245 /**246 377 * Данные валют 247 378 */ … … 249 380 250 381 /** 251 * Перебираем данные 252 */ 253 foreach($response_data->Groups->Group as $xml_group) 254 { 255 $xml_group_attributes = $xml_group->attributes(); 256 257 foreach($xml_group->Items->Currency as $xml_group_item) 258 { 259 $xml_group_item_attributes = $xml_group_item->attributes(); 260 261 $currencies_data[] = array 262 ( 263 'group_code' => (string)$xml_group_attributes['Code'], 264 'group_description' => (string)$xml_group_attributes['Description'], 265 'currency_label' => (string)$xml_group_item_attributes['Label'], 266 'currency_alias' => (string)$xml_group_item_attributes['Alias'], 267 'currency_name' => (string)$xml_group_item_attributes['Name'], 268 'language' => $language, 269 ); 270 } 271 } 272 273 return $currencies_data; 382 * SimpleXML 383 */ 384 if($is_available === 1) 385 { 386 /** 387 * Response normalize 388 */ 389 $response_data = new SimpleXMLElement($response_body); 390 391 /** 392 * Check error 393 */ 394 if(!isset($response_data->Result) || $response_data->Result->Code != 0) 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; 435 } 436 437 /** 438 * DOMDocument 439 */ 440 if($is_available === 2) 441 { 442 $response_data = $this->dom_xml_to_array($response_body); 443 444 /** 445 * Check error 446 */ 447 if(!isset($response_data['CurrenciesList']['Result']['Code']) || $response_data['CurrenciesList']['Result']['Code'] != 0) 448 { 449 return false; 450 } 451 452 /** 453 * Перебираем данные 454 */ 455 foreach($response_data['CurrenciesList']['Groups']['Group'] as $array_group) 456 { 457 $array_group_attributes = $array_group['@attributes']; 458 459 foreach($array_group['Items']['Currency'] as $array_group_item) 460 { 461 if(isset($array_group_item['@attributes'])) 462 { 463 $array_group_item = $array_group_item['@attributes']; 464 } 465 466 $response_item = array 467 ( 468 'group_code' => $array_group_attributes['Code'], 469 'group_description' => $array_group_attributes['Description'], 470 'currency_label' => $array_group_item['Label'], 471 'currency_alias' => $array_group_item['Alias'], 472 'currency_name' => $array_group_item['Name'], 473 'language' => $language, 474 ); 475 476 if(isset($array_group_item['MaxValue'])) 477 { 478 $response_item['sum_max'] = $array_group_item['MaxValue']; 479 } 480 481 if(isset($array_group_item['MinValue'])) 482 { 483 $response_item['sum_min'] = $array_group_item['MinValue']; 484 } 485 486 $currencies_data[] = $response_item; 487 } 488 } 489 490 return $currencies_data; 491 } 274 492 } 275 493 … … 297 515 { 298 516 /** 299 * Check SimpleXMLElement installed 300 */ 301 if(!class_exists('SimpleXMLElement')) 517 * Check available 518 */ 519 $is_available = $this->is_available(); 520 if($is_available === 0) 302 521 { 303 522 return false; … … 329 548 { 330 549 /** 331 * Response normalize332 */333 $response_data = new SimpleXMLElement($response_body);334 335 /**336 * Check error337 *338 * @todo refactoring339 */340 if($response_data->Result->Code != 0)341 {342 return false;343 }344 345 /**346 550 * Данные валют 347 551 */ … … 349 553 350 554 /** 351 * Перебираем данные 352 */ 353 foreach($response_data->Methods->Method as $xml_method) 354 { 355 $xml_method_attributes = $xml_method->attributes(); 356 357 $methods_data[(string)$xml_method_attributes['Code']] = array 358 ( 359 'method_code' => (string)$xml_method_attributes['Code'], 360 'method_description' => (string)$xml_method_attributes['Description'], 361 'language' => $language 362 ); 555 * SimpleXML 556 */ 557 if($is_available === 1) 558 { 559 /** 560 * Response normalize 561 */ 562 $response_data = new SimpleXMLElement($response_body); 563 564 /** 565 * Check error 566 */ 567 if (!isset($response_data->Result) || $response_data->Result->Code != 0) 568 { 569 return false; 570 } 571 572 /** 573 * Перебираем данные 574 */ 575 foreach ( $response_data->Methods->Method as $xml_method ) 576 { 577 $xml_method_attributes = $xml_method->attributes(); 578 579 $methods_data[ (string) $xml_method_attributes['Code'] ] = array 580 ( 581 'method_code' => (string) $xml_method_attributes['Code'], 582 'method_description' => (string) $xml_method_attributes['Description'], 583 'language' => $language 584 ); 585 } 586 587 } 588 589 /** 590 * DOMDocument 591 */ 592 if($is_available === 2) 593 { 594 $response_data = $this->dom_xml_to_array($response_body); 595 596 /** 597 * Check error 598 */ 599 if(!isset($response_data['PaymentMethodsList']['Result']['Code']) || $response_data['PaymentMethodsList']['Result']['Code'] != 0) 600 { 601 return false; 602 } 603 604 /** 605 * Перебираем данные 606 */ 607 foreach ($response_data['PaymentMethodsList']['Methods']['Method'] as $array_method) 608 { 609 $array_method_attributes = $array_method['@attributes']; 610 611 $methods_data[$array_method_attributes['Code']] = array 612 ( 613 'method_code' => $array_method_attributes['Code'], 614 'method_description' => $array_method_attributes['Description'], 615 'language' => $language 616 ); 617 } 363 618 } 364 619 … … 392 647 { 393 648 /** 394 * Check SimpleXMLElement installed 395 */ 396 if(!class_exists('SimpleXMLElement')) 649 * Check available 650 */ 651 $is_available = $this->is_available(); 652 if($is_available === 0) 397 653 { 398 654 return false; … … 424 680 { 425 681 /** 426 * Response normalize427 */428 $response_data = new SimpleXMLElement($response_body);429 430 /**431 * Check error432 *433 * @todo refactoring434 */435 if($response_data->Result->Code != 0)436 {437 return false;438 }439 440 /**441 682 * Данные валют 442 683 */ … … 444 685 445 686 /** 446 * Перебираем данные 447 */ 448 foreach($response_data->Groups->Group as $xml_group) 449 { 450 $xml_group_attributes = $xml_group->attributes(); 451 452 foreach($xml_group->Items->Currency as $xml_group_item) 453 { 454 $xml_group_item_attributes = $xml_group_item->attributes(); 455 456 $xml_group_item_rate_attributes = $xml_group_item->Rate->attributes(); 457 458 $rates_data[] = array 459 ( 460 'group_code' => (string)$xml_group_attributes['Code'], 461 'group_description' => (string)$xml_group_attributes['Description'], 462 'currency_label' => (string)$xml_group_item_attributes['Label'], 463 'currency_alias' => (string)$xml_group_item_attributes['Alias'], 464 'currency_name' => (string)$xml_group_item_attributes['Name'], 465 'rate_inc_sum' => (string)$xml_group_item_rate_attributes['IncSum'], 466 'language' => $language, 467 ); 687 * SimpleXML 688 */ 689 if($is_available === 1) 690 { 691 /** 692 * Response normalize 693 */ 694 $response_data = new SimpleXMLElement($response_body); 695 696 /** 697 * Check error 698 */ 699 if(!isset($response_data->Result) || $response_data->Result->Code != 0) 700 { 701 return false; 702 } 703 704 /** 705 * Перебираем данные 706 */ 707 foreach($response_data->Groups->Group as $xml_group) 708 { 709 $xml_group_attributes = $xml_group->attributes(); 710 711 foreach($xml_group->Items->Currency as $xml_group_item) 712 { 713 $xml_group_item_attributes = $xml_group_item->attributes(); 714 $xml_group_item_rate_attributes = $xml_group_item->Rate->attributes(); 715 716 $rates_item = array 717 ( 718 'group_code' => (string)$xml_group_attributes['Code'], 719 'group_description' => (string)$xml_group_attributes['Description'], 720 'currency_label' => (string)$xml_group_item_attributes['Label'], 721 'currency_alias' => (string)$xml_group_item_attributes['Alias'], 722 'currency_name' => (string)$xml_group_item_attributes['Name'], 723 'rate_inc_sum' => (string)$xml_group_item_rate_attributes['IncSum'], 724 'language' => $language, 725 ); 726 727 if(isset($xml_group_item_attributes['MaxValue'])) 728 { 729 $rates_item['currency_sum_max'] = (string)$xml_group_item_attributes['MaxValue']; 730 } 731 732 if(isset($xml_group_item_attributes['MinValue'])) 733 { 734 $rates_item['currency_sum_min'] = (string)$xml_group_item_attributes['MinValue']; 735 } 736 737 $rates_data[] = $rates_item; 738 } 739 } 740 } 741 742 /** 743 * DOMDocument 744 */ 745 if($is_available === 2) 746 { 747 $response_data = $this->dom_xml_to_array($response_body); 748 749 /** 750 * Check error 751 */ 752 if(!isset($response_data['RatesList']['Result']['Code']) || $response_data['RatesList']['Result']['Code'] != 0) 753 { 754 return false; 755 } 756 757 /** 758 * Перебираем данные 759 */ 760 foreach($response_data['RatesList']['Groups']['Group'] as $xml_group) 761 { 762 $xml_group_attributes = $xml_group['@attributes']; 763 764 if(!isset($xml_group['Items']['Currency']['@attributes'])) 765 { 766 foreach($xml_group['Items']['Currency'] as $xml_group_item_key => $xml_group_item) 767 { 768 $rates_item = array 769 ( 770 'group_code' => $xml_group_attributes['Code'], 771 'group_description' => $xml_group_attributes['Description'], 772 'currency_label' => $xml_group_item['@attributes']['Label'], 773 'currency_alias' => $xml_group_item['@attributes']['Alias'], 774 'currency_name' => $xml_group_item['@attributes']['Name'], 775 'rate_inc_sum' => $xml_group_item['Rate']['@attributes']['IncSum'], 776 'language' => $language, 777 ); 778 779 if(isset($xml_group_item['@attributes']['MaxValue'])) 780 { 781 $rates_item['currency_sum_max'] = $xml_group_item['@attributes']['MaxValue']; 782 } 783 784 if(isset($xml_group_item['@attributes']['MinValue'])) 785 { 786 $rates_item['currency_sum_min'] = $xml_group_item['@attributes']['MinValue']; 787 } 788 789 $rates_data[] = $rates_item; 790 } 791 } 792 else 793 { 794 $rates_item = array 795 ( 796 'group_code' => $xml_group_attributes['Code'], 797 'group_description' => $xml_group_attributes['Description'], 798 'currency_label' => $xml_group['Items']['Currency']['@attributes']['Label'], 799 'currency_alias' => $xml_group['Items']['Currency']['@attributes']['Alias'], 800 'currency_name' => $xml_group['Items']['Currency']['@attributes']['Name'], 801 'rate_inc_sum' => $xml_group['Items']['Currency']['Rate']['@attributes']['IncSum'], 802 'language' => $language, 803 ); 804 805 if(isset($xml_group['Items']['Currency']['@attributes']['MaxValue'])) 806 { 807 $rates_item['currency_sum_max'] = $xml_group['Items']['Currency']['@attributes']['MaxValue']; 808 } 809 810 if(isset($xml_group['Items']['Currency']['@attributes']['MinValue'])) 811 { 812 $rates_item['currency_sum_min'] = $xml_group['Items']['Currency']['@attributes']['MinValue']; 813 } 814 815 $rates_data[] = $rates_item; 816 } 468 817 } 469 818 } … … 485 834 { 486 835 /** 487 * Check SimpleXMLElement installed 488 */ 489 if(!class_exists('SimpleXMLElement')) 836 * Check available 837 */ 838 $is_available = $this->is_available(); 839 if($is_available === 0) 490 840 { 491 841 return false; … … 517 867 { 518 868 /** 519 * Response normalize 520 */ 521 $response_data = new SimpleXMLElement($response_body); 522 523 /** 524 * Check error 525 * 526 * @todo refactoring 527 */ 528 if($response_data->Result->Code != 0) 529 { 530 return false; 531 } 532 533 return $response_data->Limit; 869 * SimpleXMl 870 */ 871 if($is_available === 1) 872 { 873 /** 874 * Response normalize 875 */ 876 $response_data = new SimpleXMLElement($response_body); 877 878 /** 879 * Check error 880 */ 881 if(!isset($response_data->Result) || $response_data->Result->Code != 0) 882 { 883 return false; 884 } 885 886 return $response_data->Limit; 887 } 888 889 /** 890 * DOMDocument 891 */ 892 if($is_available === 2) 893 { 894 $response_data = $this->dom_xml_to_array($response_body); 895 896 /** 897 * Check error 898 */ 899 if(!isset($response_data['LimitResponse']['Result']['Code']) || $response_data["LimitResponse"]['Result']['Code'] != 0) 900 { 901 return false; 902 } 903 904 return $response_data['LimitResponse']['Limit']; 905 } 534 906 } 535 907 536 908 return false; 537 909 } 910 911 /** 912 * Dom_XML2Array 913 * 914 * @param $response_body 915 * 916 * @return mixed 917 */ 918 private function dom_xml_to_array($response_body) 919 { 920 $root = new DOMDocument(); 921 $root->loadXml($response_body); 922 923 $result = array(); 924 925 if ($root->hasAttributes()) 926 { 927 $attrs = $root->attributes; 928 foreach ($attrs as $attr) 929 { 930 $result['@attributes'][$attr->name] = $attr->value; 931 } 932 } 933 934 if ($root->hasChildNodes()) 935 { 936 $children = $root->childNodes; 937 938 if ($children->length == 1) 939 { 940 $child = $children->item(0); 941 942 if ($child->nodeType == XML_TEXT_NODE) 943 { 944 $result['_value'] = $child->nodeValue; 945 return count($result) == 1 ? $result['_value'] : $result; 946 } 947 } 948 949 $groups = array(); 950 foreach ($children as $child) 951 { 952 if (!isset($result[$child->nodeName])) 953 { 954 $result[$child->nodeName] = $this->dom_xml_to_array($child); 955 } 956 else 957 { 958 if (!isset($groups[$child->nodeName])) 959 { 960 $result[$child->nodeName] = array($result[$child->nodeName]); 961 $groups[$child->nodeName] = 1; 962 } 963 964 $result[$child->nodeName][] = $this->dom_xml_to_array($child); 965 } 966 } 967 } 968 969 return $result; 970 } 538 971 } -
wc-robokassa/trunk/includes/class-wc-robokassa-method.php
r2168628 r2200862 244 244 * Testing? 245 245 */ 246 $this-> test = $this->get_option('test');246 $this->set_test($this->get_option('test')); 247 247 248 248 /** 249 249 * Default language for Robokassa interface 250 250 */ 251 $this-> user_interface_language = $this->get_option('language');251 $this->set_user_interface_language($this->get_option('language')); 252 252 253 253 /** … … 260 260 { 261 261 case 'en_EN': 262 $this-> user_interface_language = 'en';262 $this->set_user_interface_language('en'); 263 263 break; 264 264 default: 265 $this-> user_interface_language = 'ru';265 $this->set_user_interface_language('ru'); 266 266 break; 267 267 } … … 278 278 if($this->get_option('ofd_status') == 'yes') 279 279 { 280 $this-> ofd_status = true;280 $this->set_ofd_status(true); 281 281 } 282 282 … … 314 314 } 315 315 316 $this-> ofd_sno = $ofd_sno;316 $this->set_ofd_sno($ofd_sno); 317 317 } 318 318 … … 350 350 } 351 351 352 $this-> ofd_nds = $ofd_nds;352 $this->set_ofd_nds($ofd_nds); 353 353 } 354 354 … … 358 358 if($this->get_option('ofd_payment_method') !== '') 359 359 { 360 $this-> ofd_payment_method = $this->get_option('ofd_payment_method');360 $this->set_ofd_payment_method($this->get_option('ofd_payment_method')); 361 361 } 362 362 … … 366 366 if($this->get_option('ofd_payment_object') !== '') 367 367 { 368 $this-> ofd_payment_object = $this->get_option('ofd_payment_object');368 $this->set_ofd_payment_object($this->get_option('ofd_payment_object')); 369 369 } 370 370 … … 374 374 if($this->get_option('shop_pass_1') !== '') 375 375 { 376 $this->s hop_pass_1 = $this->get_option('shop_pass_1');376 $this->set_shop_pass_1($this->get_option('shop_pass_1')); 377 377 } 378 378 … … 382 382 if($this->get_option('shop_pass_2') !== '') 383 383 { 384 $this->s hop_pass_2 = $this->get_option('shop_pass_2');384 $this->set_shop_pass_2($this->get_option('shop_pass_2')); 385 385 } 386 386 … … 388 388 * Load shop login 389 389 */ 390 $this->s hop_login = $this->get_option('shop_login');390 $this->set_shop_login($this->get_option('shop_login')); 391 391 392 392 /** 393 393 * Load sign method 394 394 */ 395 $this->s ign_method = $this->get_option('sign_method');395 $this->set_sign_method($this->get_option('sign_method')); 396 396 397 397 /** … … 400 400 if($this->get_option('test_shop_pass_1') !== '') 401 401 { 402 $this-> test_shop_pass_1 = $this->get_option('test_shop_pass_1');402 $this->set_test_shop_pass_1($this->get_option('test_shop_pass_1')); 403 403 } 404 404 … … 408 408 if($this->get_option('test_shop_pass_2') !== '') 409 409 { 410 $this-> test_shop_pass_2 = $this->get_option('test_shop_pass_2');410 $this->set_test_shop_pass_2($this->get_option('test_shop_pass_2')); 411 411 } 412 412 … … 414 414 * Load sign method for testing 415 415 */ 416 $this-> test_sign_method = $this->get_option('test_sign_method');416 $this->set_test_sign_method($this->get_option('test_sign_method')); 417 417 418 418 /** … … 431 431 $this->enabled = false; 432 432 } 433 } 434 435 /** 436 * @since 2.2.0.1 437 * 438 * @return string 439 */ 440 public function get_shop_login() 441 { 442 return $this->shop_login; 443 } 444 445 /** 446 * @since 2.2.0.1 447 * 448 * @param string $shop_login 449 */ 450 public function set_shop_login( $shop_login ) 451 { 452 $this->shop_login = $shop_login; 453 } 454 455 /** 456 * @since 2.2.0.1 457 * 458 * @return string 459 */ 460 public function get_shop_pass_1() 461 { 462 return $this->shop_pass_1; 463 } 464 465 /** 466 * @since 2.2.0.1 467 * 468 * @param string $shop_pass_1 469 */ 470 public function set_shop_pass_1( $shop_pass_1 ) 471 { 472 $this->shop_pass_1 = $shop_pass_1; 473 } 474 475 /** 476 * @since 2.2.0.1 477 * 478 * @return string 479 */ 480 public function get_shop_pass_2() 481 { 482 return $this->shop_pass_2; 483 } 484 485 /** 486 * @since 2.2.0.1 487 * 488 * @param string $shop_pass_2 489 */ 490 public function set_shop_pass_2( $shop_pass_2 ) 491 { 492 $this->shop_pass_2 = $shop_pass_2; 493 } 494 495 /** 496 * @since 2.2.0.1 497 * 498 * @return string 499 */ 500 public function get_sign_method() 501 { 502 return $this->sign_method; 503 } 504 505 /** 506 * @since 2.2.0.1 507 * 508 * @param string $sign_method 509 */ 510 public function set_sign_method( $sign_method ) 511 { 512 $this->sign_method = $sign_method; 513 } 514 515 /** 516 * @since 2.2.0.1 517 * 518 * @return string 519 */ 520 public function get_form_url() 521 { 522 return $this->form_url; 523 } 524 525 /** 526 * @since 2.2.0.1 527 * 528 * @param string $form_url 529 */ 530 public function set_form_url( $form_url ) 531 { 532 $this->form_url = $form_url; 533 } 534 535 /** 536 * @since 2.2.0.1 537 * 538 * @return string 539 */ 540 public function get_user_interface_language() 541 { 542 return $this->user_interface_language; 543 } 544 545 /** 546 * @since 2.2.0.1 547 * 548 * @param string $user_interface_language 549 */ 550 public function set_user_interface_language( $user_interface_language ) 551 { 552 $this->user_interface_language = $user_interface_language; 553 } 554 555 /** 556 * @since 2.2.0.1 557 * 558 * @return mixed 559 */ 560 public function get_test() 561 { 562 return $this->test; 563 } 564 565 /** 566 * @since 2.2.0.1 567 * 568 * @param mixed $test 569 */ 570 public function set_test( $test ) 571 { 572 $this->test = $test; 573 } 574 575 /** 576 * @since 2.2.0.1 577 * 578 * @return string 579 */ 580 public function get_test_shop_pass_1() 581 { 582 return $this->test_shop_pass_1; 583 } 584 585 /** 586 * @since 2.2.0.1 587 * 588 * @param string $test_shop_pass_1 589 */ 590 public function set_test_shop_pass_1( $test_shop_pass_1 ) 591 { 592 $this->test_shop_pass_1 = $test_shop_pass_1; 593 } 594 595 /** 596 * @since 2.2.0.1 597 * 598 * @return string 599 */ 600 public function get_test_shop_pass_2() 601 { 602 return $this->test_shop_pass_2; 603 } 604 605 /** 606 * @since 2.2.0.1 607 * 608 * @param string $test_shop_pass_2 609 */ 610 public function set_test_shop_pass_2( $test_shop_pass_2 ) 611 { 612 $this->test_shop_pass_2 = $test_shop_pass_2; 613 } 614 615 /** 616 * @since 2.2.0.1 617 * 618 * @return string 619 */ 620 public function get_test_sign_method() 621 { 622 return $this->test_sign_method; 623 } 624 625 /** 626 * @since 2.2.0.1 627 * 628 * @param string $test_sign_method 629 */ 630 public function set_test_sign_method( $test_sign_method ) 631 { 632 $this->test_sign_method = $test_sign_method; 633 } 634 635 /** 636 * @since 2.2.0.1 637 * 638 * @return bool 639 */ 640 public function is_ofd_status() 641 { 642 return $this->ofd_status; 643 } 644 645 /** 646 * @since 2.2.0.1 647 * 648 * @param bool $ofd_status 649 */ 650 public function set_ofd_status( $ofd_status ) 651 { 652 $this->ofd_status = $ofd_status; 653 } 654 655 /** 656 * @since 2.2.0.1 657 * 658 * @return string 659 */ 660 public function get_ofd_sno() 661 { 662 return $this->ofd_sno; 663 } 664 665 /** 666 * @since 2.2.0.1 667 * 668 * @param string $ofd_sno 669 */ 670 public function set_ofd_sno( $ofd_sno ) 671 { 672 $this->ofd_sno = $ofd_sno; 673 } 674 675 /** 676 * @since 2.2.0.1 677 * 678 * @return string 679 */ 680 public function get_ofd_nds() 681 { 682 return $this->ofd_nds; 683 } 684 685 /** 686 * @since 2.2.0.1 687 * 688 * @param string $ofd_nds 689 */ 690 public function set_ofd_nds( $ofd_nds ) 691 { 692 $this->ofd_nds = $ofd_nds; 693 } 694 695 /** 696 * @since 2.2.0.1 697 * 698 * @return string 699 */ 700 public function get_ofd_payment_method() 701 { 702 return $this->ofd_payment_method; 703 } 704 705 /** 706 * @since 2.2.0.1 707 * 708 * @param string $ofd_payment_method 709 */ 710 public function set_ofd_payment_method( $ofd_payment_method ) 711 { 712 $this->ofd_payment_method = $ofd_payment_method; 713 } 714 715 /** 716 * @since 2.2.0.1 717 * 718 * @return string 719 */ 720 public function get_ofd_payment_object() 721 { 722 return $this->ofd_payment_object; 723 } 724 725 /** 726 * @since 2.2.0.1 727 * 728 * @param string $ofd_payment_object 729 */ 730 public function set_ofd_payment_object( $ofd_payment_object ) 731 { 732 $this->ofd_payment_object = $ofd_payment_object; 433 733 } 434 734 … … 749 1049 $fields['ofd_payment_method'] = array 750 1050 ( 751 'title' => __(' Признак способа расчёта', 'wc-robokassa'),752 'description' => __(' Этот параметр необязательный. Если этот параметр не настроен, то в чеке будет указано значение параметра по умолчанию из Личного кабинета.', 'wc-robokassa'),1051 'title' => __('Indication of the calculation method', 'wc-robokassa'), 1052 'description' => __('The parameter is optional. If this parameter is not configured, the check will indicate the default value of the parameter from the Personal account.', 'wc-robokassa'), 753 1053 'type' => 'select', 754 1054 'default' => '', … … 756 1056 ( 757 1057 '' => __('Default in Robokassa', 'wc-robokassa'), 758 'full_prepayment' => __(' Предоплата100%', 'wc-robokassa'),759 'prepayment' => __(' Частичная предоплата', 'wc-robokassa'),760 'advance' => __(' Аванс', 'wc-robokassa'),761 'full_payment' => __(' Полный расчет', 'wc-robokassa'),762 'partial_payment' => __(' Частичный расчёт и кредит', 'wc-robokassa'),763 'credit' => __(' Передача в кредит', 'wc-robokassa'),764 'credit_payment' => __(' Оплата кредита', 'wc-robokassa')1058 'full_prepayment' => __('Prepayment 100%', 'wc-robokassa'), 1059 'prepayment' => __('Partial prepayment', 'wc-robokassa'), 1060 'advance' => __('Advance', 'wc-robokassa'), 1061 'full_payment' => __('Full settlement', 'wc-robokassa'), 1062 'partial_payment' => __('Partial settlement and credit', 'wc-robokassa'), 1063 'credit' => __('Transfer on credit', 'wc-robokassa'), 1064 'credit_payment' => __('Credit payment', 'wc-robokassa') 765 1065 ), 766 1066 ); … … 768 1068 $fields['ofd_payment_object'] = array 769 1069 ( 770 'title' => __(' Признак предмета расчёта', 'wc-robokassa'),771 'description' => __(' Этот параметр необязательный. Если этот параметр не настроен, то в чеке будет указано значение параметра по умолчанию из Личного кабинета.', 'wc-robokassa'),1070 'title' => __('Sign of the subject of calculation', 'wc-robokassa'), 1071 'description' => __('The parameter is optional. If this parameter is not configured, the check will indicate the default value of the parameter from the Personal account.', 'wc-robokassa'), 772 1072 'type' => 'select', 773 1073 'default' => '', … … 775 1075 ( 776 1076 '' => __('Default in Robokassa', 'wc-robokassa'), 777 'commodity' => __(' Товар', 'wc-robokassa'),778 'excise' => __(' Подакцизный товар', 'wc-robokassa'),779 'job' => __(' Работа', 'wc-robokassa'),780 'service' => __(' Услуга', 'wc-robokassa'),781 'gambling_bet' => __(' Ставка азартной игры', 'wc-robokassa'),782 'gambling_prize' => __(' Выигрыш азартной игры', 'wc-robokassa'),783 'lottery' => __(' Лотерейный билет', 'wc-robokassa'),784 'lottery_prize' => __(' Выигрыш лотереи', 'wc-robokassa'),785 'intellectual_activity' => __(' Результаты интеллектуальной деятельности', 'wc-robokassa'),786 'payment' => __(' Платеж', 'wc-robokassa'),787 'agent_commission' => __(' Агентское вознаграждение', 'wc-robokassa'),788 'composite' => __(' Составной предмет расчета', 'wc-robokassa'),789 'another' => __(' Иной предмет расчета', 'wc-robokassa'),790 'property_right' => __(' Имущественное право', 'wc-robokassa'),791 'non-operating_gain' => __(' Внереализационный доход', 'wc-robokassa'),792 'insurance_premium' => __(' Страховые взносы', 'wc-robokassa'),793 'sales_tax' => __(' Торговый сбор', 'wc-robokassa'),794 'resort_fee' => __(' Курортный сбор', 'wc-robokassa')1077 'commodity' => __('Product', 'wc-robokassa'), 1078 'excise' => __('Excisable goods', 'wc-robokassa'), 1079 'job' => __('Work', 'wc-robokassa'), 1080 'service' => __('Service', 'wc-robokassa'), 1081 'gambling_bet' => __('Gambling rate', 'wc-robokassa'), 1082 'gambling_prize' => __('Gambling win', 'wc-robokassa'), 1083 'lottery' => __('Lottery ticket', 'wc-robokassa'), 1084 'lottery_prize' => __('Winning the lottery', 'wc-robokassa'), 1085 'intellectual_activity' => __('Results of intellectual activity', 'wc-robokassa'), 1086 'payment' => __('Payment', 'wc-robokassa'), 1087 'agent_commission' => __('Agency fee', 'wc-robokassa'), 1088 'composite' => __('Compound subject of calculation', 'wc-robokassa'), 1089 'another' => __('Another object of the calculation', 'wc-robokassa'), 1090 'property_right' => __('Property right', 'wc-robokassa'), 1091 'non-operating_gain' => __('Extraordinary income', 'wc-robokassa'), 1092 'insurance_premium' => __('Insurance premium', 'wc-robokassa'), 1093 'sales_tax' => __('Sales tax', 'wc-robokassa'), 1094 'resort_fee' => __('Resort fee', 'wc-robokassa') 795 1095 ), 796 1096 ); … … 843 1143 public function is_valid_for_use() 844 1144 { 845 $return = true;846 847 1145 /** 848 1146 * Check allow currency … … 850 1148 if (!in_array(WC_Robokassa::instance()->get_wc_currency(), $this->currency_all, false)) 851 1149 { 852 $return = false; 853 854 /** 855 * Logger notice 856 */ 857 WC_Robokassa::instance()->get_logger()->addInfo('Currency not support: ' . WC_Robokassa::instance()->get_wc_currency()); 1150 return false; 858 1151 } 859 1152 … … 863 1156 * @todo сделать возможность тестирования не только админами 864 1157 */ 865 if ($this->test === 'yes' && !current_user_can( 'manage_options' )) 866 { 867 $return = false; 868 869 /** 870 * Logger notice 871 */ 872 WC_Robokassa::instance()->get_logger()->addNotice('Test mode only admins.'); 873 } 874 875 return $return; 1158 if ($this->get_test() === 'yes' && !current_user_can('manage_options')) 1159 { 1160 return false; 1161 } 1162 1163 return true; 876 1164 } 877 1165 … … 988 1276 * Add order note 989 1277 */ 990 $order->add_order_note(__('The client started to pay.', 'wc-robokassa')); 1278 if(method_exists($order, 'add_order_note')) 1279 { 1280 $order->add_order_note(__('The client started to pay.', 'wc-robokassa')); 1281 } 991 1282 992 1283 /** … … 1055 1346 * Shop login 1056 1347 */ 1057 $args['MerchantLogin'] = $this-> shop_login;1348 $args['MerchantLogin'] = $this->get_shop_login(); 1058 1349 1059 1350 /** … … 1097 1388 * Test mode 1098 1389 */ 1099 if ($this-> test=== 'yes')1390 if ($this->get_test() === 'yes') 1100 1391 { 1101 1392 /** 1102 1393 * Signature pass for testing 1103 1394 */ 1104 $signature_pass = $this-> test_shop_pass_1;1395 $signature_pass = $this->get_test_shop_pass_1(); 1105 1396 1106 1397 /** 1107 1398 * Sign method 1108 1399 */ 1109 $signature_method = $this-> test_sign_method;1400 $signature_method = $this->get_test_sign_method(); 1110 1401 1111 1402 /** … … 1122 1413 * Signature pass for real payments 1123 1414 */ 1124 $signature_pass = $this-> shop_pass_1;1415 $signature_pass = $this->get_shop_pass_1(); 1125 1416 1126 1417 /** 1127 1418 * Sign method 1128 1419 */ 1129 $signature_method = $this-> sign_method;1420 $signature_method = $this->get_sign_method(); 1130 1421 } 1131 1422 … … 1138 1429 $args['Email'] = $billing_email; 1139 1430 } 1140 unset($billing_email);1141 1431 1142 1432 /** … … 1144 1434 */ 1145 1435 $receipt_result = ''; 1146 if($this-> ofd_status !== false)1436 if($this->is_ofd_status() === true) 1147 1437 { 1148 1438 /** … … 1154 1444 * Items 1155 1445 */ 1156 $receipt_items = array(); 1157 1158 foreach ($order->get_items() as $receipt_items_key => $receipt_items_value) 1159 { 1160 /** 1161 * Quantity 1162 */ 1163 $item_quantity = $receipt_items_value->get_quantity(); 1164 1165 /** 1166 * Total item sum 1167 */ 1168 $item_total = $receipt_items_value->get_total(); 1169 1170 /** 1171 * Build positions 1172 */ 1173 $receipt_items[] = array 1174 ( 1175 /** 1176 * Название товара 1177 * 1178 * максимальная длина 128 символов 1179 */ 1180 'name' => $receipt_items_value['name'], 1181 1182 /** 1183 * Стоимость предмета расчета с учетом скидок и наценок 1184 * 1185 * Цена в рублях: 1186 * целая часть не более 8 знаков; 1187 * дробная часть не более 2 знаков. 1188 */ 1189 'sum' => intval($item_total), 1190 1191 /** 1192 * Количество/вес 1193 * 1194 * максимальная длина 128 символов 1195 */ 1196 'quantity' => intval($item_quantity), 1197 1198 /** 1199 * Tax 1200 */ 1201 'tax' => $this->ofd_nds, 1202 1203 /** 1204 * Payment method 1205 */ 1206 'payment_method' => $this->ofd_payment_method, 1207 1208 /** 1209 * Payment object 1210 */ 1211 'payment_object' => $this->ofd_payment_object, 1212 ); 1213 } 1214 1215 /** 1216 * Delivery 1217 */ 1218 if ($order->get_shipping_total() > 0) 1219 { 1220 /** 1221 * Build positions 1222 */ 1223 $receipt_items[] = array 1224 ( 1225 /** 1226 * Название товара 1227 * 1228 * максимальная длина 128 символов 1229 */ 1230 'name' => __('Delivery', 'wc-robokassa'), 1231 1232 /** 1233 * Стоимость предмета расчета с учетом скидок и наценок 1234 * 1235 * Цена в рублях: 1236 * целая часть не более 8 знаков; 1237 * дробная часть не более 2 знаков. 1238 */ 1239 'sum' => intval($order->get_shipping_total()), 1240 1241 /** 1242 * Количество/вес 1243 * 1244 * максимальная длина 128 символов 1245 */ 1246 'quantity' => 1, 1247 1248 /** 1249 * Tax 1250 */ 1251 'tax' => $this->ofd_nds, 1252 1253 /** 1254 * Payment method 1255 */ 1256 'payment_method' => $this->ofd_payment_method, 1257 1258 /** 1259 * Payment object 1260 */ 1261 'payment_object' => $this->ofd_payment_object, 1262 ); 1263 } 1446 $receipt_items = $this->generate_receipt_items($order); 1264 1447 1265 1448 /** 1266 1449 * Sno 1267 1450 */ 1268 $receipt['sno'] = $this-> ofd_sno;1451 $receipt['sno'] = $this->get_ofd_sno(); 1269 1452 1270 1453 /** … … 1277 1460 */ 1278 1461 $receipt_result = json_encode($receipt); 1279 1280 /**1281 * Insert $receipt_result into debug mode1282 */1283 WC_Robokassa::instance()->get_logger()->addDebug('$receipt_result' . $receipt_result);1284 1462 } 1285 1463 … … 1313 1491 * Language (culture) 1314 1492 */ 1315 $args['Culture'] = $this-> user_interface_language;1493 $args['Culture'] = $this->get_user_interface_language(); 1316 1494 1317 1495 /** … … 1332 1510 * Return full form 1333 1511 */ 1334 return '<form action="'.esc_url($this-> form_url).'" method="POST" id="wc_robokassa_payment_form" accept-charset="utf-8">'."\n".1512 return '<form action="'.esc_url($this->get_form_url()).'" method="POST" id="wc_robokassa_payment_form" accept-charset="utf-8">'."\n". 1335 1513 implode("\n", $args_array). 1336 1514 '<input type="submit" class="button alt" id="submit_wc_robokassa_payment_form" value="'.__('Pay', 'wc-robokassa'). … … 1340 1518 1341 1519 /** 1520 * @since 2.2.0.1 1521 * 1522 * @param WC_Order $order 1523 * 1524 * @return array 1525 */ 1526 public function generate_receipt_items($order) 1527 { 1528 $receipt_items = array(); 1529 1530 /** 1531 * Order items 1532 */ 1533 foreach ($order->get_items() as $receipt_items_key => $receipt_items_value) 1534 { 1535 /** 1536 * Quantity 1537 */ 1538 $item_quantity = $receipt_items_value->get_quantity(); 1539 1540 /** 1541 * Total item sum 1542 */ 1543 $item_total = $receipt_items_value->get_total(); 1544 1545 /** 1546 * Build positions 1547 */ 1548 $receipt_items[] = array 1549 ( 1550 /** 1551 * Название товара 1552 * 1553 * максимальная длина 128 символов 1554 */ 1555 'name' => $receipt_items_value['name'], 1556 1557 /** 1558 * Стоимость предмета расчета с учетом скидок и наценок 1559 * 1560 * Цена в рублях: 1561 * целая часть не более 8 знаков; 1562 * дробная часть не более 2 знаков. 1563 */ 1564 'sum' => intval($item_total), 1565 1566 /** 1567 * Количество/вес 1568 * 1569 * максимальная длина 128 символов 1570 */ 1571 'quantity' => intval($item_quantity), 1572 1573 /** 1574 * Tax 1575 */ 1576 'tax' => $this->get_ofd_nds(), 1577 1578 /** 1579 * Payment method 1580 */ 1581 'payment_method' => $this->get_ofd_payment_method(), 1582 1583 /** 1584 * Payment object 1585 */ 1586 'payment_object' => $this->get_ofd_payment_object(), 1587 ); 1588 } 1589 1590 /** 1591 * Delivery 1592 */ 1593 if ($order->get_shipping_total() > 0) 1594 { 1595 /** 1596 * Build positions 1597 */ 1598 $receipt_items[] = array 1599 ( 1600 /** 1601 * Название товара 1602 * 1603 * максимальная длина 128 символов 1604 */ 1605 'name' => __('Delivery', 'wc-robokassa'), 1606 1607 /** 1608 * Стоимость предмета расчета с учетом скидок и наценок 1609 * 1610 * Цена в рублях: 1611 * целая часть не более 8 знаков; 1612 * дробная часть не более 2 знаков. 1613 */ 1614 'sum' => intval($order->get_shipping_total()), 1615 1616 /** 1617 * Количество/вес 1618 * 1619 * максимальная длина 128 символов 1620 */ 1621 'quantity' => 1, 1622 1623 /** 1624 * Tax 1625 */ 1626 'tax' => $this->get_ofd_nds(), 1627 1628 /** 1629 * Payment method 1630 */ 1631 'payment_method' => $this->get_ofd_payment_method(), 1632 1633 /** 1634 * Payment object 1635 */ 1636 'payment_object' => $this->get_ofd_payment_object(), 1637 ); 1638 } 1639 1640 return $receipt_items; 1641 } 1642 1643 /** 1342 1644 * Get signature 1343 1645 * … … 1372 1674 1373 1675 default: 1374 1375 1676 $signature = strtoupper(md5($string)); 1376 1677 } … … 1412 1713 * Test mode 1413 1714 */ 1414 if ($this-> test=== 'yes' || (array_key_exists('IsTest', $_REQUEST) && $_REQUEST['IsTest'] == '1'))1715 if ($this->get_test() === 'yes' || (array_key_exists('IsTest', $_REQUEST) && $_REQUEST['IsTest'] == '1')) 1415 1716 { 1416 1717 /** … … 1422 1723 * Signature pass for testing 1423 1724 */ 1424 if ($_ GET['action'] === 'success')1725 if ($_REQUEST['action'] === 'success') 1425 1726 { 1426 $signature_pass = $this-> test_shop_pass_1;1727 $signature_pass = $this->get_test_shop_pass_1(); 1427 1728 } 1428 1729 else 1429 1730 { 1430 $signature_pass = $this-> test_shop_pass_2;1731 $signature_pass = $this->get_test_shop_pass_2(); 1431 1732 } 1432 1733 … … 1434 1735 * Sign method 1435 1736 */ 1436 $signature_method = $this-> test_sign_method;1737 $signature_method = $this->get_test_sign_method(); 1437 1738 } 1438 1739 /** … … 1451 1752 if ($_GET['action'] === 'success') 1452 1753 { 1453 $signature_pass = $this-> shop_pass_1;1754 $signature_pass = $this->get_shop_pass_1(); 1454 1755 } 1455 1756 else 1456 1757 { 1457 $signature_pass = $this-> shop_pass_2;1758 $signature_pass = $this->get_shop_pass_2(); 1458 1759 } 1459 1760 … … 1461 1762 * Sign method 1462 1763 */ 1463 $signature_method = $this-> sign_method;1764 $signature_method = $this->get_sign_method(); 1464 1765 } 1465 1766 … … 1498 1799 * Add order note 1499 1800 */ 1500 $order->add_order_note(sprintf(__('Robokassa request success. Sum: %1$s Signature: %2$s Remote signature: %3$s', 'wc-robokassa'), $sum, $local_signature, $signature)); 1801 if(method_exists($order, 'add_order_note')) 1802 { 1803 $order->add_order_note( sprintf( __( 'Robokassa request success. Sum: %1$s Signature: %2$s Remote signature: %3$s', 'wc-robokassa' ), $sum, $local_signature, $signature ) ); 1804 } 1501 1805 1502 1806 /** 1503 1807 * Result 1504 1808 */ 1505 if ($_ GET['action'] === 'result')1809 if ($_REQUEST['action'] === 'result') 1506 1810 { 1507 1811 /** … … 1520 1824 * Add order note 1521 1825 */ 1522 $order->add_order_note(sprintf(__('Validate hash error. Local: %1$s Remote: %2$s', 'wc-robokassa'), $local_signature, $signature)); 1523 1524 /** 1525 * Logger info 1526 */ 1527 WC_Robokassa::instance()->get_logger()->addError('Validate secret key error. Local hash != remote hash.'); 1826 if(method_exists($order, 'add_order_note')) 1827 { 1828 $order->add_order_note( sprintf( __( 'Validate hash error. Local: %1$s Remote: %2$s', 'wc-robokassa' ), $local_signature, $signature ) ); 1829 } 1528 1830 } 1529 1831 … … 1533 1835 if($validate === true) 1534 1836 { 1535 /**1536 * Logger info1537 */1538 WC_Robokassa::instance()->get_logger()->addInfo('Result Validated success.');1539 1540 1837 /** 1541 1838 * Testing … … 1546 1843 * Add order note 1547 1844 */ 1548 $order->add_order_note(__('Order successfully paid (TEST MODE).', 'wc-robokassa')); 1549 1550 /** 1551 * Logger notice 1552 */ 1553 WC_Robokassa::instance()->get_logger()->addNotice('Order successfully paid (TEST MODE).'); 1845 if(method_exists($order, 'add_order_note')) 1846 { 1847 $order->add_order_note( __( 'Order successfully paid (TEST MODE).', 'wc-robokassa' ) ); 1848 } 1554 1849 } 1555 1850 /** … … 1561 1856 * Add order note 1562 1857 */ 1563 $order->add_order_note(__('Order successfully paid.', 'wc-robokassa')); 1564 1565 /** 1566 * Logger notice 1567 */ 1568 WC_Robokassa::instance()->get_logger()->addNotice('Order successfully paid.'); 1858 if(method_exists($order, 'add_order_note')) 1859 { 1860 $order->add_order_note( __( 'Order successfully paid.', 'wc-robokassa' ) ); 1861 } 1569 1862 } 1570 1571 /**1572 * Logger notice1573 */1574 WC_Robokassa::instance()->get_logger()->addInfo('Payment complete.');1575 1863 1576 1864 /** … … 1582 1870 1583 1871 /** 1584 * Logger notice1585 */1586 WC_Robokassa::instance()->get_logger()->addError('Result Validated error. Payment error, please pay other time.');1587 1588 /**1589 1872 * Send Service unavailable 1590 1873 */ … … 1594 1877 * Success 1595 1878 */ 1596 else if ($_ GET['action'] === 'success')1879 else if ($_REQUEST['action'] === 'success') 1597 1880 { 1598 1881 /** 1599 1882 * Add order note 1600 1883 */ 1601 $order->add_order_note(__('Client return to success page.', 'wc-robokassa')); 1884 if(method_exists($order, 'add_order_note')) 1885 { 1886 $order->add_order_note( __( 'Client return to success page.', 'wc-robokassa' ) ); 1887 } 1602 1888 1603 1889 /** … … 1609 1895 * Redirect to success 1610 1896 */ 1611 wp_redirect( $this->get_return_url( $order ));1897 wp_redirect($this->get_return_url($order)); 1612 1898 die(); 1613 1899 } … … 1615 1901 * Fail 1616 1902 */ 1617 else if ($_ GET['action'] === 'fail')1903 else if ($_REQUEST['action'] === 'fail') 1618 1904 { 1619 1905 /** 1620 1906 * Add order note 1621 1907 */ 1622 $order->add_order_note(__('The order has not been paid.', 'wc-robokassa')); 1908 if(method_exists($order, 'add_order_note')) 1909 { 1910 $order->add_order_note( __( 'The order has not been paid.', 'wc-robokassa' ) ); 1911 } 1623 1912 1624 1913 /** -
wc-robokassa/trunk/includes/class-wc-robokassa.php
r2168628 r2200862 266 266 public function load_robokassa_api() 267 267 { 268 $robokassa_api_class_name = apply_filters('wc_robokassa_api_class_name_load', 'Wc_Robokassa_Api'); 268 $default_class_name = 'Wc_Robokassa_Api'; 269 270 $robokassa_api_class_name = apply_filters('wc_robokassa_api_class_name_load', $default_class_name); 269 271 270 272 if(!class_exists($robokassa_api_class_name)) 271 273 { 272 $robokassa_api_class_name = 'Wc_Robokassa_Api';274 $robokassa_api_class_name = $default_class_name; 273 275 } 274 276 … … 355 357 public function wc_gateway_method_add($methods) 356 358 { 357 $robokassa_method_class_name = apply_filters('wc_robokassa_method_class_name_add', 'Wc_Robokassa_Method'); 359 $default_class_name = 'Wc_Robokassa_Method'; 360 361 $robokassa_method_class_name = apply_filters('wc_robokassa_method_class_name_add', $default_class_name); 358 362 359 363 if(!class_exists($robokassa_method_class_name)) 360 364 { 361 $robokassa_method_class_name = 'Wc_Robokassa_Method';365 $robokassa_method_class_name = $default_class_name; 362 366 } 363 367 -
wc-robokassa/trunk/languages/wc-robokassa-ru_RU.po
r2168628 r2200862 2 2 msgstr "" 3 3 "Project-Id-Version: Robokassa - Payment Gateway for WooCommerce\n" 4 "POT-Creation-Date: 2019-1 0-05 08:53+0300\n"5 "PO-Revision-Date: 2019-1 0-05 08:55+0300\n"4 "POT-Creation-Date: 2019-11-25 16:07+0300\n" 5 "PO-Revision-Date: 2019-11-25 16:31+0300\n" 6 6 "Last-Translator: Mofsy <ru.mofsy@yandex.ru>\n" 7 7 "Language-Team: Mofsy <support@mofsy.ru>\n" … … 23 23 24 24 #: includes/class-wc-robokassa-method.php:134 25 #: includes/class-wc-robokassa-method.php: 67025 #: includes/class-wc-robokassa-method.php:970 26 26 msgid "Robokassa" 27 27 msgstr "Робокасса" … … 31 31 msgstr "Оплата через Робокассу." 32 32 33 #: includes/class-wc-robokassa-method.php: 45933 #: includes/class-wc-robokassa-method.php:759 34 34 msgid "Main settings" 35 35 msgstr "Основные настройки" 36 36 37 #: includes/class-wc-robokassa-method.php: 46137 #: includes/class-wc-robokassa-method.php:761 38 38 msgid "Work is impossible without these settings." 39 39 msgstr "Работа невозможна без этих настроек." 40 40 41 #: includes/class-wc-robokassa-method.php: 46641 #: includes/class-wc-robokassa-method.php:766 42 42 msgid "Online / Offline gateway" 43 43 msgstr "Включить / Выключить шлюз" 44 44 45 #: includes/class-wc-robokassa-method.php: 46845 #: includes/class-wc-robokassa-method.php:768 46 46 msgid "Enable display of the payment gateway on the website" 47 47 msgstr "Включить отображение платежного шлюза на сайте" 48 48 49 #: includes/class-wc-robokassa-method.php: 47549 #: includes/class-wc-robokassa-method.php:775 50 50 msgid "Shop identifier" 51 51 msgstr "Идентификатор магазина" 52 52 53 #: includes/class-wc-robokassa-method.php: 47753 #: includes/class-wc-robokassa-method.php:777 54 54 msgid "Unique identification for shop from Robokassa." 55 55 msgstr "Уникальный идентификатор магазина из личного кабинета Робокассы." 56 56 57 #: includes/class-wc-robokassa-method.php: 48358 #: includes/class-wc-robokassa-method.php: 58157 #: includes/class-wc-robokassa-method.php:783 58 #: includes/class-wc-robokassa-method.php:881 59 59 msgid "Hash calculation algorithm" 60 60 msgstr "Алгоритм вычисления хэша" 61 61 62 #: includes/class-wc-robokassa-method.php: 48463 #: includes/class-wc-robokassa-method.php: 58262 #: includes/class-wc-robokassa-method.php:784 63 #: includes/class-wc-robokassa-method.php:882 64 64 msgid "" 65 65 "The algorithm must match the one specified in the personal account of " … … 69 69 "ROBOKASSA." 70 70 71 #: includes/class-wc-robokassa-method.php: 50072 #: includes/class-wc-robokassa-method.php: 59871 #: includes/class-wc-robokassa-method.php:800 72 #: includes/class-wc-robokassa-method.php:898 73 73 msgid "Password #1" 74 74 msgstr "Пароль #1" 75 75 76 #: includes/class-wc-robokassa-method.php: 50276 #: includes/class-wc-robokassa-method.php:802 77 77 msgid "" 78 78 "Please write Shop pass 1. The pass must match the one specified in the " … … 82 82 "указан в личном кабинете ROBOKASSA." 83 83 84 #: includes/class-wc-robokassa-method.php: 50885 #: includes/class-wc-robokassa-method.php: 60684 #: includes/class-wc-robokassa-method.php:808 85 #: includes/class-wc-robokassa-method.php:906 86 86 msgid "Password #2" 87 87 msgstr "Пароль #2" 88 88 89 #: includes/class-wc-robokassa-method.php: 51089 #: includes/class-wc-robokassa-method.php:810 90 90 msgid "" 91 91 "Please write Shop pass 2. The pass must match the one specified in the " … … 95 95 "указан в личном кабинете ROBOKASSA." 96 96 97 #: includes/class-wc-robokassa-method.php: 51497 #: includes/class-wc-robokassa-method.php:814 98 98 msgid "" 99 99 "Address to notify the site of the results of operations in the background. " … … 105 105 "настройках. Способ уведомления: POST." 106 106 107 #: includes/class-wc-robokassa-method.php: 518107 #: includes/class-wc-robokassa-method.php:818 108 108 msgid "Result Url" 109 109 msgstr "Result Url" 110 110 111 #: includes/class-wc-robokassa-method.php: 525111 #: includes/class-wc-robokassa-method.php:825 112 112 msgid "" 113 113 "The address for the user to go to the site after successful payment. Copy " … … 120 120 "Способ уведомления: POST. Вы можете указать другие адреса по вашему выбору." 121 121 122 #: includes/class-wc-robokassa-method.php: 529122 #: includes/class-wc-robokassa-method.php:829 123 123 msgid "Success Url" 124 124 msgstr "Success Url" 125 125 126 #: includes/class-wc-robokassa-method.php: 536126 #: includes/class-wc-robokassa-method.php:836 127 127 msgid "" 128 128 "The address for the user to go to the site, after payment with an error. " … … 135 135 "Способ уведомления: POST. Вы можете указать другие адреса по вашему выбору." 136 136 137 #: includes/class-wc-robokassa-method.php: 540137 #: includes/class-wc-robokassa-method.php:840 138 138 msgid "Fail Url" 139 139 msgstr "Fail Url" 140 140 141 #: includes/class-wc-robokassa-method.php: 561141 #: includes/class-wc-robokassa-method.php:861 142 142 msgid "Parameters of the test fees" 143 143 msgstr "Параметры проведения тестовых платежей" 144 144 145 #: includes/class-wc-robokassa-method.php: 563145 #: includes/class-wc-robokassa-method.php:863 146 146 msgid "" 147 147 "Set up test payments. Passwords and counting method signature for test " … … 151 151 "тестовых платежей отличаются." 152 152 153 #: includes/class-wc-robokassa-method.php: 568153 #: includes/class-wc-robokassa-method.php:868 154 154 msgid "Test mode" 155 155 msgstr "Тестовый режим" 156 156 157 #: includes/class-wc-robokassa-method.php: 570157 #: includes/class-wc-robokassa-method.php:870 158 158 msgid "Activate testing mode for admins." 159 159 msgstr "Активация тестового режима для админов." 160 160 161 #: includes/class-wc-robokassa-method.php: 574162 #: includes/class-wc-robokassa-method.php: 825161 #: includes/class-wc-robokassa-method.php:874 162 #: includes/class-wc-robokassa-method.php:1125 163 163 msgid "Off" 164 164 msgstr "Отключить" 165 165 166 #: includes/class-wc-robokassa-method.php: 575166 #: includes/class-wc-robokassa-method.php:875 167 167 msgid "On" 168 168 msgstr "Включить" 169 169 170 #: includes/class-wc-robokassa-method.php: 600170 #: includes/class-wc-robokassa-method.php:900 171 171 msgid "" 172 172 "Please write Shop pass 1 for testing payments. The pass must match the one " … … 176 176 "соответствовать тому, который указан в личном кабинете ROBOKASSA." 177 177 178 #: includes/class-wc-robokassa-method.php: 608178 #: includes/class-wc-robokassa-method.php:908 179 179 msgid "" 180 180 "Please write Shop pass 2 for testing payments. The pass must match the one " … … 184 184 "соответствовать тому, который указан в личном кабинете ROBOKASSA." 185 185 186 #: includes/class-wc-robokassa-method.php: 626186 #: includes/class-wc-robokassa-method.php:926 187 187 msgid "Interface" 188 188 msgstr "Интерфейс" 189 189 190 #: includes/class-wc-robokassa-method.php: 628190 #: includes/class-wc-robokassa-method.php:928 191 191 msgid "Customize the appearance. Can leave it at that." 192 192 msgstr "Настройка внешнего вида. Можете оставить все как есть." 193 193 194 #: includes/class-wc-robokassa-method.php: 633194 #: includes/class-wc-robokassa-method.php:933 195 195 msgid "Show gateway icon?" 196 196 msgstr "Показать иконку шлюза?" 197 197 198 #: includes/class-wc-robokassa-method.php: 635198 #: includes/class-wc-robokassa-method.php:935 199 199 msgid "Show" 200 200 msgstr "Показать" 201 201 202 #: includes/class-wc-robokassa-method.php: 641202 #: includes/class-wc-robokassa-method.php:941 203 203 msgid "Language interface" 204 204 msgstr "Язык интерфейса" 205 205 206 #: includes/class-wc-robokassa-method.php: 645206 #: includes/class-wc-robokassa-method.php:945 207 207 msgid "Russian" 208 208 msgstr "Русский" 209 209 210 #: includes/class-wc-robokassa-method.php: 646210 #: includes/class-wc-robokassa-method.php:946 211 211 msgid "English" 212 212 msgstr "Английский" 213 213 214 #: includes/class-wc-robokassa-method.php: 648214 #: includes/class-wc-robokassa-method.php:948 215 215 msgid "What language interface displayed for the customer on Robokassa?" 216 216 msgstr "Какой язык показывать клиентам на стороне сервиса Робокасса?" 217 217 218 #: includes/class-wc-robokassa-method.php: 654218 #: includes/class-wc-robokassa-method.php:954 219 219 msgid "Language based on the locale?" 220 220 msgstr "Язык интерфейса на основе локали?" 221 221 222 #: includes/class-wc-robokassa-method.php: 658222 #: includes/class-wc-robokassa-method.php:958 223 223 msgid "Yes" 224 224 msgstr "Да" 225 225 226 #: includes/class-wc-robokassa-method.php: 659226 #: includes/class-wc-robokassa-method.php:959 227 227 msgid "No" 228 228 msgstr "Нет" 229 229 230 #: includes/class-wc-robokassa-method.php: 661230 #: includes/class-wc-robokassa-method.php:961 231 231 msgid "Trying to get the language based on the locale?" 232 232 msgstr "Получать язык для интерфейса Робокассы на основе локали?" 233 233 234 #: includes/class-wc-robokassa-method.php: 667234 #: includes/class-wc-robokassa-method.php:967 235 235 msgid "Title" 236 236 msgstr "Название" 237 237 238 #: includes/class-wc-robokassa-method.php: 669238 #: includes/class-wc-robokassa-method.php:969 239 239 msgid "This is the name that the user sees during the payment." 240 240 msgstr "Заголовок, который видит пользователь в процессе оформления заказа." 241 241 242 #: includes/class-wc-robokassa-method.php: 675242 #: includes/class-wc-robokassa-method.php:975 243 243 msgid "Order button text" 244 244 msgstr "Название кнопки оплаты" 245 245 246 #: includes/class-wc-robokassa-method.php: 677246 #: includes/class-wc-robokassa-method.php:977 247 247 msgid "This is the button text that the user sees during the payment." 248 248 msgstr "" … … 250 250 "заказа." 251 251 252 #: includes/class-wc-robokassa-method.php: 678252 #: includes/class-wc-robokassa-method.php:978 253 253 msgid "Goto pay" 254 254 msgstr "Перейти к оплате" 255 255 256 #: includes/class-wc-robokassa-method.php: 683256 #: includes/class-wc-robokassa-method.php:983 257 257 msgid "Description" 258 258 msgstr "Описание" 259 259 260 #: includes/class-wc-robokassa-method.php: 685260 #: includes/class-wc-robokassa-method.php:985 261 261 msgid "" 262 262 "Description of the method of payment that the customer will see on our " … … 264 264 msgstr "Описанием метода оплаты которое клиент будет видеть на вашем сайте." 265 265 266 #: includes/class-wc-robokassa-method.php: 686266 #: includes/class-wc-robokassa-method.php:986 267 267 msgid "Payment via Robokassa." 268 268 msgstr "Оплата через Робокассу." 269 269 270 #: includes/class-wc-robokassa-method.php: 703270 #: includes/class-wc-robokassa-method.php:1003 271 271 msgid "Cart content sending (54fz)" 272 272 msgstr "Отправка данных корзины (54 федеральный закон)" 273 273 274 #: includes/class-wc-robokassa-method.php: 705274 #: includes/class-wc-robokassa-method.php:1005 275 275 msgid "" 276 276 "These settings are required only for legal entities in the absence of its " … … 280 280 "кассового аппарата." 281 281 282 #: includes/class-wc-robokassa-method.php: 710282 #: includes/class-wc-robokassa-method.php:1010 283 283 msgid "The transfer of goods" 284 284 msgstr "Передача товаров" 285 285 286 #: includes/class-wc-robokassa-method.php: 712286 #: includes/class-wc-robokassa-method.php:1012 287 287 msgid "Enable" 288 288 msgstr "Включить" 289 289 290 #: includes/class-wc-robokassa-method.php: 713290 #: includes/class-wc-robokassa-method.php:1013 291 291 msgid "" 292 292 "When you select the option, a check will be generated and sent to the tax " … … 300 300 "Федерации. Возможны расхождения в сумме НДС с суммой, рассчитанной магазином." 301 301 302 #: includes/class-wc-robokassa-method.php: 719302 #: includes/class-wc-robokassa-method.php:1019 303 303 msgid "Taxation system" 304 304 msgstr "Система налогообложения" 305 305 306 #: includes/class-wc-robokassa-method.php: 724306 #: includes/class-wc-robokassa-method.php:1024 307 307 msgid "General" 308 308 msgstr "Общая" 309 309 310 #: includes/class-wc-robokassa-method.php: 725310 #: includes/class-wc-robokassa-method.php:1025 311 311 msgid "Simplified, income" 312 312 msgstr "Упрощенная, доход" 313 313 314 #: includes/class-wc-robokassa-method.php: 726314 #: includes/class-wc-robokassa-method.php:1026 315 315 msgid "Simplified, income minus consumption" 316 316 msgstr "Упрощенная, доход минус расход" 317 317 318 #: includes/class-wc-robokassa-method.php: 727318 #: includes/class-wc-robokassa-method.php:1027 319 319 msgid "Single tax on imputed income" 320 320 msgstr "Единый налог на вмененный доход" 321 321 322 #: includes/class-wc-robokassa-method.php: 728322 #: includes/class-wc-robokassa-method.php:1028 323 323 msgid "Single agricultural tax" 324 324 msgstr "Единый сельскохозяйственный налог" 325 325 326 #: includes/class-wc-robokassa-method.php: 729326 #: includes/class-wc-robokassa-method.php:1029 327 327 msgid "Patent system of taxation" 328 328 msgstr "Патентная система налогообложения" 329 329 330 #: includes/class-wc-robokassa-method.php: 735330 #: includes/class-wc-robokassa-method.php:1035 331 331 msgid "Default VAT rate" 332 332 msgstr "НДС по умолчанию" 333 333 334 #: includes/class-wc-robokassa-method.php: 740334 #: includes/class-wc-robokassa-method.php:1040 335 335 msgid "Without the vat" 336 336 msgstr "Без НДС" 337 337 338 #: includes/class-wc-robokassa-method.php: 741338 #: includes/class-wc-robokassa-method.php:1041 339 339 msgid "VAT 0%" 340 340 msgstr "НДС 0%" 341 341 342 #: includes/class-wc-robokassa-method.php: 742342 #: includes/class-wc-robokassa-method.php:1042 343 343 msgid "VAT 10%" 344 344 msgstr "НДС 10%" 345 345 346 #: includes/class-wc-robokassa-method.php: 743346 #: includes/class-wc-robokassa-method.php:1043 347 347 msgid "VAT 20%" 348 348 msgstr "НДС 20%" 349 349 350 #: includes/class-wc-robokassa-method.php: 744350 #: includes/class-wc-robokassa-method.php:1044 351 351 msgid "VAT receipt settlement rate 10/110" 352 352 msgstr "НДС рассчитанный по ставке 10/110" 353 353 354 #: includes/class-wc-robokassa-method.php: 745354 #: includes/class-wc-robokassa-method.php:1045 355 355 msgid "VAT receipt settlement rate 20/120" 356 356 msgstr "НДС рассчитанный по ставке 20/120" 357 357 358 #: includes/class-wc-robokassa-method.php:751 359 msgid "Признак способа расчёта" 360 msgstr "" 361 362 #: includes/class-wc-robokassa-method.php:752 363 #: includes/class-wc-robokassa-method.php:771 364 msgid "" 365 "Этот параметр необязательный. Если этот параметр не настроен, то в чеке " 366 "будет указано значение параметра по умолчанию из Личного кабинета." 367 msgstr "" 368 369 #: includes/class-wc-robokassa-method.php:757 370 #: includes/class-wc-robokassa-method.php:776 358 #: includes/class-wc-robokassa-method.php:1051 359 msgid "Indication of the calculation method" 360 msgstr "Указание метода расчета" 361 362 #: includes/class-wc-robokassa-method.php:1052 363 #: includes/class-wc-robokassa-method.php:1071 364 msgid "" 365 "The parameter is optional. If this parameter is not configured, the check " 366 "will indicate the default value of the parameter from the Personal account." 367 msgstr "" 368 "Параметр является необязательным. Если этот параметр не настроен, то в чеке " 369 "будет указано значение параметра по умолчанию из личного кабинета." 370 371 #: includes/class-wc-robokassa-method.php:1057 372 #: includes/class-wc-robokassa-method.php:1076 371 373 msgid "Default in Robokassa" 372 374 msgstr "По умолчанию в Робокассе" 373 375 374 #: includes/class-wc-robokassa-method.php: 758375 msgid " Предоплата100%"376 msgstr " "377 378 #: includes/class-wc-robokassa-method.php: 759379 msgid " Частичная предоплата"380 msgstr " "381 382 #: includes/class-wc-robokassa-method.php: 760383 msgid " Аванс"384 msgstr " "385 386 #: includes/class-wc-robokassa-method.php: 761387 msgid " Полный расчет"388 msgstr " "389 390 #: includes/class-wc-robokassa-method.php: 762391 msgid " Частичный расчёт и кредит"392 msgstr " "393 394 #: includes/class-wc-robokassa-method.php: 763395 msgid " Передача в кредит"396 msgstr " "397 398 #: includes/class-wc-robokassa-method.php: 764399 msgid " Оплата кредита"400 msgstr " "401 402 #: includes/class-wc-robokassa-method.php: 770403 msgid " Признак предмета расчёта"404 msgstr " "405 406 #: includes/class-wc-robokassa-method.php: 777407 msgid " Товар"408 msgstr " "409 410 #: includes/class-wc-robokassa-method.php: 778411 msgid " Подакцизный товар"412 msgstr " "413 414 #: includes/class-wc-robokassa-method.php: 779415 msgid " Работа"416 msgstr " "417 418 #: includes/class-wc-robokassa-method.php: 780419 msgid " Услуга"420 msgstr " "421 422 #: includes/class-wc-robokassa-method.php: 781423 msgid " Ставка азартной игры"424 msgstr " "425 426 #: includes/class-wc-robokassa-method.php: 782427 msgid " Выигрыш азартной игры"428 msgstr " "429 430 #: includes/class-wc-robokassa-method.php: 783431 msgid " Лотерейный билет"432 msgstr " "433 434 #: includes/class-wc-robokassa-method.php: 784435 msgid " Выигрыш лотереи"436 msgstr " "437 438 #: includes/class-wc-robokassa-method.php: 785439 msgid " Результаты интеллектуальной деятельности"440 msgstr " "441 442 #: includes/class-wc-robokassa-method.php: 786443 msgid " Платеж"444 msgstr " "445 446 #: includes/class-wc-robokassa-method.php: 787447 msgid " Агентское вознаграждение"448 msgstr " "449 450 #: includes/class-wc-robokassa-method.php: 788451 msgid " Составной предмет расчета"452 msgstr " "453 454 #: includes/class-wc-robokassa-method.php: 789455 msgid " Иной предмет расчета"456 msgstr " "457 458 #: includes/class-wc-robokassa-method.php: 790459 msgid " Имущественное право"460 msgstr " "461 462 #: includes/class-wc-robokassa-method.php: 791463 msgid " Внереализационный доход"464 msgstr " "465 466 #: includes/class-wc-robokassa-method.php: 792467 msgid " Страховые взносы"468 msgstr " "469 470 #: includes/class-wc-robokassa-method.php: 793471 msgid " Торговый сбор"472 msgstr " "473 474 #: includes/class-wc-robokassa-method.php: 794475 msgid " Курортный сбор"476 msgstr " "477 478 #: includes/class-wc-robokassa-method.php: 812376 #: includes/class-wc-robokassa-method.php:1058 377 msgid "Prepayment 100%" 378 msgstr "Предоплата 100%" 379 380 #: includes/class-wc-robokassa-method.php:1059 381 msgid "Partial prepayment" 382 msgstr "Частичная предоплата" 383 384 #: includes/class-wc-robokassa-method.php:1060 385 msgid "Advance" 386 msgstr "Аванс" 387 388 #: includes/class-wc-robokassa-method.php:1061 389 msgid "Full settlement" 390 msgstr "Полная предоплата" 391 392 #: includes/class-wc-robokassa-method.php:1062 393 msgid "Partial settlement and credit" 394 msgstr "Частичный расчет и кредит" 395 396 #: includes/class-wc-robokassa-method.php:1063 397 msgid "Transfer on credit" 398 msgstr "Передача в кредит" 399 400 #: includes/class-wc-robokassa-method.php:1064 401 msgid "Credit payment" 402 msgstr "Платеж по кредиту" 403 404 #: includes/class-wc-robokassa-method.php:1070 405 msgid "Sign of the subject of calculation" 406 msgstr "Признак предмета расчета" 407 408 #: includes/class-wc-robokassa-method.php:1077 409 msgid "Product" 410 msgstr "Товар" 411 412 #: includes/class-wc-robokassa-method.php:1078 413 msgid "Excisable goods" 414 msgstr "Подакцизные товары" 415 416 #: includes/class-wc-robokassa-method.php:1079 417 msgid "Work" 418 msgstr "Работа" 419 420 #: includes/class-wc-robokassa-method.php:1080 421 msgid "Service" 422 msgstr "Услуга" 423 424 #: includes/class-wc-robokassa-method.php:1081 425 msgid "Gambling rate" 426 msgstr "Ставка на азартные игры" 427 428 #: includes/class-wc-robokassa-method.php:1082 429 msgid "Gambling win" 430 msgstr "Выигрыш в азартных играх" 431 432 #: includes/class-wc-robokassa-method.php:1083 433 msgid "Lottery ticket" 434 msgstr "Лотерейный билет" 435 436 #: includes/class-wc-robokassa-method.php:1084 437 msgid "Winning the lottery" 438 msgstr "Выигрыш в лотерею" 439 440 #: includes/class-wc-robokassa-method.php:1085 441 msgid "Results of intellectual activity" 442 msgstr "Результаты интеллектуальной деятельности" 443 444 #: includes/class-wc-robokassa-method.php:1086 445 msgid "Payment" 446 msgstr "Платеж" 447 448 #: includes/class-wc-robokassa-method.php:1087 449 msgid "Agency fee" 450 msgstr "Агентское вознаграждение" 451 452 #: includes/class-wc-robokassa-method.php:1088 453 msgid "Compound subject of calculation" 454 msgstr "Соединение при подсчете" 455 456 #: includes/class-wc-robokassa-method.php:1089 457 msgid "Another object of the calculation" 458 msgstr "Иной предмет расчета" 459 460 #: includes/class-wc-robokassa-method.php:1090 461 msgid "Property right" 462 msgstr "Имущественное право собственности" 463 464 #: includes/class-wc-robokassa-method.php:1091 465 msgid "Extraordinary income" 466 msgstr "Внереализационный доход" 467 468 #: includes/class-wc-robokassa-method.php:1092 469 msgid "Insurance premium" 470 msgstr "Страховая премия" 471 472 #: includes/class-wc-robokassa-method.php:1093 473 msgid "Sales tax" 474 msgstr "Налог с продаж" 475 476 #: includes/class-wc-robokassa-method.php:1094 477 msgid "Resort fee" 478 msgstr "Курортный сбор" 479 480 #: includes/class-wc-robokassa-method.php:1112 479 481 msgid "Technical details" 480 482 msgstr "Технические детали" 481 483 482 #: includes/class-wc-robokassa-method.php: 814484 #: includes/class-wc-robokassa-method.php:1114 483 485 msgid "" 484 486 "Setting technical parameters. Used by technical specialists. Can leave it at " … … 488 490 "Можете оставить все как есть." 489 491 490 #: includes/class-wc-robokassa-method.php: 819492 #: includes/class-wc-robokassa-method.php:1119 491 493 msgid "Enable logging?" 492 494 msgstr "Включить логирование?" 493 495 494 #: includes/class-wc-robokassa-method.php: 821496 #: includes/class-wc-robokassa-method.php:1121 495 497 msgid "" 496 498 "You can enable gateway logging, specify the level of error that you want to " … … 504 506 "По умолчанию, уровень ошибок не должен быть меньше, чем ERROR." 505 507 506 #: includes/class-wc-robokassa-method.php: 887508 #: includes/class-wc-robokassa-method.php:1187 507 509 msgid "Return to payment gateways" 508 510 msgstr "Вернутся к платежным шлюзам" 509 511 510 #: includes/class-wc-robokassa-method.php: 948512 #: includes/class-wc-robokassa-method.php:1248 511 513 msgid "" 512 514 "TEST mode is active. Payment will not be charged. After checking, disable " … … 516 518 "режим." 517 519 518 #: includes/class-wc-robokassa-method.php: 990520 #: includes/class-wc-robokassa-method.php:1292 519 521 msgid "The client started to pay." 520 522 msgstr "Клиент начал оплату." 521 523 522 #: includes/class-wc-robokassa-method.php:1 073524 #: includes/class-wc-robokassa-method.php:1376 523 525 msgid "Order number: " 524 526 msgstr "Номер заказа: " 525 527 526 #: includes/class-wc-robokassa-method.php:1 230528 #: includes/class-wc-robokassa-method.php:1533 527 529 msgid "Delivery" 528 530 msgstr "Доставка" 529 531 530 #: includes/class-wc-robokassa-method.php:1 336532 #: includes/class-wc-robokassa-method.php:1639 531 533 msgid "Pay" 532 534 msgstr "Оплатить" 533 535 534 #: includes/class-wc-robokassa-method.php:1 337536 #: includes/class-wc-robokassa-method.php:1640 535 537 msgid "Cancel & return to cart" 536 538 msgstr "Отменить и вернутся в корзину" 537 539 538 #: includes/class-wc-robokassa-method.php:1 488540 #: includes/class-wc-robokassa-method.php:1791 539 541 msgid "Order not found." 540 542 msgstr "Заказ не найден." 541 543 542 #: includes/class-wc-robokassa-method.php:1 500544 #: includes/class-wc-robokassa-method.php:1805 543 545 #, php-format 544 546 msgid "" … … 547 549 "Запрос от Робокассы принят. Сумма: %1$s Подпись: %2$s Удаленная подпись: %3$s" 548 550 549 #: includes/class-wc-robokassa-method.php:1 522551 #: includes/class-wc-robokassa-method.php:1830 550 552 #, php-format 551 553 msgid "Validate hash error. Local: %1$s Remote: %2$s" 552 554 msgstr "Ошибка валидации хеша. Локальный: %1$s Удаленный: %2$s" 553 555 554 #: includes/class-wc-robokassa-method.php:1 548556 #: includes/class-wc-robokassa-method.php:1859 555 557 msgid "Order successfully paid (TEST MODE)." 556 558 msgstr "Счет успешно оплачен (ТЕСТОВЫЙ ПЛАТЕЖ)" 557 559 558 #: includes/class-wc-robokassa-method.php:1 563560 #: includes/class-wc-robokassa-method.php:1877 559 561 msgid "Order successfully paid." 560 562 msgstr "Счет успешно оплачен." 561 563 562 #: includes/class-wc-robokassa-method.php:1 591564 #: includes/class-wc-robokassa-method.php:1906 563 565 msgid "Payment error, please pay other time." 564 566 msgstr "Ошибка платежа, пожалуйста повторите попытку позже." 565 567 566 #: includes/class-wc-robokassa-method.php:1 601568 #: includes/class-wc-robokassa-method.php:1918 567 569 msgid "Client return to success page." 568 570 msgstr "Клиент вернулся на страницу успешной оплаты." 569 571 570 #: includes/class-wc-robokassa-method.php:1 622572 #: includes/class-wc-robokassa-method.php:1942 571 573 msgid "The order has not been paid." 572 574 msgstr "Счет не был оплачен." 573 575 574 #: includes/class-wc-robokassa-method.php:1 639576 #: includes/class-wc-robokassa-method.php:1960 575 577 msgid "Api request error. Action not found." 576 578 msgstr "Ошибка запроса к API. Действие не найдено." 577 579 578 #: includes/class-wc-robokassa.php:41 3580 #: includes/class-wc-robokassa.php:417 579 581 msgid "Buy Premium addon" 580 582 msgstr "Купить премиум аддон" 581 583 582 #: includes/class-wc-robokassa.php:4 28584 #: includes/class-wc-robokassa.php:432 583 585 msgid "Settings" 584 586 msgstr "Настройки" 585 587 586 #: includes/class-wc-robokassa.php:4 58588 #: includes/class-wc-robokassa.php:462 587 589 msgid "" 588 590 "The plugin for accepting payments through ROBOKASSA for WooCommerce has been " … … 592 594 "версии, требующей дополнительной настройки." 593 595 594 #: includes/class-wc-robokassa.php:46 0596 #: includes/class-wc-robokassa.php:464 595 597 msgid "here" 596 598 msgstr "сюда" 597 599 598 #: includes/class-wc-robokassa.php:46 1600 #: includes/class-wc-robokassa.php:465 599 601 #, php-format 600 602 msgid "Press %s (to go to payment gateway settings)." 601 msgstr " Press %s (to go to payment gateway settings)."602 603 #: includes/class-wc-robokassa.php:5 66603 msgstr "Нажмите %s (для перехода к настройкам платежного шлюза)." 604 605 #: includes/class-wc-robokassa.php:570 604 606 msgid "Useful information" 605 607 msgstr "Полезная информация" 606 608 607 #: includes/class-wc-robokassa.php:5 69 includes/class-wc-robokassa.php:591609 #: includes/class-wc-robokassa.php:573 includes/class-wc-robokassa.php:595 608 610 msgid "Official plugin page" 609 611 msgstr "Официальная страница" 610 612 611 #: includes/class-wc-robokassa.php:57 0613 #: includes/class-wc-robokassa.php:574 612 614 msgid "Related news: ROBOKASSA" 613 615 msgstr "Новости по теме Робокасса" 614 616 615 #: includes/class-wc-robokassa.php:57 1617 #: includes/class-wc-robokassa.php:575 616 618 msgid "Plugins for WooCommerce" 617 619 msgstr "Плагины для WooCommerce" 618 620 619 #: includes/class-wc-robokassa.php:57 2621 #: includes/class-wc-robokassa.php:576 620 622 msgid "Feedback to author" 621 623 msgstr "Связь с автором" 622 624 623 #: includes/class-wc-robokassa.php:58 4625 #: includes/class-wc-robokassa.php:588 624 626 msgid "Paid supplement" 625 627 msgstr "Платное дополнение" 626 628 627 #: includes/class-wc-robokassa.php:5 89629 #: includes/class-wc-robokassa.php:593 628 630 msgid "Even more opportunities to accept payments. Increase conversion." 629 631 msgstr "Еще больше возможностей принимать платежи. Увеличьте конверсию." -
wc-robokassa/trunk/languages/wc-robokassa.pot
r2168628 r2200862 4 4 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 5 5 "Project-Id-Version: Robokassa - Payment gateway for WooCommerce\n" 6 "POT-Creation-Date: 2019-1 0-05 08:53+0300\n"6 "POT-Creation-Date: 2019-11-25 16:06+0300\n" 7 7 "PO-Revision-Date: 2016-01-10 16:41+0300\n" 8 8 "Last-Translator: Mofsy <ru.mofsy@yandex.ru>\n" … … 22 22 23 23 #: includes/class-wc-robokassa-method.php:134 24 #: includes/class-wc-robokassa-method.php: 67024 #: includes/class-wc-robokassa-method.php:970 25 25 msgid "Robokassa" 26 26 msgstr "" … … 30 30 msgstr "" 31 31 32 #: includes/class-wc-robokassa-method.php: 45932 #: includes/class-wc-robokassa-method.php:759 33 33 msgid "Main settings" 34 34 msgstr "" 35 35 36 #: includes/class-wc-robokassa-method.php: 46136 #: includes/class-wc-robokassa-method.php:761 37 37 msgid "Work is impossible without these settings." 38 38 msgstr "" 39 39 40 #: includes/class-wc-robokassa-method.php: 46640 #: includes/class-wc-robokassa-method.php:766 41 41 msgid "Online / Offline gateway" 42 42 msgstr "" 43 43 44 #: includes/class-wc-robokassa-method.php: 46844 #: includes/class-wc-robokassa-method.php:768 45 45 msgid "Enable display of the payment gateway on the website" 46 46 msgstr "" 47 47 48 #: includes/class-wc-robokassa-method.php: 47548 #: includes/class-wc-robokassa-method.php:775 49 49 msgid "Shop identifier" 50 50 msgstr "" 51 51 52 #: includes/class-wc-robokassa-method.php: 47752 #: includes/class-wc-robokassa-method.php:777 53 53 msgid "Unique identification for shop from Robokassa." 54 54 msgstr "" 55 55 56 #: includes/class-wc-robokassa-method.php: 48357 #: includes/class-wc-robokassa-method.php: 58156 #: includes/class-wc-robokassa-method.php:783 57 #: includes/class-wc-robokassa-method.php:881 58 58 msgid "Hash calculation algorithm" 59 59 msgstr "" 60 60 61 #: includes/class-wc-robokassa-method.php: 48462 #: includes/class-wc-robokassa-method.php: 58261 #: includes/class-wc-robokassa-method.php:784 62 #: includes/class-wc-robokassa-method.php:882 63 63 msgid "" 64 64 "The algorithm must match the one specified in the personal account of " … … 66 66 msgstr "" 67 67 68 #: includes/class-wc-robokassa-method.php: 50069 #: includes/class-wc-robokassa-method.php: 59868 #: includes/class-wc-robokassa-method.php:800 69 #: includes/class-wc-robokassa-method.php:898 70 70 msgid "Password #1" 71 71 msgstr "" 72 72 73 #: includes/class-wc-robokassa-method.php: 50273 #: includes/class-wc-robokassa-method.php:802 74 74 msgid "" 75 75 "Please write Shop pass 1. The pass must match the one specified in the " … … 77 77 msgstr "" 78 78 79 #: includes/class-wc-robokassa-method.php: 50880 #: includes/class-wc-robokassa-method.php: 60679 #: includes/class-wc-robokassa-method.php:808 80 #: includes/class-wc-robokassa-method.php:906 81 81 msgid "Password #2" 82 82 msgstr "" 83 83 84 #: includes/class-wc-robokassa-method.php: 51084 #: includes/class-wc-robokassa-method.php:810 85 85 msgid "" 86 86 "Please write Shop pass 2. The pass must match the one specified in the " … … 88 88 msgstr "" 89 89 90 #: includes/class-wc-robokassa-method.php: 51490 #: includes/class-wc-robokassa-method.php:814 91 91 msgid "" 92 92 "Address to notify the site of the results of operations in the background. " … … 95 95 msgstr "" 96 96 97 #: includes/class-wc-robokassa-method.php: 51897 #: includes/class-wc-robokassa-method.php:818 98 98 msgid "Result Url" 99 99 msgstr "" 100 100 101 #: includes/class-wc-robokassa-method.php: 525101 #: includes/class-wc-robokassa-method.php:825 102 102 msgid "" 103 103 "The address for the user to go to the site after successful payment. Copy " … … 107 107 msgstr "" 108 108 109 #: includes/class-wc-robokassa-method.php: 529109 #: includes/class-wc-robokassa-method.php:829 110 110 msgid "Success Url" 111 111 msgstr "" 112 112 113 #: includes/class-wc-robokassa-method.php: 536113 #: includes/class-wc-robokassa-method.php:836 114 114 msgid "" 115 115 "The address for the user to go to the site, after payment with an error. " … … 119 119 msgstr "" 120 120 121 #: includes/class-wc-robokassa-method.php: 540121 #: includes/class-wc-robokassa-method.php:840 122 122 msgid "Fail Url" 123 123 msgstr "" 124 124 125 #: includes/class-wc-robokassa-method.php: 561125 #: includes/class-wc-robokassa-method.php:861 126 126 msgid "Parameters of the test fees" 127 127 msgstr "" 128 128 129 #: includes/class-wc-robokassa-method.php: 563129 #: includes/class-wc-robokassa-method.php:863 130 130 msgid "" 131 131 "Set up test payments. Passwords and counting method signature for test " … … 133 133 msgstr "" 134 134 135 #: includes/class-wc-robokassa-method.php: 568135 #: includes/class-wc-robokassa-method.php:868 136 136 msgid "Test mode" 137 137 msgstr "" 138 138 139 #: includes/class-wc-robokassa-method.php: 570139 #: includes/class-wc-robokassa-method.php:870 140 140 msgid "Activate testing mode for admins." 141 141 msgstr "" 142 142 143 #: includes/class-wc-robokassa-method.php: 574144 #: includes/class-wc-robokassa-method.php: 825143 #: includes/class-wc-robokassa-method.php:874 144 #: includes/class-wc-robokassa-method.php:1125 145 145 msgid "Off" 146 146 msgstr "" 147 147 148 #: includes/class-wc-robokassa-method.php: 575148 #: includes/class-wc-robokassa-method.php:875 149 149 msgid "On" 150 150 msgstr "" 151 151 152 #: includes/class-wc-robokassa-method.php: 600152 #: includes/class-wc-robokassa-method.php:900 153 153 msgid "" 154 154 "Please write Shop pass 1 for testing payments. The pass must match the one " … … 156 156 msgstr "" 157 157 158 #: includes/class-wc-robokassa-method.php: 608158 #: includes/class-wc-robokassa-method.php:908 159 159 msgid "" 160 160 "Please write Shop pass 2 for testing payments. The pass must match the one " … … 162 162 msgstr "" 163 163 164 #: includes/class-wc-robokassa-method.php: 626164 #: includes/class-wc-robokassa-method.php:926 165 165 msgid "Interface" 166 166 msgstr "" 167 167 168 #: includes/class-wc-robokassa-method.php: 628168 #: includes/class-wc-robokassa-method.php:928 169 169 msgid "Customize the appearance. Can leave it at that." 170 170 msgstr "" 171 171 172 #: includes/class-wc-robokassa-method.php: 633172 #: includes/class-wc-robokassa-method.php:933 173 173 msgid "Show gateway icon?" 174 174 msgstr "" 175 175 176 #: includes/class-wc-robokassa-method.php: 635176 #: includes/class-wc-robokassa-method.php:935 177 177 msgid "Show" 178 178 msgstr "" 179 179 180 #: includes/class-wc-robokassa-method.php: 641180 #: includes/class-wc-robokassa-method.php:941 181 181 msgid "Language interface" 182 182 msgstr "" 183 183 184 #: includes/class-wc-robokassa-method.php: 645184 #: includes/class-wc-robokassa-method.php:945 185 185 msgid "Russian" 186 186 msgstr "" 187 187 188 #: includes/class-wc-robokassa-method.php: 646188 #: includes/class-wc-robokassa-method.php:946 189 189 msgid "English" 190 190 msgstr "" 191 191 192 #: includes/class-wc-robokassa-method.php: 648192 #: includes/class-wc-robokassa-method.php:948 193 193 msgid "What language interface displayed for the customer on Robokassa?" 194 194 msgstr "" 195 195 196 #: includes/class-wc-robokassa-method.php: 654196 #: includes/class-wc-robokassa-method.php:954 197 197 msgid "Language based on the locale?" 198 198 msgstr "" 199 199 200 #: includes/class-wc-robokassa-method.php: 658200 #: includes/class-wc-robokassa-method.php:958 201 201 msgid "Yes" 202 202 msgstr "" 203 203 204 #: includes/class-wc-robokassa-method.php: 659204 #: includes/class-wc-robokassa-method.php:959 205 205 msgid "No" 206 206 msgstr "" 207 207 208 #: includes/class-wc-robokassa-method.php: 661208 #: includes/class-wc-robokassa-method.php:961 209 209 msgid "Trying to get the language based on the locale?" 210 210 msgstr "" 211 211 212 #: includes/class-wc-robokassa-method.php: 667212 #: includes/class-wc-robokassa-method.php:967 213 213 msgid "Title" 214 214 msgstr "" 215 215 216 #: includes/class-wc-robokassa-method.php: 669216 #: includes/class-wc-robokassa-method.php:969 217 217 msgid "This is the name that the user sees during the payment." 218 218 msgstr "" 219 219 220 #: includes/class-wc-robokassa-method.php: 675220 #: includes/class-wc-robokassa-method.php:975 221 221 msgid "Order button text" 222 222 msgstr "" 223 223 224 #: includes/class-wc-robokassa-method.php: 677224 #: includes/class-wc-robokassa-method.php:977 225 225 msgid "This is the button text that the user sees during the payment." 226 226 msgstr "" 227 227 228 #: includes/class-wc-robokassa-method.php: 678228 #: includes/class-wc-robokassa-method.php:978 229 229 msgid "Goto pay" 230 230 msgstr "" 231 231 232 #: includes/class-wc-robokassa-method.php: 683232 #: includes/class-wc-robokassa-method.php:983 233 233 msgid "Description" 234 234 msgstr "" 235 235 236 #: includes/class-wc-robokassa-method.php: 685236 #: includes/class-wc-robokassa-method.php:985 237 237 msgid "" 238 238 "Description of the method of payment that the customer will see on our " … … 240 240 msgstr "" 241 241 242 #: includes/class-wc-robokassa-method.php: 686242 #: includes/class-wc-robokassa-method.php:986 243 243 msgid "Payment via Robokassa." 244 244 msgstr "" 245 245 246 #: includes/class-wc-robokassa-method.php: 703246 #: includes/class-wc-robokassa-method.php:1003 247 247 msgid "Cart content sending (54fz)" 248 248 msgstr "" 249 249 250 #: includes/class-wc-robokassa-method.php: 705250 #: includes/class-wc-robokassa-method.php:1005 251 251 msgid "" 252 252 "These settings are required only for legal entities in the absence of its " … … 254 254 msgstr "" 255 255 256 #: includes/class-wc-robokassa-method.php: 710256 #: includes/class-wc-robokassa-method.php:1010 257 257 msgid "The transfer of goods" 258 258 msgstr "" 259 259 260 #: includes/class-wc-robokassa-method.php: 712260 #: includes/class-wc-robokassa-method.php:1012 261 261 msgid "Enable" 262 262 msgstr "" 263 263 264 #: includes/class-wc-robokassa-method.php: 713264 #: includes/class-wc-robokassa-method.php:1013 265 265 msgid "" 266 266 "When you select the option, a check will be generated and sent to the tax " … … 271 271 msgstr "" 272 272 273 #: includes/class-wc-robokassa-method.php: 719273 #: includes/class-wc-robokassa-method.php:1019 274 274 msgid "Taxation system" 275 275 msgstr "" 276 276 277 #: includes/class-wc-robokassa-method.php: 724277 #: includes/class-wc-robokassa-method.php:1024 278 278 msgid "General" 279 279 msgstr "" 280 280 281 #: includes/class-wc-robokassa-method.php: 725281 #: includes/class-wc-robokassa-method.php:1025 282 282 msgid "Simplified, income" 283 283 msgstr "" 284 284 285 #: includes/class-wc-robokassa-method.php: 726285 #: includes/class-wc-robokassa-method.php:1026 286 286 msgid "Simplified, income minus consumption" 287 287 msgstr "" 288 288 289 #: includes/class-wc-robokassa-method.php: 727289 #: includes/class-wc-robokassa-method.php:1027 290 290 msgid "Single tax on imputed income" 291 291 msgstr "" 292 292 293 #: includes/class-wc-robokassa-method.php: 728293 #: includes/class-wc-robokassa-method.php:1028 294 294 msgid "Single agricultural tax" 295 295 msgstr "" 296 296 297 #: includes/class-wc-robokassa-method.php: 729297 #: includes/class-wc-robokassa-method.php:1029 298 298 msgid "Patent system of taxation" 299 299 msgstr "" 300 300 301 #: includes/class-wc-robokassa-method.php: 735301 #: includes/class-wc-robokassa-method.php:1035 302 302 msgid "Default VAT rate" 303 303 msgstr "" 304 304 305 #: includes/class-wc-robokassa-method.php: 740305 #: includes/class-wc-robokassa-method.php:1040 306 306 msgid "Without the vat" 307 307 msgstr "" 308 308 309 #: includes/class-wc-robokassa-method.php: 741309 #: includes/class-wc-robokassa-method.php:1041 310 310 msgid "VAT 0%" 311 311 msgstr "" 312 312 313 #: includes/class-wc-robokassa-method.php: 742313 #: includes/class-wc-robokassa-method.php:1042 314 314 msgid "VAT 10%" 315 315 msgstr "" 316 316 317 #: includes/class-wc-robokassa-method.php: 743317 #: includes/class-wc-robokassa-method.php:1043 318 318 msgid "VAT 20%" 319 319 msgstr "" 320 320 321 #: includes/class-wc-robokassa-method.php: 744321 #: includes/class-wc-robokassa-method.php:1044 322 322 msgid "VAT receipt settlement rate 10/110" 323 323 msgstr "" 324 324 325 #: includes/class-wc-robokassa-method.php: 745325 #: includes/class-wc-robokassa-method.php:1045 326 326 msgid "VAT receipt settlement rate 20/120" 327 327 msgstr "" 328 328 329 #: includes/class-wc-robokassa-method.php: 751330 msgid " Признак способа расчёта"331 msgstr "" 332 333 #: includes/class-wc-robokassa-method.php: 752334 #: includes/class-wc-robokassa-method.php: 771335 msgid "" 336 " Этот параметр необязательный. Если этот параметр не настроен, то в чеке"337 " будет указано значение параметра по умолчанию из Личного кабинета."338 msgstr "" 339 340 #: includes/class-wc-robokassa-method.php: 757341 #: includes/class-wc-robokassa-method.php: 776329 #: includes/class-wc-robokassa-method.php:1051 330 msgid "Indication of the calculation method" 331 msgstr "" 332 333 #: includes/class-wc-robokassa-method.php:1052 334 #: includes/class-wc-robokassa-method.php:1071 335 msgid "" 336 "The parameter is optional. If this parameter is not configured, the check " 337 "will indicate the default value of the parameter from the Personal account." 338 msgstr "" 339 340 #: includes/class-wc-robokassa-method.php:1057 341 #: includes/class-wc-robokassa-method.php:1076 342 342 msgid "Default in Robokassa" 343 343 msgstr "" 344 344 345 #: includes/class-wc-robokassa-method.php: 758346 msgid " Предоплата100%"347 msgstr "" 348 349 #: includes/class-wc-robokassa-method.php: 759350 msgid " Частичная предоплата"351 msgstr "" 352 353 #: includes/class-wc-robokassa-method.php: 760354 msgid " Аванс"355 msgstr "" 356 357 #: includes/class-wc-robokassa-method.php: 761358 msgid " Полный расчет"359 msgstr "" 360 361 #: includes/class-wc-robokassa-method.php: 762362 msgid " Частичный расчёт и кредит"363 msgstr "" 364 365 #: includes/class-wc-robokassa-method.php: 763366 msgid " Передача в кредит"367 msgstr "" 368 369 #: includes/class-wc-robokassa-method.php: 764370 msgid " Оплата кредита"371 msgstr "" 372 373 #: includes/class-wc-robokassa-method.php: 770374 msgid " Признак предмета расчёта"375 msgstr "" 376 377 #: includes/class-wc-robokassa-method.php: 777378 msgid " Товар"379 msgstr "" 380 381 #: includes/class-wc-robokassa-method.php: 778382 msgid " Подакцизный товар"383 msgstr "" 384 385 #: includes/class-wc-robokassa-method.php: 779386 msgid " Работа"387 msgstr "" 388 389 #: includes/class-wc-robokassa-method.php: 780390 msgid " Услуга"391 msgstr "" 392 393 #: includes/class-wc-robokassa-method.php: 781394 msgid " Ставка азартной игры"395 msgstr "" 396 397 #: includes/class-wc-robokassa-method.php: 782398 msgid " Выигрыш азартной игры"399 msgstr "" 400 401 #: includes/class-wc-robokassa-method.php: 783402 msgid " Лотерейный билет"403 msgstr "" 404 405 #: includes/class-wc-robokassa-method.php: 784406 msgid " Выигрыш лотереи"407 msgstr "" 408 409 #: includes/class-wc-robokassa-method.php: 785410 msgid " Результаты интеллектуальной деятельности"411 msgstr "" 412 413 #: includes/class-wc-robokassa-method.php: 786414 msgid " Платеж"415 msgstr "" 416 417 #: includes/class-wc-robokassa-method.php: 787418 msgid " Агентское вознаграждение"419 msgstr "" 420 421 #: includes/class-wc-robokassa-method.php: 788422 msgid " Составной предмет расчета"423 msgstr "" 424 425 #: includes/class-wc-robokassa-method.php: 789426 msgid " Иной предмет расчета"427 msgstr "" 428 429 #: includes/class-wc-robokassa-method.php: 790430 msgid " Имущественное право"431 msgstr "" 432 433 #: includes/class-wc-robokassa-method.php: 791434 msgid " Внереализационный доход"435 msgstr "" 436 437 #: includes/class-wc-robokassa-method.php: 792438 msgid " Страховые взносы"439 msgstr "" 440 441 #: includes/class-wc-robokassa-method.php: 793442 msgid " Торговый сбор"443 msgstr "" 444 445 #: includes/class-wc-robokassa-method.php: 794446 msgid " Курортный сбор"447 msgstr "" 448 449 #: includes/class-wc-robokassa-method.php: 812345 #: includes/class-wc-robokassa-method.php:1058 346 msgid "Prepayment 100%" 347 msgstr "" 348 349 #: includes/class-wc-robokassa-method.php:1059 350 msgid "Partial prepayment" 351 msgstr "" 352 353 #: includes/class-wc-robokassa-method.php:1060 354 msgid "Advance" 355 msgstr "" 356 357 #: includes/class-wc-robokassa-method.php:1061 358 msgid "Full settlement" 359 msgstr "" 360 361 #: includes/class-wc-robokassa-method.php:1062 362 msgid "Partial settlement and credit" 363 msgstr "" 364 365 #: includes/class-wc-robokassa-method.php:1063 366 msgid "Transfer on credit" 367 msgstr "" 368 369 #: includes/class-wc-robokassa-method.php:1064 370 msgid "Credit payment" 371 msgstr "" 372 373 #: includes/class-wc-robokassa-method.php:1070 374 msgid "Sign of the subject of calculation" 375 msgstr "" 376 377 #: includes/class-wc-robokassa-method.php:1077 378 msgid "Product" 379 msgstr "" 380 381 #: includes/class-wc-robokassa-method.php:1078 382 msgid "Excisable goods" 383 msgstr "" 384 385 #: includes/class-wc-robokassa-method.php:1079 386 msgid "Work" 387 msgstr "" 388 389 #: includes/class-wc-robokassa-method.php:1080 390 msgid "Service" 391 msgstr "" 392 393 #: includes/class-wc-robokassa-method.php:1081 394 msgid "Gambling rate" 395 msgstr "" 396 397 #: includes/class-wc-robokassa-method.php:1082 398 msgid "Gambling win" 399 msgstr "" 400 401 #: includes/class-wc-robokassa-method.php:1083 402 msgid "Lottery ticket" 403 msgstr "" 404 405 #: includes/class-wc-robokassa-method.php:1084 406 msgid "Winning the lottery" 407 msgstr "" 408 409 #: includes/class-wc-robokassa-method.php:1085 410 msgid "Results of intellectual activity" 411 msgstr "" 412 413 #: includes/class-wc-robokassa-method.php:1086 414 msgid "Payment" 415 msgstr "" 416 417 #: includes/class-wc-robokassa-method.php:1087 418 msgid "Agency fee" 419 msgstr "" 420 421 #: includes/class-wc-robokassa-method.php:1088 422 msgid "Compound subject of calculation" 423 msgstr "" 424 425 #: includes/class-wc-robokassa-method.php:1089 426 msgid "Another object of the calculation" 427 msgstr "" 428 429 #: includes/class-wc-robokassa-method.php:1090 430 msgid "Property right" 431 msgstr "" 432 433 #: includes/class-wc-robokassa-method.php:1091 434 msgid "Extraordinary income" 435 msgstr "" 436 437 #: includes/class-wc-robokassa-method.php:1092 438 msgid "Insurance premium" 439 msgstr "" 440 441 #: includes/class-wc-robokassa-method.php:1093 442 msgid "Sales tax" 443 msgstr "" 444 445 #: includes/class-wc-robokassa-method.php:1094 446 msgid "Resort fee" 447 msgstr "" 448 449 #: includes/class-wc-robokassa-method.php:1112 450 450 msgid "Technical details" 451 451 msgstr "" 452 452 453 #: includes/class-wc-robokassa-method.php: 814453 #: includes/class-wc-robokassa-method.php:1114 454 454 msgid "" 455 455 "Setting technical parameters. Used by technical specialists. Can leave it " … … 457 457 msgstr "" 458 458 459 #: includes/class-wc-robokassa-method.php: 819459 #: includes/class-wc-robokassa-method.php:1119 460 460 msgid "Enable logging?" 461 461 msgstr "" 462 462 463 #: includes/class-wc-robokassa-method.php: 821463 #: includes/class-wc-robokassa-method.php:1121 464 464 msgid "" 465 465 "You can enable gateway logging, specify the level of error that you want " … … 469 469 msgstr "" 470 470 471 #: includes/class-wc-robokassa-method.php: 887471 #: includes/class-wc-robokassa-method.php:1187 472 472 msgid "Return to payment gateways" 473 473 msgstr "" 474 474 475 #: includes/class-wc-robokassa-method.php: 948475 #: includes/class-wc-robokassa-method.php:1248 476 476 msgid "" 477 477 "TEST mode is active. Payment will not be charged. After checking, disable " … … 479 479 msgstr "" 480 480 481 #: includes/class-wc-robokassa-method.php: 990481 #: includes/class-wc-robokassa-method.php:1292 482 482 msgid "The client started to pay." 483 483 msgstr "" 484 484 485 #: includes/class-wc-robokassa-method.php:1 073485 #: includes/class-wc-robokassa-method.php:1376 486 486 msgid "Order number: " 487 487 msgstr "" 488 488 489 #: includes/class-wc-robokassa-method.php:1 230489 #: includes/class-wc-robokassa-method.php:1533 490 490 msgid "Delivery" 491 491 msgstr "" 492 492 493 #: includes/class-wc-robokassa-method.php:1 336493 #: includes/class-wc-robokassa-method.php:1639 494 494 msgid "Pay" 495 495 msgstr "" 496 496 497 #: includes/class-wc-robokassa-method.php:1 337497 #: includes/class-wc-robokassa-method.php:1640 498 498 msgid "Cancel & return to cart" 499 499 msgstr "" 500 500 501 #: includes/class-wc-robokassa-method.php:1 488501 #: includes/class-wc-robokassa-method.php:1791 502 502 msgid "Order not found." 503 503 msgstr "" 504 504 505 #: includes/class-wc-robokassa-method.php:1 500505 #: includes/class-wc-robokassa-method.php:1805 506 506 #, php-format 507 507 msgid "" … … 509 509 msgstr "" 510 510 511 #: includes/class-wc-robokassa-method.php:1 522511 #: includes/class-wc-robokassa-method.php:1830 512 512 #, php-format 513 513 msgid "Validate hash error. Local: %1$s Remote: %2$s" 514 514 msgstr "" 515 515 516 #: includes/class-wc-robokassa-method.php:1 548516 #: includes/class-wc-robokassa-method.php:1859 517 517 msgid "Order successfully paid (TEST MODE)." 518 518 msgstr "" 519 519 520 #: includes/class-wc-robokassa-method.php:1 563520 #: includes/class-wc-robokassa-method.php:1877 521 521 msgid "Order successfully paid." 522 522 msgstr "" 523 523 524 #: includes/class-wc-robokassa-method.php:1 591524 #: includes/class-wc-robokassa-method.php:1906 525 525 msgid "Payment error, please pay other time." 526 526 msgstr "" 527 527 528 #: includes/class-wc-robokassa-method.php:1 601528 #: includes/class-wc-robokassa-method.php:1918 529 529 msgid "Client return to success page." 530 530 msgstr "" 531 531 532 #: includes/class-wc-robokassa-method.php:1 622532 #: includes/class-wc-robokassa-method.php:1942 533 533 msgid "The order has not been paid." 534 534 msgstr "" 535 535 536 #: includes/class-wc-robokassa-method.php:1 639536 #: includes/class-wc-robokassa-method.php:1960 537 537 msgid "Api request error. Action not found." 538 538 msgstr "" 539 539 540 #: includes/class-wc-robokassa.php:41 3540 #: includes/class-wc-robokassa.php:417 541 541 msgid "Buy Premium addon" 542 542 msgstr "" 543 543 544 #: includes/class-wc-robokassa.php:4 28544 #: includes/class-wc-robokassa.php:432 545 545 msgid "Settings" 546 546 msgstr "" 547 547 548 #: includes/class-wc-robokassa.php:4 58548 #: includes/class-wc-robokassa.php:462 549 549 msgid "" 550 550 "The plugin for accepting payments through ROBOKASSA for WooCommerce has " … … 552 552 msgstr "" 553 553 554 #: includes/class-wc-robokassa.php:46 0554 #: includes/class-wc-robokassa.php:464 555 555 msgid "here" 556 556 msgstr "" 557 557 558 #: includes/class-wc-robokassa.php:46 1558 #: includes/class-wc-robokassa.php:465 559 559 #, php-format 560 560 msgid "Press %s (to go to payment gateway settings)." 561 561 msgstr "" 562 562 563 #: includes/class-wc-robokassa.php:5 66563 #: includes/class-wc-robokassa.php:570 564 564 msgid "Useful information" 565 565 msgstr "" 566 566 567 #: includes/class-wc-robokassa.php:5 69 includes/class-wc-robokassa.php:591567 #: includes/class-wc-robokassa.php:573 includes/class-wc-robokassa.php:595 568 568 msgid "Official plugin page" 569 569 msgstr "" 570 570 571 #: includes/class-wc-robokassa.php:57 0571 #: includes/class-wc-robokassa.php:574 572 572 msgid "Related news: ROBOKASSA" 573 573 msgstr "" 574 574 575 #: includes/class-wc-robokassa.php:57 1575 #: includes/class-wc-robokassa.php:575 576 576 msgid "Plugins for WooCommerce" 577 577 msgstr "" 578 578 579 #: includes/class-wc-robokassa.php:57 2579 #: includes/class-wc-robokassa.php:576 580 580 msgid "Feedback to author" 581 581 msgstr "" 582 582 583 #: includes/class-wc-robokassa.php:58 4583 #: includes/class-wc-robokassa.php:588 584 584 msgid "Paid supplement" 585 585 msgstr "" 586 586 587 #: includes/class-wc-robokassa.php:5 89587 #: includes/class-wc-robokassa.php:593 588 588 msgid "Even more opportunities to accept payments. Increase conversion." 589 589 msgstr "" -
wc-robokassa/trunk/readme.txt
r2188746 r2200862 42 42 * Russian - always included 43 43 44 *Note:* All my plugins are localized/ translateable by default. This is very important for all users worldwide.45 So please contribute your language to the plugin to make it even more useful. For translating I recommend the awesome for validating the ["Poedit Editor"](http://www.poedit.net/).46 47 44 == Installation == 48 45 1. Archive extract and upload "wc-robokassa" to /wp-content/plugins … … 51 48 52 49 == Changelog == 50 51 = 2.2.0.1 = 52 * API: simplexml, dom 53 * Fix: language files 54 * More fix 53 55 54 56 = 2.0.1.2 = -
wc-robokassa/trunk/wc-robokassa.php
r2188746 r2200862 4 4 Plugin URI: https://mofsy.ru/projects/wc-robokassa 5 5 Description: Allows you to use Robokassa with the WooCommerce as payment gateway plugin. 6 Version: 2. 0.1.26 Version: 2.2.0.1 7 7 WC requires at least: 3.0 8 8 WC tested up to: 3.8
Note: See TracChangeset
for help on using the changeset viewer.