FlutterRazorpay icon indicating copy to clipboard operation
FlutterRazorpay copied to clipboard

Code fails with no closure function found

Open rajasuman09 opened this issue 5 years ago • 0 comments

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"); }

rajasuman09 avatar Jun 27 '20 13:06 rajasuman09