MFPaymentStatusRequest constructor

MFPaymentStatusRequest({
  1. String? invoiceId,
  2. String? paymentId,
})

Implementation

MFPaymentStatusRequest({String? invoiceId, String? paymentId}) {
  if (invoiceId == null) {
    this.key = paymentId;
    this.keyType = MFKeyType.PAYMENT_ID;
  } else if (paymentId == null) {
    this.key = invoiceId;
    this.keyType = MFKeyType.INVOICE_ID;
  }
}