Payment class

Constructors

Payment({required String reference, required String authEmail, required Map<PaynowCartItem, int> items, Currency currency = Currency.zwl})
Payment.fromMap(dynamic data)
factory

Properties

authEmail String
The user's email address.
final
cartItems → dynamic
no setter
currency Currency
Currency Currency Specifies the currency being used for this specific transaction
final
hashCode int
The hash code for this object.
no setterinherited
info String
Return Info of items in cart.
no setter
items Map<PaynowCartItem, int>
Cart Items. PaynowCartItem To hold a product or service information int Represents the quantity of the item
final
reference String
The unique identifier for the transaction.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
total double
Total amount of items in cart.
no setter

Methods

addToCart(PaynowCartItem cartItem, {int? quantity}) → void
Adding PaynowCartItems to Payment.items quantity
clearCart() → void
Clear all the items in the cart
deleteCartItem(PaynowCartItem cartItem) → void
Delete Item from cart
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeFromCart(PaynowCartItem cartItem, {int? quantity}) → void
Remove PaynowCartItems from Payment.items
toString() String
A string representation of this object.
override

Operators

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