Android billing v3 - no signature

What do I want? After extracting all the purchased items, I need to check the purchase on my server, I want to do this with the signature and signed data received from the payment in the application.

At first I used billing v2 in the application, I got the correct signature and signdata every time with my developer account for the static test sku android.test.purchased .

I switched to the new billing v3 because it seems very enjoyable to implement, but I no longer get the signature.

I uploaded the previous version of my APK on Google (it’s never published because it’s not finished yet), I also added an active product in the application for further tests.

The APK download was yesterday at 10:00 PM, so I also think I’ve waited enough.

What have i tried? I installed the application in another version:

  • unsigned apk with the "active" product added by me in the application => without signature
  • unsigned apk with sku android.test.purchased => no signature
  • signed apk with the "active" product added by me in the application => without signature
  • signed apk with sku android.test.purchased => no signature

These 4 "applications state:" I tried as my developer phone (where my main Google account is the same user as the developer console account), and with the test account when setting up another phone, the test account is also placed in my account in the "test accounts" section.

Hmm, and now I have no more ideas how I get my signature. I think that I will receive a signature with the active active application + the active product in the application, because the payment process works (the adb log file shows that I bought "Android.test.purchased") I myself created the product in the application, I also don’t I could test, because if I use my developer account, the game store tells me that "it can’t buy, it already belongs," and with my test account I got an error "This product is not available for your account."

Do you have a solution for my problem?

+13
java android in-app-billing
Dec 15 '12 at 14:56
source share
2 answers

I found with V3 that test products do not return any signed data, but if you sign your application with the release key and end the flow of purchases of your actual products, you get the signed data.

+2
Jan 16 '13 at 6:06
source share

You no longer sign up for test purchases (android.test. *). I took the dive and uploaded my application to the market (I just did not publish it) using my real products.

Signatures with low and contemplation began to return! I recommend changing any server-side validation you use to skip signature verification when the data contains the android.test identifier. *. Id.

Note. An important bit about this is "using my real products."

+1
Feb 23 '13 at 19:08
source share



All Articles