Everything is fine and the store.receiptBase64Data () function returns exactly what I need to validate the recipe. But the Restore function does not work in it. The application just crashes. Another store.isActive is always true. Even when the plugin is not initialized. How can we restore purchases? Any ideas?
About restoring: make sure you send only transactions to the finishTransaction. It is possible that you are sending some ather argument there.
Not all events should be sent to finishTransaction, you can try printing the event (print(json.prettify(event)) to see if may be you are closing not a transaction.
I’m not sure what is your issue with receipts. Code which is handling receipts did not change for years. This days receipt validation should happen on server, or, locally, with new IAP plugin.
Well, Corona code may gad no change, but Apple certainly made a change to the receipt in iOS13 and the old store API does not handle it well, so now we cannot verify a purchase! The new IAP plugin is supposed to replace the old store API. The problem I have is that there is no clear migration guide to the new IAP plugin. It behaves differently. It has new methods and different event management. We have no clue how the developer of this plugin intended us to use it. There is literally no documentation about this plugin not to mention that its still marked as experimental.