{"id":369,"date":"2023-07-05T23:51:56","date_gmt":"2023-07-05T21:51:56","guid":{"rendered":"https:\/\/ibanka.mk\/?page_id=369"},"modified":"2023-07-11T23:31:52","modified_gmt":"2023-07-11T21:31:52","slug":"plati-smetka","status":"publish","type":"page","link":"https:\/\/ibanka.mk\/?page_id=369","title":{"rendered":"\u041f\u043b\u0430\u0442\u0438 \u0421\u043c\u0435\u0442\u043a\u0430"},"content":{"rendered":"<p><script src=\"js\/md5.js\"><\/script><\/p>\n<form action=\"https:\/\/www.cpay.com.mk\/client\/Page\/default.aspx?xml_id=\/mk-MK\/.loginToPay\/.simple\/\" method=\"post\"><!-- Payment Portal to Post --><br \/>\n<b>\u0418\u0437\u043d\u043e\u0441 \u043a\u043e\u0458 \u0433\u043e \u043f\u043b\u0430\u045c\u0430\u0442\u0435:<\/b> <input id=\"AmountToPay2\" name=\"AmountToPay2\" value=\"\" oninput=\"myFunction()\" required=\"\" type=\"number\"><!-- Amount to pay multiplied by 100 - without decimal and separators, i.e. amount 1,00 will be value 100--><\/p>\n<p><b>\u0411\u0440\u043e\u0458 \u043d\u0430 \u0444\u0430\u043a\u0442\u0443\u0440\u0430: <\/b> <input id=\"Details2\" name=\"Details2\" value=\"\" oninput=\"myFunction()\" required=\"\"><!-- Merchant specific details (OrderID - unique for each payment)--><\/p>\n<p><input class=\"button\" value=\"\u041f\u041b\u0410\u0422\u0418\" type=\"submit\" style=\"min-width: 150px;min-height: 42px;font-size: 18px;\"><br \/>\n<\/p>\n<p style=\"font-size: 15px;\"><strong>\u0421\u043e \u043f\u0440\u0438\u0442\u0438\u0441\u043a\u0430\u045a\u0435 \u043d\u0430 \u043a\u043e\u043f\u0447\u0435\u0442\u043e \u043f\u043b\u0430\u0442\u0438, \u045c\u0435 \u0431\u0438\u0434\u0435\u0442\u0435 \u043f\u0440\u0435\u0444\u0440\u043b\u0435\u043d\u0438 \u043d\u0430 \u0431\u0435\u0437\u0431\u0435\u0434\u043d\u0430 \u0438 \u0441\u0438\u0433\u0443\u0440\u043d\u0430 \u0444\u043e\u0440\u043c\u0430 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0430 \u043e\u0434 \u0431\u0430\u043d\u043a\u0430\u0442\u0430 \u043a\u0430\u0434\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0430 \u0433\u0438 \u0432\u043d\u0435\u0441\u0438\u0442\u0435 \u043f\u043e\u0434\u0430\u0442\u043e\u0446\u0438\u0442\u0435 \u043e\u0434 \u0432\u0430\u0448\u0430\u0442\u0430 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u0447\u043a\u0430.\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043b\u0430\u045c\u0430\u045a\u0435, \u045c\u0435 \u0431\u0438\u0434\u0435\u0442\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0432\u0440\u0430\u0442\u0435\u043d\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u0442\u0430 \u043d\u0430 iBanka.mk<\/strong><\/p>\n<p><input id=\"AllValuesByOrder\" size=\"10\" type=\"hidden\"><br \/>\n<input id=\"count\" type=\"hidden\"><br \/>\n<input id=\"AmountToPay\" name=\"AmountToPay\" type=\"hidden\"><br \/>\n<input id=\"PayToMerchant\" name=\"PayToMerchant\" value=\"1000002140\" type=\"hidden\">\t\t<!-- DO NOT CHANGE! Merchant ID - assigned manually for the time being --><br \/>\n<input id=\"MerchantName\" name=\"MerchantName\" value=\"FIBERHOST DOOEL\" type=\"hidden\"> <!-- DO NOT CHANGE! Merchant name --><br \/>\n<input id=\"AmountCurrency\" name=\"AmountCurrency\" value=\"MKD\" type=\"hidden\"><!-- DO NOT CHANGE! Currency of payment --><br \/>\n<input id=\"Details1\" name=\"Details1\" value=\"OnlinePayment\" type=\"hidden\"><!--Userfriendly details of payment--><\/p>\n<p>\n<input id=\"PaymentOKURL\" size=\"10\" name=\"PaymentOKURL\" value=\"https:\/\/ibanka.mk\/?page_id=196\" type=\"hidden\"><!-- Merchant PaymentSentOK redirect URL--><br \/>\n<input id=\"PaymentFailURL\" size=\"10\" name=\"PaymentFailURL\" value=\"https:\/\/ibanka.mk\/?page_id=249\" type=\"hidden\"><!-- Merchant PaymentFailed redirect URL--><br \/>\n<br \/>\n<input id=\"CheckSumHeader\" style=\"width: 100%;\" name=\"CheckSumHeader\" value=\"10AmountToPay,PayToMerchant,MerchantName,AmountCurrency,Details1,Details2,PaymentOKURL,PaymentFailURL,OriginalAmount,OriginalCurrency,\" type=\"hidden\"><br \/>\n<br \/>\n<input id=\"MD5Content\" type=\"hidden\"><br \/>\n<!-- CheckSum header should contain : \n1. the number of parameters sent in Redirect Code. The number should be represented as a 2-digit field, right-justified, padded left with zeros.\n2. a comma-separated list of parameters names. There also have to be a comma after the last parameter name.\n3. a list of lenghts of parameters VALUEs. Each lenght should be represented as a 3-digit field, right-justified, padded left with zeros.\nNOTE ! In the CheckSumHeader should be listed ONLY parameters which have values, \ni.e. if there is no value for some parameter, it should NOT be included in the CheckSumHeader.\nAnd vice versa - if a value is sent for a parameter, which is not listed in the CheckSumHeader, it is considered as a fraud\nand an error is raised\nNOTE !! It does not matter the order in which parameters are listed in the CheckSumHeader,\nit only matters that the VALUES of the parameters in the Input string (for calculating the checksum) are included in the order EXACTLY the same as parameters names in the CheckSumHeader\n--><\/p>\n<p><!-- <input id='MD5Content' onchange=\"CheckSum.value=md5(MD5Content.value);return false\"\/>--><br \/>\n<input id=\"password\" type=\"hidden\" value=\"TEST_PASS\"><br \/>\n<input id=\"CheckSum\" name=\"CheckSum\" value=\"70c8ccd95e303129316d63b213e7b2be\" type=\"hidden\"><br \/>\n<!-- CheckSum should be generated according to the algorithm explained in the specification.\nFor the generation of the sample CheckSum here is used the test merchant password - TEST_PASS --><\/p>\n<p><input id=\"OriginalAmount\" name=\"OriginalAmount\" value=\"1000\" type=\"hidden\"><!-- Original Amount (Optional) --><br \/>\n<input id=\"OriginalCurrency\" name=\"OriginalCurrency\" value=\"MKD\" type=\"hidden\"><!-- Original Currency (Optional) --><br \/>\n<\/form>\n<p><script>\nfunction myFunction() {\nlet text = document.getElementById(\"AmountToPay2\").value;\nlet result =\"\";\nif (text.indexOf(\".\") == -1) {\n result = text\n } else {\n result = text.substr(0,text.indexOf(\".\"))\n }\ndocument.getElementById(\"OriginalAmount\").value = result\ndocument.getElementById(\"AmountToPay\").value = result + \"00\"\ndocument.getElementById(\"count\").value = (\"00\" + document.getElementById(\"AmountToPay\").value.length).slice(-3)\ndocument.getElementById(\"CheckSumHeader\").value = \"10AmountToPay,PayToMerchant,MerchantName,AmountCurrency,Details1,Details2,PaymentOKURL,PaymentFailURL,OriginalAmount,OriginalCurrency,\" + (\"00\" + document.getElementById(\"AmountToPay\").value.length).slice(-3) + \"010015003013\" + (\"00\" + document.getElementById(\"Details2\").value.length).slice(-3) + \"030030\" + (\"00\" + document.getElementById(\"OriginalAmount\").value.length).slice(-3) + \"003\"\ndocument.getElementById(\"AllValuesByOrder\").value = document.getElementById(\"AmountToPay\").value + document.getElementById(\"PayToMerchant\").value + document.getElementById(\"MerchantName\").value + document.getElementById(\"AmountCurrency\").value + document.getElementById(\"Details1\").value + document.getElementById(\"Details2\").value + document.getElementById(\"PaymentOKURL\").value + document.getElementById(\"PaymentFailURL\").value + document.getElementById(\"OriginalAmount\").value + document.getElementById(\"OriginalCurrency\").value\ndocument.getElementById(\"MD5Content\").value = document.getElementById(\"CheckSumHeader\").value + document.getElementById(\"AllValuesByOrder\").value + \"FasZZuBK4HYYTsrQpBKfCVm3M9BjjyMJ\"\ndocument.getElementById(\"CheckSum\").value = md5(document.getElementById(\"MD5Content\").value)\n}\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0418\u0437\u043d\u043e\u0441 \u043a\u043e\u0458 \u0433\u043e \u043f\u043b\u0430\u045c\u0430\u0442\u0435: \u0411\u0440\u043e\u0458 \u043d\u0430 \u0444\u0430\u043a\u0442\u0443\u0440\u0430: \u0421\u043e \u043f\u0440\u0438\u0442\u0438\u0441\u043a\u0430\u045a\u0435 \u043d\u0430 \u043a\u043e\u043f\u0447\u0435\u0442\u043e \u043f\u043b\u0430\u0442\u0438, \u045c\u0435 \u0431\u0438\u0434\u0435\u0442\u0435 \u043f\u0440\u0435\u0444\u0440\u043b\u0435\u043d\u0438 \u043d\u0430 \u0431\u0435\u0437\u0431\u0435\u0434\u043d\u0430 \u0438 \u0441\u0438\u0433\u0443\u0440\u043d\u0430 \u0444\u043e\u0440\u043c\u0430 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0430 \u043e\u0434 \u0431\u0430\u043d\u043a\u0430\u0442\u0430 \u043a\u0430\u0434\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0430 \u0433\u0438 \u0432\u043d\u0435\u0441\u0438\u0442\u0435 \u043f\u043e\u0434\u0430\u0442\u043e\u0446\u0438\u0442\u0435 \u043e\u0434 \u0432\u0430\u0448\u0430\u0442\u0430 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u0447\u043a\u0430.\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u043f\u0435\u0448\u043d\u043e \u043f\u043b\u0430\u045c\u0430\u045a\u0435, \u045c\u0435 \u0431\u0438\u0434\u0435\u0442\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0432\u0440\u0430\u0442\u0435\u043d\u0438 \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\u0442\u0430 \u043d\u0430 iBanka.mk<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-369","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/ibanka.mk\/index.php?rest_route=\/wp\/v2\/pages\/369","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibanka.mk\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/ibanka.mk\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/ibanka.mk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ibanka.mk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=369"}],"version-history":[{"count":53,"href":"https:\/\/ibanka.mk\/index.php?rest_route=\/wp\/v2\/pages\/369\/revisions"}],"predecessor-version":[{"id":471,"href":"https:\/\/ibanka.mk\/index.php?rest_route=\/wp\/v2\/pages\/369\/revisions\/471"}],"wp:attachment":[{"href":"https:\/\/ibanka.mk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}