Open heffthedev opened 1 year ago
store.when().verified()
or unverified
.Thanks for the reply! From the way I understand it, the restorePurchases function goes through all existing transactions and verifies them once more, right? So when I listen to when().verified() in case of many previous product-transactions, it should also be triggered many times - but how to determine when the last one has been triggered?
All transactions will be "approved", since all those transactions are in the same receipt (that's the way it is with AppStore), there will be a since receipt validation, you'll get a single call to "verified" (which takes the verified receipt as a parameter).
Listening to when().verified() gave the receipt, However, upon validation form apple server, I got an error.
Receipt is mailformed Error: 21002
Maybe you're testing with local products (defined in XML)? in that case the receipt is not verifiable server-side?
The restorePurchases ios function completes quickly and only later on the actual process is being run in the background / server side. I'd love some pointers regarding two things:
Also I have to run this function on ios to complete purchses made after each other (shopping cart functionality) at the end of the process or the verification of anything but the first purchase is not being run correctly. This could be related to #1466 but I haven't been able to confirm this yet. When using the update() function instead it does not work.