Guest mode. You can read posts without signing up. Comments, ratings, job contacts and your own posts open after you sign up and accept the rules. What is Kommit →

Редакция КоммитРедакция портала
commit ff7eb29 · 11 days ago

IT in Uzbekistan, part 3: online payment — Payme, Click, Uzum Bank, Uzcard, and Humo, API, and receipt fiscalization

🌐 Machine-translated from Russian. Show original

How to accept payment on the website or in the app in Uzbekistan: how Payme, Click, and Uzum Bank differ, how their merchant APIs are structured, what ICPU is, and why connection is not complete without a fiscal receipt.

⚖️ Rules are changing. The post is an overview of official sources for November 2026, not a legal or tax consultation. Before making a decision, check the current versions: lex.uz, it-park.uz, soliq.uz.

In this part:

Who's Who#

  • Uzcard and Humo are national payment systems whose cards are owned by almost everyone. An online store usually does not connect directly to them but accepts their cards through a payment service or bank.
  • Payme (Payme Business), Click , and Uzum Bank are payment services with apps and APIs for merchants. Through them, the customer pays with an Uzcard or Humo card.

The general principle for all three is that the payment system calls your server itself (webhooks), and you respond to whether the payment can be accepted and whether it has been processed. This differs from the "store calls the bank's API" scheme common in Kazakhstan (see the series about banks in Kazakhstan).

Payme: Merchant API#

Connection#

  1. Register in the Payme Business account and add a web cash register.
  2. Enter the Endpoint URL — your billing address where Payme will send requests.
  3. Get two keys: key for battle mode and TEST_KEY for sandbox. Merchant ID — in the checkout developer settings.
  4. Take the tests in the https://test.paycom.uzsandbox, then switch to https://checkout.paycom.uz.

Protocol#

  • JSON-RPC 2.0, POST over HTTPS, named parameters only.
  • The answer is always HTTP 200, otherwise Payme considers this a -32400error.
  • Authorization — Basic: Authorization: Basic base64(login:key). Login is provided by Payme technical support, password — cash register key.
  • Requests come only from addresses 185.234.113.1–185.234.113.15. Others can be cut off on the firewall.
  • Amounts — in tiyins (1 sum = 100 tiyins).

Methods#

MethodWhat your server does
CheckPerformTransactionChecks the order and amount; can return data for the fiscal receipt
CreateTransactionCreates a transaction, book an order, sets the status "pending payment"
PerformTransactionRecords payment, issues goods or services,
CancelTransactionCancels a transaction (before or after execution)
CheckTransactionReturns the transaction state
GetStatementList of transactions for the reconciliation period
SetFiscalDataOptional: Payme sends fiscal receipt data

Example of a request from Payme:

{ "method": "CreateTransaction",
  "params": { "id": "5305e3bab097f420a62ced0b", "time": 1399114284039,
              "amount": 500000, "account": { "order_id": "197" } },
  "id": 2032 }

Transaction statuses: 1 — created, awaiting confirmation; 2 — completed; -1 — canceled before processing; -2 — canceled after processing. Payme cancels an unconfirmed transaction after 12 hours (43,200,000 ms) due to 4 — timeout.

Key errors: -31001 — incorrect amount; -31003 — transaction not found; -31007 — cannot be canceled, service provided; -31008 — operation impossible; -31050…-31099 — errors in account (with localized message); -32504 — incorrect authorization.

The check can be opened with a GET link: parameters via ;, are encoded in base64.

m=<ID кассы>;ac.order_id=197;a=500000;l=ru;c=https://shop.example.uz/thanks
→ https://checkout.paycom.uz/<base64 от строки выше>

Click: SHOP API#

Connection#

After contracting with Click, you get service_id, merchant_id, merchant_user_id , and SECRET_KEY, and you pass the Click addresses for the Prepare and Complete requests.

Protocol#

  • Click sends POST with Content-Type: application/x-www-form-urlencoded, the response is JSON.
  • Two stages: Prepare (action = 0) — check and book, Complete (action = 1) — completion.
  • Sums are in sums (float-typeamount ), not in tiyins as in Payme.
  • Request signature — MD5:
Prepare:  md5(click_trans_id + service_id + SECRET_KEY + merchant_trans_id + amount + action + sign_time)
Complete: md5(click_trans_id + service_id + SECRET_KEY + merchant_trans_id + merchant_prepare_id + amount + action + sign_time)

Node.js signature verification:

