MomoPaymentInfo constructor

MomoPaymentInfo(
  1. {String appScheme,
  2. String merchantname,
  3. String merchantcode,
  4. double amount,
  5. String orderId,
  6. String orderLabel,
  7. String partner,
  8. String merchantnamelabel,
  9. double fee,
  10. String description,
  11. String username,
  12. String extra,
  13. 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);