How to test Storekit on Google Play?

209 views
Skip to first unread message

Ginsoft Gin

unread,
Nov 10, 2013, 10:58:57 AM11/10/13
to apportabl...@googlegroups.com
Hi,

I was able to create In-App on google play with the following command
"BUILDTIMESTAMP=1384026518 SIGNING_PUBKEY='' ANDROID_KEYSTORE='~/my-testing-release-key.keystore' ANDROID_KEY_NAME=mytestingkeys ANDROID_KEYSTORE_PASS=password'' apportable load"

I was able to build the APK and uploaded to Google store, where I it shows the In-App product option.

However, I seem to have an issue testing it.  When I click on the In app, which activates this code

SKPayment *payment=[SKPayment paymentWithProductIdentifier:@"hh010_android"];

[[SKPaymentQueue defaultQueue]addPayment:payment];


I got this error on my android device:

"This version of the application is not configured for billing through Google Play.  Check the help center for more information"

Any idea what I did wrong?



Marc Salem

unread,
Nov 12, 2013, 2:38:56 AM11/12/13
to apportabl...@googlegroups.com

To test in-app purchasing, you build needs to match what is deployed on Google Play very closely:

* you must sign with the same release key, currently our build system needs an absolute path for the ANDROID_KEYSTORE variable.
* you must provide the correct SIGNING_PUBKEY, you get this from the Google Play Publisher dashboard where it says "YOUR LICENSE KEY FOR THIS APPLICATION".
* your android version number must match a Google Play deployed APK, you set this using BUILD_TIMESTAMP=1384026518, or VERSION_CODE=1384026518

Please try this:

$ BUILD_TIMESTAMP=1384026518 SIGNING_PUBKEY="<LICENSE_KEY>" ANDROID_KEYSTORE='/Full/Path/To/my-testing-release-key.keystore' ANDROID_KEY_NAME=mytestingkeys ANDROID_KEYSTORE_PASS=password'' apportable load

You can also add "-v signing" to check that the signing is successful with the expected arguments to jarsigner.

Cheers,
-Marc
Reply all
Reply to author
Forward
0 new messages