Flutter Standard Plugin - API Classes and Methods
Documented below is the API package for the plugin.
The below method opens the checkout.
open(map<String, dynamic> options)
options map has
key as a required property. All other properties are optional. Refer to our standard checkout documentation for a complete list of options for the checkout form.
The below method registers event listeners for payment events.
on(String eventName, Function listener)
- eventName: The name of the event.
- listener: The function to be called. The listener should accept a single argument of the following type:
The event names have been exposed as
strings by the
The payment was successful.
The payment was not successful.
An external wallet was selected.
The error codes have been exposed as integers by the
The error code is available as the code field of the
PaymentFailureResponse instance passed to the callback.
There was a network error. For example, loss of internet connectivity.
An issue with options passed in
User cancelled the payment.
Device does not support TLS v1.1 or TLS v1.2.
An unknown error occurred.