CheckoutResponse class

Constructors

CheckoutResponse({@required String message, @required String reference, @required bool status, @required CheckoutMethod method, @required bool verify})
CheckoutResponse.defaults()
CheckoutResponse.fromJson(dynamic resp)

Properties

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 return 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 might return true regardless whether a transaction fails or not.
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