Open petrot opened 1 year ago
I am seeing same transaction.verify();
within the approved callback not triggering verified.
Looks like verified is not triggered w/out a receipt validator, https://github.com/j3k0/cordova-plugin-purchase/wiki/HOWTO:-Migrate-to-v13#2-using-receipt-validation-with-no-back-end-server.
BTW - on Android calling transaction.finish()
in the approved callback does not work for us.
Observed behavior
Include logs with
store.verbosity = store.DEBUG
Expected behavior
System Info
I use Capacitor 5.0.4 with Ionic 7.0.9
Description
I have a working implementation with my old Ionic/Cordova based code. Now I try to use the plugin in my new Capacitor based app.
My code:
When I run the app, the initialization logic runs fine, but the cached (?) receipts contain invalid data, the id is just the lead part of my products (com.myname.myapp instead of com.myname.myapp.onetime):
from receiptUpdated event (just the transaction part of the receipt):
I also have a fired event from the finished event, but with the same problem:
PROBLEM: If I buy a product, it works (I have correct id-s in the transactions), but I get the previously bought products only with the restorePurchase function (in that case the transactions are fine). With my old Cordova app, I got by old purchases right after the plugin initialization.
My ordering code with some RxJs magic: