State changes during an in-app purchase in Ionic Cordova

Here is a cleaner and summarized version of the data/state changes that are crucial for recording the transaction. For raw dumps view this article – Ionic Cordova In-App Purchase Plugin Events Data Dumps ——————————— START OF NEW PURCHASE ——————————— state:requested canPurchase: false owned: false state:initiated canPurchase: false owned: false state:initiated canPurchase: false owned: false state:approved… Continue reading State changes during an in-app purchase in Ionic Cordova

Ionic Cordova In-App Purchase Plugin Events Data Dumps

Below are the dumps of data received in ionic cordova app from Google billing or in-app purchase plugin events. See this article for a summarized version – State changes during an in-app purchase in Ionic Cordova this.store.get(my_product_id) {“id”:”com.myapp.annualsubscription2″,”alias”:”com.myapp.annualsubscription2″,”type”:”paid subscription”,”group”:”default”,”state”:”valid”,”title”:”Annual Subscription”,”description”:”Play unlimited with an Annual Subscription”,”priceMicros”:4000000,”price”:”₹4.00″,”currency”:”INR”,”countryCode”:null,”loaded”:true,”canPurchase”:true,”owned”:false,”introPrice”:””,”introPriceMicros”:””,”introPricePeriod”:null,”introPriceNumberOfPeriods”:null,”introPricePeriodUnit”:null,”introPriceSubscriptionPeriod”:null,”introPricePaymentMode”:null,”ineligibleForIntroPrice”:null,”discounts”:[],”downloading”:false,”downloaded”:false,”additionalData”:null,”transaction”:null,”trialPeriod”:null,”trialPeriodUnit”:null,”billingPeriod”:1,”billingPeriodUnit”:”Year”,”valid”:true} this.store.products Products: [{“id”:”com.myapp.annualsubscription2″,”alias”:”com.myapp.annualsubscription2″,”type”:”paid subscription”,”group”:”default”,”state”:”valid”,”title”:”Annual Subscription”,”description”:”Play unlimited with an Annual Subscription”,”priceMicros”:4000000,”price”:”₹4.00″,”currency”:”INR”,”countryCode”:null,”loaded”:true,”canPurchase”:true,”owned”:false,”introPrice”:””,”introPriceMicros”:””,”introPricePeriod”:null,”introPriceNumberOfPeriods”:null,”introPricePeriodUnit”:null,”introPriceSubscriptionPeriod”:null,”introPricePaymentMode”:null,”ineligibleForIntroPrice”:null,”discounts”:[],”downloading”:false,”downloaded”:false,”additionalData”:null,”transaction”:null,”trialPeriod”:null,”trialPeriodUnit”:null,”billingPeriod”:1,”billingPeriodUnit”:”Year”,”valid”:true}]… Continue reading Ionic Cordova In-App Purchase Plugin Events Data Dumps

Compiling Old Ionic Cordova Projects for Android API 32 and Google Billing Client 4.0

You have developed a good and nice project with Cordova a few years back and now need to publish an update then chances are you are stuck like me. My project was just 2 years old and now while trying to update Google wanted support for API level 31 and Google Billing Client 4.0.0 at… Continue reading Compiling Old Ionic Cordova Projects for Android API 32 and Google Billing Client 4.0