Google Play IAP ridiculous success rate

Invalid Client happens for these reasons:

  1. You are logged into the Google Play app with your developer account.  These will always fail.  You must use a test account.  You cannot even buy your live apps with your developer account.

  2. You have not setup an account with the Google Play app yet.

  3. You have not agreeded to the Google Play App’s license agreement yet.

  4. The Google Play app is failing to connect to Google’s servers.

  5. You’ve done too many restores in to short of a period of time and Google has brigged you for a while.

Try tapping on the Google Play app and make sure you can connect to
the store successfully and view other apps.  If you need additional
instructions on testing your app, please see:

http://developer.android.com/google/play/billing/billing_testing.html#billing-testing-static

Hi Rob,

Testing again, I’ve got one of my IAP’s working fine, but noted re “invalid client”

 - 1st test:  worked in Google, then in Corona worked with state “purchased”

 - 2nd test: worked in Google, BUT then “invalid client” in Corona (i.e. failed)

 - 3rd test: same as 2nd

So you think this could be your item 5?  Do you know any more about this?  Able to expand on “Google has brigged you for a while”? Wondering what sort of user error to present here?

Also, do you happen to know what Corona response would be if you did a “restore” on Google Play but there was nothing to restore at all? (e.g. failed / no response …)  [just if you happen to know offhand…]

If you call store.restore() with both Google and Apple, and there are no items to restore, there will not be a response generated by either server.  Note:  consumables are never restorable.

As for #5, if you google:   Corona INSTALL_PARSE_FAILED_CERTIFICATE_ENCODING  there are multiple threads where this has been discussed.  I don’t remember how long your app is blocked for, but it’s not a few minutes but its more like hours or days. 

Rob

Rob - this google IAP testing is certainly painful :frowning:

Can I ask what is the Google In-app Billing that Corona uses?  is it v2 API or v3 API?  

In the last couple of hours I’ve:

* realized I couldn’t test a new non-consumable purchase, so needed a new account

* had to create a new Google account - then when finalizing it submitted the name, which wasn’t real enough then had to be reviewed, so it wasn’t usage there and then

* so created another new Google Account

* try to purchase but it wants a credit card (even though I’ve got the email address down in the tester area of Google Play)

* got distracted as it was seemingly logging into the new account, but not working as I expect.  Then realized it was Game Services that it was logging in with the latest account, and when I was purchasing it would have been with the primary/first Google account on my device

* couldn’t work out how to trigger the app/device to ask me which account to use for purchase so deleted all my other google accounts on the device

* finally try again with the latest account, seems good, but then get a message back “high risk activity blar blar, try again in 30 mins”, probably because I’d used the same credit card on multiple accounts I assume

:frowning:  :)

Oh I do notice that when I go to purchase in this latest state I’m seeing two responses back from Google:

  • 1st one:  State:cancelled, errorType:cancelled

  • 2nd one: State:failed, errorType:invalidClient

We are currently using V2.  We are working on V3, but it’s not available yet.

To assist in testing, google has three or four products that you can use, one will always succeed, one will always fail, etc.  I forget the names of them, but the idea is that you test against Google’s test products, then put your real products in before you release them and then test a minimal amount of time against the real products.

ok thanks - yes I may have to drop back to just hard coding the test identifiers in and using this approach - was just moreso hoping to test the final/actual build - did ring the Merchant Center and they suggested that the “high risk transaction” would be due to the fact I’m using the same credit card number on the test account as I did on the developer account…was going to check this now and try another credit car…running out of credit cards to use here however  :)    Oh and they did say there was no way around testing with a test account without having a credit card/funding associated with it…

Hi Rob - had invalidClient raise its head in a specific scenario - have created a new thread/question here as I’m not sure how to handle this - would be good to get your advice:

http://forums.coronalabs.com/topic/42158-googleplay-gives-errorinvalidclient-for-you-already-own-this-item-scenario-how-to-handle/