CreateWalletObject class

Links your paymaya without re-logging in again.

final createWalletObject = CreateWalletObject(
  requestReferenceNumber: '65559',
  success:'https://yoururl.com/succes?id=65593',
  cancel: 'https://yoururl.com/cancel?id=65593',
  failure: 'https://yoururl.com/failure?id=65593',
  metadata: {
      ///...
  }
);

Creates a wallet link that allows charging to a PayMaya account. The redirect URLs are used to go back to merchant’s server after the link has been processed depending on the status, as shown in the request body. The metadata is used to add payment facilitator information, as indicated in this section.

Constructors

CreateWalletObject({required String requestReferenceNumber, Map<String, dynamic>? metadata, required String success, required String cancel, required String failure})
Links your paymaya without re-logging in again.
const
CreateWalletObject.fromJson(String source)
Links your paymaya without re-logging in again.
factory
CreateWalletObject.fromMap(Map<String, dynamic> map)
Links your paymaya without re-logging in again.
factory

Properties

cancel String
your cancel url callback.
final
failure String
your failure url callback.
final
hashCode int
The hash code for this object.
no setteroverride
metadata Map<String, dynamic>?
temporary solution, the metadata will have its own type'd properties since everything will be converted to json.
final
requestReferenceNumber String
request reference number from the merchant
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
success String
your success url callback.
final

Methods

copyWith({String? requestReferenceNumber, Map<String, dynamic>? metadata, String? success, String? cancel, String? failure}) CreateWalletObject
Links your paymaya without re-logging in again.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
convert Map to String json
toMap() Map<String, dynamic>
Links your paymaya without re-logging in again.
toString() String
A string representation of this object.
override

Operators

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