j3k0 / cordova-plugin-purchase

In-App Purchase for Cordova on iOS, Android and Windows
https://purchase.cordova.fovea.cc
1.3k stars 535 forks source link

ANDROID Upon registration an INVALID item causes all subsequent items to turn INVALID #1197

Open cda963 opened 3 years ago

cda963 commented 3 years ago

!!! PLEASE USE IN SUBJECT [IOS] OR [ANDROID] AS PREFIX FOR YOUR ISSUE !!!

system info

Please report your OS, OS version, Compiling System and Version, used Plugin Version and any helpful information that can help us to resolve the problem.

OSX Sierra 10.12.04
Cordova 9.0.0
Device: Samsung Galaxy S7 Edge
Plugin Version: 5.32.1

When registering an array of IAPs, if one of them doesn't exist on the server (Google in my case), all subsequent items in the array will have their status = INVALID.

Expected behavior

Subsequent items should be validated correctly.

Observed behavior

Subsequent items don't seem to pass server validation.

Steps to reproduce

Register an array of 3 items, where only the first and last ones exists on the server; since the second one doesn't exist, will have it's status set to INVALID, but unfortunately the next one after it appears to be the same.

j3k0 commented 3 years ago

INVALID does not mean it doesn't pass server validation. It means it's not a product known to Google Play (in your case).

I know I can't reproduce this error because our test apps are plenty of "invalid" products. As far as I know this doesn't affect the valid one in any way. Can you share bits of your code and some logs?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.