const crypto = require("crypto");
function clickSignOk(p, secret) {
  const parts = [p.click_trans_id, p.service_id, secret, p.merchant_trans_id];
  if (Number(p.action) === 1) parts.push(p.merchant_prepare_id);
  parts.push(p.amount, p.action, p.sign_time);
  const sign = crypto.createHash("md5").update(parts.join("")).digest("hex");
  return sign === p.sign_string;
}

The answer to Prepare contains click_trans_id, merchant_trans_id, merchant_prepare_id, error, error_note; to Complete — the same, but with merchant_confirm_id.

Merchant error codes: 0 — success; -1 — signature invalid; -2 — incorrect amount; -4 — already paid; -5 — order not found; -6 — transaction not found; -9 — transaction canceled. If Click sent Complete with a negative error, cancel the payment and return the -9.

Payment button#

https://my.click.uz/services/pay?service_id=...&merchant_id=...&amount=1000.00&transaction_param=<номер заказа>&return_url=...

transaction_param is the same merchant_trans_idthat will arrive in the SHOP API. The card_type parameter (uzcard, humo) is optional.

Uzum Bank: Merchant API#

According to the developer.uzumbank.uz specification, Uzum Bank calls five webhooks on your server: /check, /create, /confirm, /reverse, /status.

  • POST, application/json, Basic authorization.
  • Amounts — in tiyins.
  • Answers: check → status: OK, create → CREATED, confirm → CONFIRMED, in case of error — FAILED and errorCode.
  • If /confirm does not arrive within 30 minutes after creation, the transaction is considered unsuccessful — transfer it to FAILED.
  • Upon a /confirm failure, Uzum asks /status up to 10 times.
  • A repeated /create or /confirm with the same transId are 10010 and 10016errors, not a repeat of a successful answer.

For card payments, Uzum has a separate Checkout product on its website with payment forms, card linking, and refunds.

Comparison#

PaymeClickUzum Bank
ProtocolJSON-RPC 2.0form-urlencoded → JSONREST JSON
Who initiatesPayme → youClick → youUzum → you
Basic authorization + whitelist IPMD5 signatureBasic
Unit of sumsum
StepsCheck → Create → PerformPrepare → Completecheck → create → confirm
Timeout12 hours—30 minutes
Sandboxtest.paycom.uzTesting section in docs.click.uzplease check when connecting

Fiscalization: ICPU and OFD#

When making payments to the public through payment organizations, the buyer must be issued an electronic fiscal receipt — this is directly indicated by the tax committee with reference to PCM No. 943 dated 23.11.2019. Click additionally refers to PP-5252 dated 04.10.2021. The receipt is issued by the payment system on your behalf, but you provide the product details.

ICPU (MXIK) is a 17-digit identification code for goods or services from the Unified Electronic Catalog of the tax authority (tasnif.soliq.uz). Each code has a packaging code and a VAT rate.

How to transmit data:

  • Payme — in the response CheckPerformTransaction an object detail with array items: title, price, count, code (ICPU), package_code, vat_percent. Payme sends the receipt registration result using the SetFiscalData method (fiscal_sign, qr_code_url, terminal_id).
  • Click — a separate POST https://api.click.uz/v2/merchant/payment/ofd_data/submit_items API with fields SPIC (ICPU), PackageCode, Price, Amount, VAT, VATPercent , and CommissionInfo (TIN or PINFL). Authorization — the Auth: merchant_user_id:sha1(timestamp + secret_key):timestampheader. If the merchant has not submitted the ICPU, Click applies default codes with the receipt type "Sale".
  • Uzum Bank is a separate Fiscalization product in the documentation.

⚠️ Don't invent ICPU and don't put one code on everything. Take codes from the catalog and your product cards. Arrange delivery as a separate item with your own code.

Connection checklist#

  • Contract with the service, cash register ID and keys received
  • Endpoint on HTTPS, responsible for fractions of a second, always HTTP 200 (Payme)
  • Signature check (Click) or Basic and IP (Payme, Uzum)
  • Idempotency: a repeated request with the same ID does not create a second payment
  • Booking and timeouts: 12 hours Payme, 30 minutes Uzum
  • ICPU and packaging codes for all goods and delivery
  • Sandbox tests by service scenarios
  • Verification (GetStatement in Payme) once a day
  • The keys are in secrets, not in the repository

Next — IT in Uzbekistan, part 4: personal data law ZRU-547 — localization after 2026 amendments, database registry and checklist

Comments 00 участников · 0 гостей🔒 Rate and discuss after signing up

Comments · 0

No comments yet.Sign in to comment, rate and see all comments.