-
-
Notifications
You must be signed in to change notification settings - Fork 665
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
Issue for receipt validation in Android #1262
Comments
Are you sure that the error is from |
#1262 (comment) |
Looks like you need to catch it. Your response is currently returning error |
await RNIap.validateReceiptAndroid(
{
} please help me to figure this out |
@hyochan Please update in receiptValidationAndroid API 'https://www.googleapis.com/androidpublisher/v3/applications' to 'https://androidpublisher.googleapis.com/androidpublisher/v3/applications/' |
Thanks for the report. Fixed in |
Upgraded to 5.2.13 then RC 6.0.0-rc.23 but still getting the error of "Possible Unhandled Promise Rejection" when calling validateReceiptAndroid. Not sure if the signature changed but here is my line calling the method:
Current Versions: TIA, |
@BStenfors9119 Have you removed the cache and try again? Try removing |
Ahhhh, good thinking will do that right now. By the way just wanted to extend my appreciation for this module. Will report back on clearing node_modules. Cheers, |
@hyochan no such luck deleting the node modules and reinstalling them. Still getting the same exception when trying to validate a android receipt. This is the error it is returning: TIA, |
Sorry for the confusion and totally embarrassed. This is working as expected using version 5.2.13. Sorry for any wasted time :/. B |
@BStenfors9119 I have the same problem, I am successfully generating accessToken on the backend with nodejs, but the return from validateReceiptAndroid is returning {"statusCode":401,"line":1124,"column":69}. And if put the url in browser returns bellow { I am using Thank you very much if you could help me |
@edersonfaccin I had this issue as well but was able to resolve by simply saving one of my in app purchases. Weird I know, but it started working after doing that. I also have heard that changing permissions in Google Play can take 24 hours to propogate too |
Hi, where do we get the access token from? |
anyone solved this issue ??????????? |
Version of react-native-iap
5.2.11
Version of react-native
0.63.4
Platforms you faced the error (IOS or Android or both?)
Android
Tested environment (Emulator? Real Device?)
Real device
Steps to reproduce the behavior
const result = await RNIap.validateReceiptAndroid(
purchases.packageNameAndroid,
purchases.productId,
purchases.purchaseToken,
token,
true,
);
debugLog('result', result);
AccessToken
Error
The text was updated successfully, but these errors were encountered: