cordova-plugin-purchase icon indicating copy to clipboard operation
cordova-plugin-purchase copied to clipboard

iOS in_app is empty after validation

Open andi23rosca opened this issue 1 year ago • 2 comments

Observed behavior

On iOS, using a custom validator function that calls and endpoint that then calls the apple verify receipt endpoint. In the response from apple the in_app array is empty.

I tried to call the validator callback with a few of the different error codes but none of them trigger a refresh, or retry. I've also tried refreshing / reinitialising the store in the hopes a new receipt that had data in the in_app would be generated

All of the items i'm testing with are consumables

Expected behavior

The plugin should have a way to regenerate the receipt before triggering another validation call?

System Info

Output of cordova info.

Using capacitor, not cordova

andi23rosca avatar Jul 13 '23 14:07 andi23rosca

Also seeing this issue where in_app: [] is an empty array. This is causing validation failures. I think this might be related to https://github.com/j3k0/cordova-plugin-purchase/issues/1470

Any suggestions?

lincolnthree avatar Oct 09 '23 16:10 lincolnthree

Bumping this. Still happening since the v13 update of cordova-plugin-purchase - was not happening before.

lincolnthree avatar Dec 12 '23 17:12 lincolnthree