{"id":2827,"date":"2025-05-19T10:03:05","date_gmt":"2025-05-19T02:03:05","guid":{"rendered":"https:\/\/www.deekpay.com\/?p=2827"},"modified":"2025-05-19T10:03:05","modified_gmt":"2025-05-19T02:03:05","slug":"%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.deekpay.com\/ru\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/","title":{"rendered":"\u041a\u0430\u043a \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a Vietnam Payment API? \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432"},"content":{"rendered":"<h1>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u043e\u0433\u043e API-\u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432\u043e \u0412\u044c\u0435\u0442\u043d\u0430\u043c\u0435<\/h1>\n<h2>I. \u041e\u0431\u0437\u043e\u0440 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u0432\u043e \u0412\u044c\u0435\u0442\u043d\u0430\u043c\u0435<\/h2>\n<p>\u041d\u0438\u0436\u0435 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u0435\u043d\u044b \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0445 API \u0432\u043e \u0412\u044c\u0435\u0442\u043d\u0430\u043c\u0435:<\/p>\n<ol>\n<li><strong>\u041a\u043e\u0448\u0435\u043b\u0435\u043a Momo<\/strong> - \u0421\u0430\u043c\u044b\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u044b\u0435 \u043a\u043e\u0448\u0435\u043b\u044c\u043a\u0438 \u0432\u043e \u0412\u044c\u0435\u0442\u043d\u0430\u043c\u0435<\/li>\n<li><strong>ZaloPay<\/strong> - \u041f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u0437\u043e\u043d\u0442\u0438\u043a\u043e\u043c \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f Zalo<\/li>\n<li><strong>VNPAY<\/strong> - \u0423\u0441\u043b\u0443\u0433\u0438 \u0448\u043b\u044e\u0437\u0430, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0435 \u0411\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u0438\u043c \u0441\u043e\u044e\u0437\u043e\u043c<\/li>\n<li><strong>Payoo<\/strong> - \u0421\u043f\u043e\u0441\u043e\u0431\u044b \u043e\u043f\u043b\u0430\u0442\u044b \u0432\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u043e\u0444\u043b\u0430\u0439\u043d-\u043c\u0430\u0433\u0430\u0437\u0438\u043d\u0430\u0445<\/li>\n<li><strong>OnePay<\/strong> - \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 Visa\/Mastercard<\/li>\n<\/ol>\n<h2>II. \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043a \u0434\u043e\u0441\u0442\u0443\u043f\u0443<\/h2>\n<h3>1. \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435 \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0439 \u0441\u0447\u0435\u0442<\/h3>\n<ul>\n<li>\u041c\u043e\u043c\u043e. <a href=\"https:\/\/business.momo.vn\/\">https:\/\/business.momo.vn\/<\/a><\/li>\n<li>VNPAY. <a href=\"https:\/\/vnpay.vn\/merchant.html\">https:\/\/vnpay.vn\/merchant.html<\/a><\/li>\n<li>ZaloPay. <a href=\"https:\/\/zalopay.vn\/business\/\">https:\/\/zalopay.vn\/business\/<\/a><\/li>\n<\/ul>\n<h3>2. \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 API<\/h3>\n<p>\u0421\u0430\u043c\u0430\u044f \u0441\u0432\u0435\u0436\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043f\u043e API \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0432 \u0426\u0435\u043d\u0442\u0440\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b:<\/p>\n<ul>\n<li>\u041f\u043e\u0440\u0442\u0430\u043b \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 Momo: https:\/\/developers.momo.vn\/<\/li>\n<li>\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f VNPAY: https:\/\/vnpay.vn\/category\/technical\/<\/li>\n<\/ul>\n<h2>III. \u041f\u0440\u0438\u043c\u0435\u0440 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a API Momo (PHP)<\/h2>\n<pre><code class=\"language-php\">&lt;?php<br>\r\nfunction execPostRequest($url, $data) {<br>\r\n    $ch = curl_init($url);<br>\r\n    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, &quot;POST&quot;);<br>\r\n    curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));<br>\r\n    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);<br>\r\n    curl_setopt($ch, CURLOPT_HTTPHEADER, array(<br>\r\n            'Content-Type: application\/json',<br>\r\n            'Content-Length: ' . strlen(json_encode($data)))<br>\r\n    );<br>\r\n    $result = curl_exec($ch);<br>\r\n    return json_decode($result); \/\/ decode response JSON to object PHP <br>\r\n}<br>\r\n<br>\r\n\/\/ Momo\u914d\u7f6e\u53c2\u6570 (\u4ece\u5546\u6237\u540e\u53f0\u83b7\u53d6)<br>\r\n$partnerCode = &quot;MOMOXXXX&quot;;<br>\r\n$accessKey = &quot;XXXXXXXXXX&quot;;<br>\r\n$secretKey = &quot;XXXXXXXXXXXXXXXXXXXXXXXX&quot;;<br>\r\n<br>\r\n\/\/\u8ba2\u5355\u4fe1\u606f\u8bbe\u7f6e <br>\r\n$orderId = time() .&quot;&quot;; \/\/ unique order ID <br>\r\n$orderInfo = &quot;Thanh to\u00e1n qua MoMo&quot;; \/\/ payment content description  <br>\r\n$amount = $_POST['total_amount']; \/\/ total amount need pay  <br>\r\n$notifyUrl = &quot;https:\/\/yourdomain.com\/momo_notify.php&quot;; \/\/ callback URL after payment success\/fail  <br>\r\n$returnUrl = &quot;https:\/\/yourdomain.com\/thankyou.php&quot;; \/\/ redirect URL after payment complete  <br>\r\n<br>\r\n\/\/\u751f\u6210\u7b7e\u540d(SHA256\u52a0\u5bc6)<br>\r\n$requestId= time().&quot;&quot;;<br>\r\n$rawHash= &quot;accessKey=&quot;.$accessKey.&quot;&amp;amount=&quot;.$amount.&quot;&amp;extraData=&amp;ipnUrl=&quot;.$notifyUrl.&quot;&amp;orderId=&quot;.$orderId.&quot;&amp;orderInfo=&quot;.$orderInfo.&quot;&amp;partnerCode=&quot;.$partnerCode.&quot;&amp;redirectUrl=&quot;.$returnUrl.&quot;&amp;requestId=&quot;.$requestId;<br>\r\n    <br>\r\nif(isset($_SERVER['HTTPS']) &amp;&amp; $_SERVER['HTTPS'] == 'on') {<br>\r\n   $base_url_payment='https';<br>\r\n} else {<br>\r\n   $base_url_payment='http';<br>\r\n}<br>\r\n    <br>\r\n\/\/\u62fc\u63a5\u5b8c\u6574\u8bf7\u6c42\u6570\u636e   <br>\r\narray (<br>\r\n        'partnerCode' =&gt; $partnerCode,<br>\r\n        'accessKey' =&gt; $accessKey,<br>\r\n        'requestId' =&gt; $requestId,<br>\r\n        'amount' =&gt; strval ($amount),<br>\r\n        'orderId' =&gt; strval ($order_id),<br>\r\n        ...<br>\r\n);<br>\r\n<br>\r\ntry {        <br>\r\n     \/* call api to momo server *\/     <br>\r\n     if(!empty($_POST)){         <br>\r\n         header('Location : '.execPostRequest(&quot;...&quot;,...));          <br>\r\n         exit();      <br>\r\n      }       <br>\r\n} catch(Exception ex){ ... }<br>\r\n?&gt;<br>\r\n<\/code><\/pre>\n<p>IV. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u044d\u0442\u0430\u043f\u044b \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 VNPAY (\u043f\u0440\u0438\u043c\u0435\u0440 Java)<\/p>\n<pre><code class=\"language-java\">public class VNPayConfig {<br>\r\n    <br>\r\n    public static String vnp_PayUrl = \"https:\/\/sandbox.vnpayment.vn\/paymentv2\/vpcpay.html\";<br>\r\n    public static String vnp_Returnurl = \"http:\/\/localhost:8080\/vnp_return.jsp\";<br>\r\n    public static String vnp_TmnCode = \"YourTmnCodeHere\";\t<br>\r\n    ...<br>\r\n    <br>\r\n    \/\/ \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u044b\u0439 \u0445\u044d\u0448 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 HMAC-SHA512\t\t<br>\r\n    private static String hmacSHA512(final String key,final String data){<br>\r\n        \u043f\u043e\u043f\u044b\u0442\u043a\u0430{<br>\r\n            Mac sha512_HMAC=Mac.getInstance(\"HmacSHA512\");            <br>\r\n            SecretKeySpec secret_key=new Secret KeySpec(key.getBytes(), \"HmacSHA512\");             <br>\r\n            sha512_HMAC.init(secret_key).              <br>\r\n            byte[] binary_data=sha512_HMAC.doFinal(data.getBytes());               <br>\r\n            <br>\r\n           StringBuilder sb=new StringBuilder(binary_data.length*2);                <br>\r\n           for(byte b : binary_data){                    <br>\r\n               sb.append(String.format(&quot;%02x&quot;,b &amp;0xff));                <br>\r\n           }                            <br>\r\n          return sb.toString();           <br>\r\n       }catch(Exception e){throw new RuntimeException(e);}     <br>\r\n   }<br>\r\n   <br>\r\n   public Map createPayment(Long amount,String bankcode) throws UnsupportedEncodingException{<br>\r\n       \u041a\u0430\u043b\u0435\u043d\u0434\u0430\u0440\u044c cld=Calendar.getInstance();<br>\r\n       SimpleDateFormat formatter=new SimpleDateFormat(\"yyyyMMddHHmmss\");<br>\r\n       <br>\r\n       Map params=new HashMap();<br>\r\n       params.put(\"vnp_Version\", \"2.1.0\");<br>\r\n       params.put(\"vnp_Command\", \"pay\");<br>\r\n       ...<br>\r\n       <br>\r\n       List fieldNames=new ArrayList(params.keySet());<br>\r\n       Collections.sort(fieldNames).<br>\r\n       <br>\r\n      StringBuilder hashDataBuilder=new StringBuilder();<br>\r\n      for(String fieldName : fieldNames){<br>\r\n          if(params.get(fieldName)! =null&amp;&amp;!params.get(fieldName).isEmpty()){<br>\r\n              hashDataBuilder.append((fieldName+\"\"));<br>\r\n              ...<br>\r\n          }<br>\r\n      }<br>\r\n      <br>\r\n      SecureRandom randomSecureRandom=SecureRandom.getInstanceStrong();<br>\r\n      int randomNumber=(int)(randomSecure Random.nextDouble()*100000000)+10000000;<br>\r\n      <br>\r\n      params.put(... ,String.valueOf(randomNumber));<br>\r\n      <br>\r\n      return signedParams;\t\t \t    \t    \t    \t    \t   \t    \t   \t    \t   \t    \t   \t    \t   \t    \t\t \t    \t    \t    \t\t\t \t\t \t    \t    \t\t\t \t\t \t    \t    \t\t\t \t\t \t    \t    \t\t\t\t\t\t<br>\r\n}<br>\r\n<\/code><\/pre>\n<p>V. \u041e\u0431\u0449\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0438 \u0441\u043e\u0432\u0435\u0442\u044b \u043f\u043e \u043e\u0442\u043b\u0430\u0434\u043a\u0435<\/p>\n<p>1.<strong>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043d\u0435 \u0443\u0434\u0430\u043b\u0430\u0441\u044c<\/strong><\/p>\n<ul>\n<li>\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043b\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c SHA256\/HMAC-SHA512?<\/li>\n<li>\u041f\u043e\u0440\u044f\u0434\u043e\u043a \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043a\u043b\u044e\u0447\u0435\u0439 \u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0441\u0442\u0440\u043e\u0433\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438?<\/li>\n<\/ul>\n<p>2.<strong>\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430<\/strong><\/p>\n<pre><code class=\"language-python\">    if verify_signature(request.json): # \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u043e\u0434\u043f\u0438\u0441\u0438\t\t\t<br>\r\n        \u0435\u0441\u043b\u0438 result_code==0.<br>\r\n            logger.info(f \"\u041f\u043b\u0430\u0442\u0435\u0436 \u043f\u0440\u043e\u0448\u0435\u043b \u0443\u0441\u043f\u0435\u0448\u043d\u043e:{trans_id}\")<br>\r\n    \u0435\u0449\u0435.<br>\r\n        logger.warning(\"\u041e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0430 \u043d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u0430\u044f \u043f\u043e\u0434\u043f\u0438\u0441\u044c!\")<br>\r\n    return Response(status.HTTP_200_OK)<br>\r\n<\/code><\/pre>\n<p>3.<strong>\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043f\u043e \u0438\u0441\u043f\u044b\u0442\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u0435<\/strong><br \/>\n\u0412\u0441\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0441\u0440\u0435\u0434\u0443 \"\u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u044b\", \u043a\u0430\u043a \u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f:<\/p>\n<h1>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u043e\u043c\u0443 API \u0432\u043e \u0412\u044c\u0435\u0442\u043d\u0430\u043c\u0435 (\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435)<\/h1>\n<h2>V. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043f\u043e \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u0438 \u043c\u0435\u0442\u043e\u0434\u044b \u043e\u0442\u043b\u0430\u0434\u043a\u0438 (\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435)<\/h2>\n<h3>3.1 \u0410\u0434\u0440\u0435\u0441\u0430 \u0441\u0440\u0435\u0434 \"\u043f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u044b\" \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b<\/h3>\n<ul>\n<li><strong>\u041f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0430 \u041c\u043e\u043c\u043e<\/strong>: <a href=\"https:\/\/test-payment.momo.vn\">https:\/\/test-payment.momo.vn<\/a><\/li>\n<li><strong>\u041f\u0435\u0441\u043e\u0447\u043d\u0438\u0446\u0430 VNPAY<\/strong>: <a href=\"https:\/\/sandbox.vnpayment.vn\/apis\/\">https:\/\/sandbox.vnpayment.vn\/apis\/<\/a><\/li>\n<li><strong>\u0422\u0435\u0441\u0442\u043e\u0432\u0430\u044f \u0441\u0440\u0435\u0434\u0430 ZaloPay<\/strong>: <a href=\"https:\/\/sb-openapi.zalopay.vn\/\">https:\/\/sb-openapi.zalopay.vn\/<\/a><\/li>\n<\/ul>\n<h3>3.2 \u041f\u0440\u0438\u043c\u0435\u0440 \u043e\u0442\u043b\u0430\u0434\u043a\u0438 Postman<\/h3>\n<pre><code class=\"language-json\">\/\/ \u041f\u0440\u0438\u043c\u0435\u0440 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0430 \u043e\u043f\u043b\u0430\u0442\u0443 Momo (POST \/v2\/gateway\/api\/create)<br>\r\n{<br>\r\n    \"PartnerCode\": \"MOMOXKXX\".<br>\r\n    \"partnerName\": \"Test Merchant\",<br>\r\n    \"storeId\": \"Test Store\",<br>\r\n    \"requestType\": \"captureWallet\". <br>\r\n    \"ipnUrl\": \"https:\/\/yourdomain.com\/momo_callback\",<br>\r\n    \/\/... \u0414\u0440\u0443\u0433\u0438\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u043e\u043b\u044f...<br>\r\n}<br>\r\n<\/code><\/pre>\n<h2>VI. \u041a\u043e\u0434 \u043a\u043b\u044e\u0447\u0430 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 ZaloPay (\u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 Node.js)<\/h2>\n<pre><code class=\"language-javascript\">const crypto = require('crypto');<br>\r\nconst axios = require('axios');<br>\r\n<br>\r\n\/\/ ZaloPay\u914d\u7f6e\u53c2\u6570<br>\r\nconst config = {<br>\r\n  app_id: '2554',<br>\r\n  key1: 'sdngKKJmqEMzvh5QQcdD2A9XBSKUNaYn',<br>\r\n  endpoint: 'https:\/\/sb-openapi.zalopay.vn\/v2\/create'<br>\r\n};<br>\r\n<br>\r\n\/\/\u751f\u6210MAC\u7b7e\u540d(HMAC-SHA256)<br>\r\nfunction generateMac(data, key) {<br>\r\n  return crypto.createHmac('sha256', key)<br>\r\n              .update(data)<br>\r\n              .digest('hex');<br>\r\n}<br>\r\n<br>\r\nasync function createZaloPayment(order) {<br>\r\n  <br>\r\n const timestamp = Date.now();<br>\r\n const uid = `${timestamp}${Math.floor(Math.random() *999)}`;<br>\r\n <br>\r\n const params = {<br>\r\n   app_id: config.app_id,<br>\r\n   app_trans_id: `${moment().format('YYMMDD')}_${order.id}`,<br>\r\n   app_user: order.userId,<br>\r\n   amount: order.amount,<br>\r\n   item: JSON.stringify(order.items),<br>\r\n   description:`Thanh toan don hang #${order.id}`,<br>\r\n };<br>\r\n <br>\r\n \/\/\u6309\u6587\u6863\u8981\u6c42\u6392\u5e8f\u5e76\u62fc\u63a5\u7b7e\u540d\u5b57\u7b26\u4e32 <br>\r\n let dataStr= Object.keys(params).sort()<br>\r\n           .map(key=&gt;`${key}=${params[key]}`).join(&quot;&amp;&quot;);<br>\r\n           <br>\r\n params.mac= generateMac(dataStr,config.key1);<br>\r\n <br>\r\n try{<br>\r\n     const response= await axios.post(config.endpoint,params);<br>\r\n     if(response.data.return_code===1){<br>\r\n         return response.data.order_url; \/\/\u8df3\u8f6c\u5230ZaloPay\u7684\u652f\u4ed8\u9875\u9762URL  <br>\r\n     }else{<br>\r\n         throw new Error(`ZaloPay error:[${response.data.sub_return_code}] ${response.data.sub_return_message}`);<br>\r\n     }<br>\r\n }catch(error){<br>\r\n      console.error(&quot;\u8c03\u7528ZALOPAY API\u5931\u8d25:&quot;,error);   <br>\r\n      throw error;<br>\r\n }<br>\r\n}<br>\r\n<\/code><\/pre>\n<p>VII. \u0417\u0430\u043c\u0435\u0442\u043a\u0438 \u043f\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u0442\u044b\u0432\u0430\u043d\u0438\u044e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b<\/p>\n<p>7.1 \u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0443 SSL<br \/>\n\u0412\u0441\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b \u043e\u0431\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u0434\u043e\u043b\u0436\u043d\u044b.<\/p>\n<ul>\n<li>\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b HTTPS (HTTP \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f)<\/li>\n<li>\u0412\u0435\u0440\u0441\u0438\u044f TLS \u2265 1.2 (\u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c\u0438 \u0426\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0431\u0430\u043d\u043a\u0430 \u0412\u044c\u0435\u0442\u043d\u0430\u043c\u0430)<\/li>\n<\/ul>\n<p>7.2 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0435\u043b\u044b\u0445 \u0441\u043f\u0438\u0441\u043a\u043e\u0432 IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432<br \/>\n\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 IP-\u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432 \u0431\u0435\u043b\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0432 \u0431\u044d\u043a\u0435\u043d\u0434\u0435 \u0442\u043e\u0440\u0433\u043e\u0432\u0446\u0430:<\/p>\n<pre><code># VNPAY Merchant Back Office \u041f\u0440\u0438\u043c\u0435\u0440.<br>\r\n120.72.*. * (\u0441\u0435\u0433\u043c\u0435\u043d\u0442 IP \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430)  <br>\r\n14.. *. * (\u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u0435\u0433\u043c\u0435\u043d\u0442 IP)    <br>\r\n<\/code><\/pre>\n<p>7.3 \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043b\u0438\u043c\u0438\u0442\u0430\u043c\u0438 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0439<\/p>\n<table>\n<thead>\n<tr>\n<th>\u0442\u0435\u0440\u0440\u0430\u0441\u0430<\/th>\n<th>\u041e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0439 \u043c\u0438\u043d\u0438\u043c\u0443\u043c<\/th>\n<th>\u041e\u0434\u0438\u043d\u043e\u0447\u043d\u044b\u0439 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>MOMO<\/td>\n<td>10,000\u20ab<\/td>\n<td>50,000,000\u20ab<\/td>\n<\/tr>\n<tr>\n<td>VNPAY Unlimited<\/td>\n<td>\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u043e\u0441\u0442\u0430\u0442\u043e\u043a \u043d\u0430 \u0431\u0430\u043d\u043a\u043e\u0432\u0441\u043a\u043e\u043c \u0441\u0447\u0435\u0442\u0435<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\u041a\u043e\u0440\u043f\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0441\u0447\u0435\u0442 Zalo Pay<\/td>\n<td>&#8211;<\/td>\n<td>\u20ab20 \u043c\u0438\u043b\u043b\u0438\u0430\u0440\u0434\u043e\u0432 \u0432 \u0434\u0435\u043d\u044c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>VIII. \u041c\u043d\u043e\u0433\u043e\u044f\u0437\u044b\u0447\u043d\u0430\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043e\u0448\u0438\u0431\u043e\u043a<\/p>\n<pre><code class=\"language-java\">public class PaymentErrorHandler {<br>\r\n<br>\r\n private static final Map MOMO_ERRORS=new HashMap(){{<br>\r\n put(0, \"Giao d\u1ecbch th\u00e0nh c\u00f4ng\"); put(-6, \"Signature kh\u00f4ng h\u1ee3p l\u1ec7\");}};<br>\r\n<br>\r\n private static final Map VNPAY_ERRORS=new HashMap(){{<br>\r\n put(\"00\", \"GD thanh cong\");put(\"07\", \"Tr\u1eeb ti\u1ec1n th\u00e0nh c\u00f4ng GD b\u1ecb nghi ng\u1edd\");}};<br>\r\n<br>\r\n public String localizeError(String provider,int code,String locale){     <br>\r\n switch(locale.toLowerCase()){<br>\r\n \u0441\u043b\u0443\u0447\u0430\u0439 \"vi\".<br>\r\n return \"vi\".equals(locale)?MOMO_ERRORS.get(code):getEnglishMessage(code);       <br>\r\n \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<br>\r\n return getEnglishMessage(code);}}<br>\r\n}<br>\r\n<\/code><\/pre>\n<p>IX. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u043f\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438<\/p>\n<p><strong>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445:<\/strong><\/p>\n<pre><code class=\"language-sql--\"> id BIGSERIAL PRIMARY KEY ,<br>\r\n \u0448\u043b\u044e\u0437 VARCHAR(20)\/* momo\/vnpay\/zalopay *\/ ,<br>\r\n trans_id VARCHAR(64)\/* \u041d\u043e\u043c\u0435\u0440 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0448\u043b\u044e\u0437\u0430*\/ ,   <br>\r\n \u0441\u0442\u0430\u0442\u0443\u0441 SMALLINT\/*0= \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0435, 1= \u0443\u0441\u043f\u0435\u0445**\/ ,    <br>\r\n created_at TIMESTAMPT NOT NULL DEFAULT NOW(),<br>\r\n \u0418\u041d\u0414\u0415\u041a\u0421 idx_gateway_status(gateway.status));`<br>\r\n<\/code><\/pre>\n<p><strong>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Redis:<\/strong><\/p>\n<pre><code class=\"language-python\"> cache_key=f'momo_callback_{transid}' if cache.get(cache_key).<br>\r\n logger.warning(f'Duplicate callback detected:{transid}')<br>\r\n \u0435\u0449\u0435.<br>\r\n cache.set(cache_key,'processed',timeout=300)#5 minutes expires`<br>\r\n<\/code><\/pre>\n<p>\u0414\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0438\u043b\u0438 \u043f\u0440\u0438 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u0438\u0438 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043c\u043d\u0435 \u043e \u043d\u0438\u0445.<\/p>","protected":false},"excerpt":{"rendered":"<p>\u041f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u043e\u0433\u043e API-\u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0432\u043e \u0412\u044c\u0435\u0442\u043d\u0430\u043c\u0435 I. \u041e\u0431\u0437\u043e\u0440 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0435\u0436\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u0432\u043e \u0412\u044c\u0435\u0442\u043d\u0430\u043c\u0435 \u0412...<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-2827","post","type-post","status-publish","format-standard","hentry","category-34"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.9 (Yoast SEO v23.7) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u8d8a\u5357\u652f\u4ed8API\u600e\u4e48\u63a5\uff1f\u5f00\u53d1\u5b9e\u6218\u6559\u7a0b - DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8|\u5370\u5ea6UPI\u652f\u4ed8|\u5370\u5ea6\u4e09\u65b9\u56db\u65b9\u652f\u4ed8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.deekpay.com\/ru\/2025\/05\/19\/\u8d8a\u5357\u652f\u4ed8api\u600e\u4e48\u63a5\uff1f\u5f00\u53d1\u5b9e\u6218\u6559\u7a0b\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u8d8a\u5357\u652f\u4ed8API\u600e\u4e48\u63a5\uff1f\u5f00\u53d1\u5b9e\u6218\u6559\u7a0b\" \/>\n<meta property=\"og:description\" content=\"\u8d8a\u5357\u652f\u4ed8API\u63a5\u5165\u5f00\u53d1\u5b9e\u6218\u6307\u5357 \u4e00\u3001\u8d8a\u5357\u4e3b\u6d41\u652f\u4ed8\u5e73\u53f0\u6982\u89c8 \u5728&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.deekpay.com\/ru\/2025\/05\/19\/\u8d8a\u5357\u652f\u4ed8api\u600e\u4e48\u63a5\uff1f\u5f00\u53d1\u5b9e\u6218\u6559\u7a0b\/\" \/>\n<meta property=\"og:site_name\" content=\"DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8|\u5370\u5ea6UPI\u652f\u4ed8|\u5370\u5ea6\u4e09\u65b9\u56db\u65b9\u652f\u4ed8\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-19T02:03:05+00:00\" \/>\n<meta name=\"author\" content=\"deekpay\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c\" \/>\n\t<meta name=\"twitter:data1\" content=\"deekpay\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u043c\u0438\u043d\u0443\u0442\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/\"},\"author\":{\"name\":\"deekpay\",\"@id\":\"https:\/\/www.deekpay.com\/#\/schema\/person\/91e4e842fdd04f8c957a9f642506f51d\"},\"headline\":\"\u8d8a\u5357\u652f\u4ed8API\u600e\u4e48\u63a5\uff1f\u5f00\u53d1\u5b9e\u6218\u6559\u7a0b\",\"datePublished\":\"2025-05-19T02:03:05+00:00\",\"dateModified\":\"2025-05-19T02:03:05+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/\"},\"wordCount\":87,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.deekpay.com\/#organization\"},\"articleSection\":[\"\u8d8a\u5357\u652f\u4ed8\"],\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/\",\"url\":\"https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/\",\"name\":\"\u8d8a\u5357\u652f\u4ed8API\u600e\u4e48\u63a5\uff1f\u5f00\u53d1\u5b9e\u6218\u6559\u7a0b - DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8|\u5370\u5ea6UPI\u652f\u4ed8|\u5370\u5ea6\u4e09\u65b9\u56db\u65b9\u652f\u4ed8\",\"isPartOf\":{\"@id\":\"https:\/\/www.deekpay.com\/#website\"},\"datePublished\":\"2025-05-19T02:03:05+00:00\",\"dateModified\":\"2025-05-19T02:03:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.deekpay.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8d8a\u5357\u652f\u4ed8API\u600e\u4e48\u63a5\uff1f\u5f00\u53d1\u5b9e\u6218\u6559\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.deekpay.com\/#website\",\"url\":\"https:\/\/www.deekpay.com\/\",\"name\":\"DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8|\u5370\u5ea6UPI\u652f\u4ed8|\u5370\u5ea6\u4e09\u65b9\u652f\u4ed8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.deekpay.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.deekpay.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.deekpay.com\/#organization\",\"name\":\"DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8\u548cUPI\u652f\u4ed8\u670d\u52a1\u5546\",\"url\":\"https:\/\/www.deekpay.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/www.deekpay.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/deekpay.com\/wp-content\/uploads\/2024\/11\/LOGO-1.png\",\"contentUrl\":\"https:\/\/deekpay.com\/wp-content\/uploads\/2024\/11\/LOGO-1.png\",\"width\":649,\"height\":191,\"caption\":\"DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8\u548cUPI\u652f\u4ed8\u670d\u52a1\u5546\"},\"image\":{\"@id\":\"https:\/\/www.deekpay.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.deekpay.com\/#\/schema\/person\/91e4e842fdd04f8c957a9f642506f51d\",\"name\":\"deekpay\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/www.deekpay.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/485e931d0b237ba5cfa6c7cea419d88f7e3258b4837d99943e099ff93b458f8c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/485e931d0b237ba5cfa6c7cea419d88f7e3258b4837d99943e099ff93b458f8c?s=96&d=mm&r=g\",\"caption\":\"deekpay\"},\"sameAs\":[\"https:\/\/deekpay.com\"],\"url\":\"https:\/\/www.deekpay.com\/ru\/author\/deekpay\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u8d8a\u5357\u652f\u4ed8API\u600e\u4e48\u63a5\uff1f\u5f00\u53d1\u5b9e\u6218\u6559\u7a0b - DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8|\u5370\u5ea6UPI\u652f\u4ed8|\u5370\u5ea6\u4e09\u65b9\u56db\u65b9\u652f\u4ed8","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.deekpay.com\/ru\/2025\/05\/19\/\u8d8a\u5357\u652f\u4ed8api\u600e\u4e48\u63a5\uff1f\u5f00\u53d1\u5b9e\u6218\u6559\u7a0b\/","og_locale":"ru_RU","og_type":"article","og_title":"\u8d8a\u5357\u652f\u4ed8API\u600e\u4e48\u63a5\uff1f\u5f00\u53d1\u5b9e\u6218\u6559\u7a0b","og_description":"\u8d8a\u5357\u652f\u4ed8API\u63a5\u5165\u5f00\u53d1\u5b9e\u6218\u6307\u5357 \u4e00\u3001\u8d8a\u5357\u4e3b\u6d41\u652f\u4ed8\u5e73\u53f0\u6982\u89c8 \u5728&hellip;","og_url":"https:\/\/www.deekpay.com\/ru\/2025\/05\/19\/\u8d8a\u5357\u652f\u4ed8api\u600e\u4e48\u63a5\uff1f\u5f00\u53d1\u5b9e\u6218\u6559\u7a0b\/","og_site_name":"DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8|\u5370\u5ea6UPI\u652f\u4ed8|\u5370\u5ea6\u4e09\u65b9\u56db\u65b9\u652f\u4ed8","article_published_time":"2025-05-19T02:03:05+00:00","author":"deekpay","twitter_card":"summary_large_image","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c":"deekpay","\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f":"5 \u043c\u0438\u043d\u0443\u0442"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/#article","isPartOf":{"@id":"https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/"},"author":{"name":"deekpay","@id":"https:\/\/www.deekpay.com\/#\/schema\/person\/91e4e842fdd04f8c957a9f642506f51d"},"headline":"\u8d8a\u5357\u652f\u4ed8API\u600e\u4e48\u63a5\uff1f\u5f00\u53d1\u5b9e\u6218\u6559\u7a0b","datePublished":"2025-05-19T02:03:05+00:00","dateModified":"2025-05-19T02:03:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/"},"wordCount":87,"commentCount":0,"publisher":{"@id":"https:\/\/www.deekpay.com\/#organization"},"articleSection":["\u8d8a\u5357\u652f\u4ed8"],"inLanguage":"ru-RU","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/","url":"https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/","name":"\u8d8a\u5357\u652f\u4ed8API\u600e\u4e48\u63a5\uff1f\u5f00\u53d1\u5b9e\u6218\u6559\u7a0b - DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8|\u5370\u5ea6UPI\u652f\u4ed8|\u5370\u5ea6\u4e09\u65b9\u56db\u65b9\u652f\u4ed8","isPartOf":{"@id":"https:\/\/www.deekpay.com\/#website"},"datePublished":"2025-05-19T02:03:05+00:00","dateModified":"2025-05-19T02:03:05+00:00","breadcrumb":{"@id":"https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.deekpay.com\/en\/2025\/05\/19\/%e8%b6%8a%e5%8d%97%e6%94%af%e4%bb%98api%e6%80%8e%e4%b9%88%e6%8e%a5%ef%bc%9f%e5%bc%80%e5%8f%91%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.deekpay.com\/"},{"@type":"ListItem","position":2,"name":"\u8d8a\u5357\u652f\u4ed8API\u600e\u4e48\u63a5\uff1f\u5f00\u53d1\u5b9e\u6218\u6559\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.deekpay.com\/#website","url":"https:\/\/www.deekpay.com\/","name":"DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8|\u5370\u5ea6UPI\u652f\u4ed8|\u5370\u5ea6\u4e09\u65b9\u652f\u4ed8","description":"","publisher":{"@id":"https:\/\/www.deekpay.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.deekpay.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ru-RU"},{"@type":"Organization","@id":"https:\/\/www.deekpay.com\/#organization","name":"DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8\u548cUPI\u652f\u4ed8\u670d\u52a1\u5546","url":"https:\/\/www.deekpay.com\/","logo":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/www.deekpay.com\/#\/schema\/logo\/image\/","url":"https:\/\/deekpay.com\/wp-content\/uploads\/2024\/11\/LOGO-1.png","contentUrl":"https:\/\/deekpay.com\/wp-content\/uploads\/2024\/11\/LOGO-1.png","width":649,"height":191,"caption":"DEEKPAY-\u5370\u5ea6\u539f\u751f\u652f\u4ed8\u548cUPI\u652f\u4ed8\u670d\u52a1\u5546"},"image":{"@id":"https:\/\/www.deekpay.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.deekpay.com\/#\/schema\/person\/91e4e842fdd04f8c957a9f642506f51d","name":"deekpay","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/www.deekpay.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/485e931d0b237ba5cfa6c7cea419d88f7e3258b4837d99943e099ff93b458f8c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/485e931d0b237ba5cfa6c7cea419d88f7e3258b4837d99943e099ff93b458f8c?s=96&d=mm&r=g","caption":"deekpay"},"sameAs":["https:\/\/deekpay.com"],"url":"https:\/\/www.deekpay.com\/ru\/author\/deekpay\/"}]}},"_links":{"self":[{"href":"https:\/\/www.deekpay.com\/ru\/wp-json\/wp\/v2\/posts\/2827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.deekpay.com\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.deekpay.com\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.deekpay.com\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.deekpay.com\/ru\/wp-json\/wp\/v2\/comments?post=2827"}],"version-history":[{"count":1,"href":"https:\/\/www.deekpay.com\/ru\/wp-json\/wp\/v2\/posts\/2827\/revisions"}],"predecessor-version":[{"id":2828,"href":"https:\/\/www.deekpay.com\/ru\/wp-json\/wp\/v2\/posts\/2827\/revisions\/2828"}],"wp:attachment":[{"href":"https:\/\/www.deekpay.com\/ru\/wp-json\/wp\/v2\/media?parent=2827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.deekpay.com\/ru\/wp-json\/wp\/v2\/categories?post=2827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.deekpay.com\/ru\/wp-json\/wp\/v2\/tags?post=2827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}