ClickCheckout class
Builds Click payment links (my.click.uz/services/pay).
Safe to use in a Flutter app: it needs only the public service and merchant ids, never the secret key.
final click = ClickCheckout(serviceId: 36, merchantId: 46);
final url = click.url(transactionParam: 'order-197', amountTiyin: 100000,
returnUrl: 'https://shop.example/paid');
Constructors
- ClickCheckout({required int serviceId, required int merchantId})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- merchantId → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceId → int
-
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 String transactionParam, required int amountTiyin, String? returnUrl, String? cardType, String? merchantUserId}) → Uri - Returns the payment URL.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited