PayMayaSDK class abstract
This SDK is a mirror of PayMayaSDK-JS.
The author chose this because other SDK uses WebView and that is not ideal for this package.
Example:
final paymayaSdk = PayMayaSDK.init('pk-5123sdas', isSandbox: true);
Constructors
- PayMayaSDK.init(String publicKey, {bool isSandbox = true})
-
This SDK is a mirror of PayMayaSDK-JS.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addTransactionHandler(
Map< String, dynamic> event, void callback(String args)) → void - Warning: THIS WILL ONLY WORK ON WEB
-
createCheckOut(
PaymayaCheckout checkout) → Future< PaymayaResponse> - This method redirects the user to PayMaya Checkout, where the user can finalize his/her payment.
-
createdCreditCardForm(
) → Future< String> - Not suitable for production. IF you have suggestions, give us a PR.
-
createSinglePayment(
PaymayaSinglePayment createSinglePayment) → Future< PaymayaResponse> - creates a single payment redirection, allowing the user to finalize the transaction.
-
createWalletLink(
CreateWalletObject createWalletObject) → Future< PaymayaResponse> - creates a wallet link that allows charging to a PayMaya account.
-
genericRequestFn(
{required Map< String, dynamic> requestBody, required String url}) → Future<Map< String, dynamic> > - Use this to request request link from PayMaya API. Be sure to read the documentation here
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited