MomoPaymentInfo constructor
MomoPaymentInfo(- {String appScheme,
- String merchantname,
- String merchantcode,
- double amount,
- String orderId,
- String orderLabel,
- String partner,
- String merchantnamelabel,
- double fee,
- String description,
- String username,
- bool isTestMode: false}
)
Implementation
MomoPaymentInfo({
this.appScheme,
this.merchantname,
this.merchantcode,
this.amount,
this.orderId,
this.orderLabel,
this.partner,
this.merchantnamelabel,
this.fee,
this.description,
this.username,
this.extra,
this.isTestMode = false,
}) : assert(merchantname != null &&
merchantname.isNotEmpty &&
merchantcode != null &&
merchantcode.isNotEmpty &&
amount != null &&
amount > 0 &&
orderId != null &&
orderId.isNotEmpty &&
orderLabel != null &&
orderLabel.isNotEmpty &&
partner != null &&
partner.isNotEmpty);