PaymeCheckout class

Builds Payme checkout links (GET method of "Инициализация платежей").

Safe to use in a Flutter app: it needs only the public merchant id, never the cashbox key.

final payme = PaymeCheckout(merchantId: '587f72c72cac0d162c722ae2');
final url = payme.url(account: {'order_id': '197'}, amountTiyin: 500);
// https://checkout.paycom.uz/bT01ODdmNzJjNzJjYWMwZDE2MmM3MjJhZTI7YWMub3JkZXJfaWQ9MTk3O2E9NTAw

Constructors

PaymeCheckout({required String merchantId, bool test = false})

Properties

hashCode → int
The hash code for this object.
no setterinherited
merchantId → String
Merchant (cashbox) id or alias from the Payme Business cabinet.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
test → bool
Use the sandbox checkout (test.paycom.uz) instead of production.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
url({required Map<String, String> account, required int amountTiyin, String? lang, String? returnUrl, Duration? returnDelay, String? currency}) → Uri
Returns the checkout URL.

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

productionBase → const String
Production checkout host.
testBase → const String
Sandbox checkout host.