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

iOS in_app is empty after validation #1439

Open andi23rosca opened 1 year ago

andi23rosca commented 1 year ago

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

lincolnthree commented 1 year ago

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 commented 11 months ago

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