open(map<String, dynamic> options)
Opens the checkout.
on(String eventName, Function listener)
Registers event listeners for payment events.
• eventName
: The name of the event.
• listener
: The function to be called. The listener should accept a single argument of the following type:
◦
◦ for EVENT_PAYMENT_FAILURE
◦ for EVENT_EXTERNAL_WALLET
clear()
Clears all listeners.
Handy Tips
The options
map has key
as a required property in the open checkout method. All other properties are optional. Know about all the