PaymentResultData constructor

PaymentResultData({
  1. required String? errorString,
  2. String? errorCode,
  3. required PaymentResult paymentResult,
})

Creates a PaymentResultData with the given paymentResult.

Provide errorString and errorCode when paymentResult is PaymentResult.error.

Implementation

PaymentResultData({
  required this.errorString,
  this.errorCode,
  required this.paymentResult,
});