checkout library
Client-safe part of uz_payments: checkout links and money helpers only. Import this in Flutter apps; it contains no merchant secrets or webhooks.
Classes
- ClickCheckout
-
Builds Click payment links (
my.click.uz/services/pay). - PaymeCheckout
- Builds Payme checkout links (GET method of "Инициализация платежей").
Functions
-
formatSom(
int tiyin) → String -
Formats tiyin as a so'm string with two decimals:
150000→"1500.00". -
parseSomToTiyin(
String value) → int? -
Parses a so'm amount as sent by Click (
"1000","1000.0","1000.50") into tiyin without using floating point. Returnsnullfor anything that is not a plain non-negative decimal with at most two fractional digits. -
somToTiyin(
int som) → int - Converts whole so'm to tiyin.