PaymayaCheckout class

Paymaya single checkout object Example:

  final checkout = PaymayaCheckout(
    totalAmount: totalAmount,
    buyer: buyer,
    items: items,
    redirectUrl: redirectUrls, /// success,failure,cancel
    requestReferenceNumber: requestReferenceNumber,
    metadata: {},
  );

Constructors

PaymayaCheckout({required PaymayaAmount totalAmount, required PaymayaBuyer buyer, required List<PaymayaItem> items, required PaymayaRedirectUrls redirectUrl, required String requestReferenceNumber, Map<String, Object>? metadata})
Paymaya single checkout object Example:
const
PaymayaCheckout.fromJson(String source)
Paymaya single checkout object Example:
factory
PaymayaCheckout.fromMap(Map<String, dynamic> map)
Paymaya single checkout object Example:
factory

Properties

buyer PaymayaBuyer
Checkout Buyer info
final
hashCode int
The hash code for this object.
no setteroverride
items List<PaymayaItem>
Checkout Items.
final
metadata Map<String, Object>?
Other metadata fields are found here This field is subject for discussion whether it will be a dart object or just a Map variable.
final
redirectUrl PaymayaRedirectUrls
Your redirect url to be sent in paymaya and receive its transaction status.
final
requestReferenceNumber String
the requestReferenceNumber is a secret number provided by PayMaya
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalAmount PaymayaAmount
Checkout total amount
final

Methods

copyWith({PaymayaAmount? totalAmount, PaymayaBuyer? buyer, List<PaymayaItem>? items, PaymayaRedirectUrls? redirectUrl, String? requestReferenceNumber, Map<String, Object>? metadata}) PaymayaCheckout
Paymaya single checkout object Example:
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Paymaya single checkout object Example:
toMap() Map<String, dynamic>
Paymaya single checkout object Example:
toString() String
A string representation of this object.
override

Operators

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