WingPayment class
Payment to authorize. rand_str and timestamp are generated by the
SDK; every optional field is sent only when set.
Constructors
- WingPayment({required String orderReferenceNo, required num amount, required String returnUrl, required String cancelUrl, WingIntegrationType integrationType = WingIntegrationType.webApp, bool isWingAppInstalled = false, String? itemName, String? merchantName, String? wingAccount})
-
Creates a WingPayment.
const
Properties
- amount → num
-
amount to pay, at most 2 decimals; sent as
15.00in USD or KHRfinal - cancelUrl → String
-
Wing redirects the payer here (GET) when they cancel
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- integrationType → WingIntegrationType
-
WingIntegrationType.webApp (default) or
WingIntegrationType.mobileApp for the deep link back to your app
final
- isWingAppInstalled → bool
-
whether the Wing Bank app is installed on the payer's phone
(
is_wingapp_installed)final - itemName → String?
-
remark of the product or item, max 255 characters
final
- merchantName → String?
-
name shown to the payer; Wing shows your registered name without it
final
- orderReferenceNo → String
-
your unique order id (
order_reference_no)final - returnUrl → String
-
Wing redirects the payer here (GET) after paying, with
?status=success&token=...final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wingAccount → String?
-
Wing account filled in for the payer
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited