Skip to content
This repository was archived by the owner on May 16, 2026. It is now read-only.
This repository was archived by the owner on May 16, 2026. It is now read-only.

Can only use lower 16 bits for requestCode  #65

Description

@gururaja-kambala

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

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions