Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code fails with no closure function found #1

Open
rajasuman09 opened this issue Jun 27, 2020 · 0 comments
Open

Code fails with no closure function found #1

rajasuman09 opened this issue Jun 27, 2020 · 0 comments

Comments

@rajasuman09
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant