PaymentDetailsEntity constructor

PaymentDetailsEntity({
  1. String? amount,
  2. String? currency,
  3. String? merchantOrderId,
  4. String? orderPurpose,
  5. bool? notifyCustomer,
  6. CustomerDetails? customerDetails,
  7. String? redirectUrl,
  8. DateTime? createdAt,
  9. String? paymentLink,
  10. String? orderStatus,
  11. String? orderId,
  12. bool? sendReceiptToCustomer,
})

Creates a PaymentDetailsEntity with the specified parameters.

All parameters are optional, but for a valid payment, at minimum the following should be provided:

  • amount
  • currency
  • merchantOrderId
  • redirectUrl

Implementation

PaymentDetailsEntity({
  this.amount,
  this.currency,
  this.merchantOrderId,
  this.orderPurpose,
  this.notifyCustomer,
  this.customerDetails,
  this.redirectUrl,
  this.createdAt,
  this.paymentLink,
  this.orderStatus,
  this.orderId,
  this.sendReceiptToCustomer,
});