PaymentFailure constructor

const PaymentFailure(
  1. String gatewayName,
  2. String message, {
  3. Object? cause,
})

Creates a failure result from gatewayName with a message and optional underlying cause.

Implementation

const PaymentFailure(super.gatewayName, this.message, {this.cause});