Skip to main content
Documented below is the API package for the plugin.

Razorpay Class

Method

open(map<String, dynamic> options) : Opens the checkout. on(String eventName, Function listener) : Registers event listeners for payment events. clear() : Clears all listeners.
Handy TipsThe options map has key as a required property in the open checkout method. All other properties are optional. Know about all the options available on checkout form.

Event Names

The event names have been exposed as strings by the Razorpay class.

PaymentSuccessResponse

PaymentFailureResponse

ExternalWalletResponse



Error Codes

The error codes are exposed as integers by the Razorpay class. The error code is available as the code field of the PaymentFailureResponse instance passed to the callback.