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

Can only use lower 16 bits for requestCode #65

Open
gururaja-kambala opened this issue Jul 1, 2022 · 2 comments
Open

Can only use lower 16 bits for requestCode #65

gururaja-kambala opened this issue Jul 1, 2022 · 2 comments
Assignees
Labels
bug Something isn't working investigation needed

Comments

@gururaja-kambala
Copy link

Describe the bug

Getting below exception:

I/flutter ( 3300): appname
I/flutter ( 3300): Google Pay
I/flutter ( 3300): Starting transaction with id 3857213326
E/upi_pay ( 3300): java.lang.IllegalArgumentException: Can only use lower 16 bits for requestCode
I/flutter ( 3300): UpiTransactionResponse { txnId: null, responseCode: null, approvalRefNo: null, status: UpiTransactionStatus.failure, txnRef: null, rawResponse: failed_to_open_app }

when UpiPay.initiateTransaction is called.

as per : https://stackoverflow.com/a/28783626/4758816 , below line should have a number less than 65535

private var requestCodeNumber = 201119

activity.startActivityForResult(intent, requestCodeNumber)

Environmental Details

  • OS: Android 11
@gururaja-kambala
Copy link
Author

I am able to cover my use case with above mentioned changes in https://github.com/gururaja-kambala/upi_pay.git. (forked from https://github.com/GJJ2019/upi_pay master)

Before submitting PR do I need to test any specific test case?

@reeteshranjan
Copy link
Collaborator

@gururaja-kambala what you have forked is the base of an un-merged PR. Had you done your work in a fork of upi_pay 1.0.1 it would be easy to review, merge and close a PR of your work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working investigation needed
Projects
None yet
Development

No branches or pull requests

3 participants