PaymentData constructor

PaymentData({
  1. required CustomerDetails customer,
  2. required int amount,
  3. required String method,
  4. required String transactionId,
  5. required DateTime time,
  6. String status = "pending",
})

Implementation

PaymentData({
  required this.customer, // properly use CustomerDetails
  required this.amount,
  required this.method,
  required this.transactionId,
  required this.time,
  this.status = "pending",
});