PaymentResponse constructor

PaymentResponse({
  1. required PaymentStatus status,
  2. required String message,
  3. String? transactionId,
  4. String? orderId,
  5. PaymentProvider? provider,
  6. String? errorCode,
  7. Map<String, dynamic>? rawResponse,
  8. DateTime? timestamp,
  9. double? amount,
  10. String? currency,
  11. Map<String, dynamic>? metadata,
})

Implementation

PaymentResponse({
  required this.status,
  required this.message,
  this.transactionId,
  this.orderId,
  this.provider,
  this.errorCode,
  this.rawResponse,
  DateTime? timestamp,
  this.amount,
  this.currency,
  this.metadata,
}) : timestamp = timestamp ?? DateTime.now();