CheckoutResponse class Null safety

Constructors

CheckoutResponse({required String message, required String? reference, required bool status, required CheckoutMethod method, required bool verify, PaymentCard? card, BankAccount? account})
CheckoutResponse.defaults()

Properties

account ↔ BankAccount?
The bank account used for the payment. Will be null if the customer didn't use bank account as a means of payment
read / write
card PaymentCard?
The card used for the payment. Will be null if the customer didn't use card payment
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
message String
A user readable message. If the transaction was not successful, this returns the cause of the error.
read / write
method CheckoutMethod
The means of payment. It may return CheckoutMethod.bank or CheckoutMethod.card
read / write
reference String?
Transaction reference. Might be null for failed transaction transactions
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
status bool
The status of the transaction. A successful response returns true and false otherwise
read / write
verify bool
If the transaction should be verified. See https://developers.paystack.co/v2.0/reference#verify-transaction. This is usually false for transactions that didn't reach Paystack before terminating [...]
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited