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

Callback not working #6

Open
samcarlosimpres opened this issue Apr 15, 2016 · 6 comments
Open

Callback not working #6

samcarlosimpres opened this issue Apr 15, 2016 · 6 comments

Comments

@samcarlosimpres
Copy link

Everything is working fine, but I don't receive the callbacks after the payment. How can I solve that?

@chagasaway
Copy link

Hey @samcarlosimpres,

Can you provide a sample project that I can simulate the issue?

Thanks

@samcarlosimpres
Copy link
Author

Thanks for your answer @chagasaway,

The sample project is here:
https://github.com/samcarlosimpres/PayPal-Test

@chagasaway
Copy link

Thanks for the sample @samcarlosimpres, I'll take a deeply look later today on this issue.

@chagasaway
Copy link

chagasaway commented Apr 16, 2016

Hey @samcarlosimpres,

I analysed the issue in the sample repository and figured out that a method was not implemented on your MainActivity.java file.

public void onActivityResult(final int requestCode, final int resultCode, final Intent data) {

   super.onActivityResult(requestCode, resultCode, data);

   if (requestCode == PAY_PAL_REQUEST_ID) {
       payPalPackage.handleActivityResult(requestCode, resultCode, data); // <--
   } else {
       otherModulesHandlers(requestCode, resultCode, data);
   }

}

I have made a PR with this missing method as well:
https://github.com/samcarlosimpres/PayPal-Test/pull/1/files

If that method fixes the issue, please let me know to close the issue.

Best regards

@samcarlosimpres
Copy link
Author

samcarlosimpres commented Apr 19, 2016

Sorry for the late answer @chagasaway.

I'd test the code with your changes included and it's still not working.
There are two scenarios that I've used:

  1. It cannot find the method otherModulesHandlers.
  2. Removing the else statement of the method, the code compiles and works well. But the app crashes after finishing the payment. The error message is below.

http://imgur.com/07RtJqZ

@shaikhussian
Copy link

@samcarlosimpres have you fixed this issue? If you fixed give me suggestions that how to resolve it,Thank you

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

3 participants