My app is currently not yet published on Google Play, but I’ve uploaded the APK and the app is in Draft mode.
I’ve created the In-app products for it in the Google Play Developer Console, and have my google account listed in “Gmail accounts with testing access.”
When I try to buy a product in my Android app, the Google Play Store comes up, I hit “Accept & Buy,” and the purchase looks like it completes successfully – I even get the toast from Google Play that says “Thank you. Your item will appear shortly.” And, on top of that, I receive an email that shows my successful Google Play Order Receipt.
However, my transactionCallback() handler is getting a transaction.state as “failed” and the transaction.errorType is “invalidClient.”
Same error when I use the product Id android.test.purchased, which is Google’s test product id.
What’s really odd is when I tested this about a week ago and it worked and I was not getting “invalidClient.” I haven’t changed my code at all regarding this since then. I think all I’ve done is uploaded a new apk since then, and I made sure that the version on my handset is the same as the new apk. Also, I’ve tested this with multiple google accounts on multiple devices.
Anyone have any ideas what’s going on, or know what “invalidClient” means?