FlutterRazorpay
FlutterRazorpay copied to clipboard
Code fails with no closure function found
Parameters needs to be added of respective type to each of the handlers in order to resolve the error. Otherwise, handlers are not called once the payment result is received.
handlers can be like below:
void handlerPaymentSuccess(PaymentSuccessResponse response) { print("Payment success"); }
void handlerErrorFailure(PaymentFailureResponse response) { print("Payment error"); }
void handlerExternalWallet(ExternalWalletResponse response) { print("External Wallet"); }