Skip to content

Commit

Permalink
Update misleading documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
j3k0 committed Nov 11, 2014
1 parent 22aef6f commit d4e59c0
Showing 1 changed file with 2 additions and 37 deletions.
39 changes: 2 additions & 37 deletions doc/android.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,3 @@
# Setup

## Add your license key

As android uses a public key for verification of purchase data consistency, you have to put the public key of your application inside the config.xml file under a preference tag like this:

<preference name="android-iabplugin-license-key" value="yourpublickey" />

You can find your public key inside Google Developer Console under SERVICES & APIS tab of the specific application.

## PlayStore

from https://github.com/mohamnag/InAppBilling/wiki/Stores%20setup#playstore

> Recently you can test IAP on PlayStore only if your app is already published. If you don't want to make it available before testing, you can publish it in alpha (recommended) or beta state instead of production.
Read Google's documentations about IAP and testing it. Any thing may have been changed in between.

Steps to setup IAP in Google's developer console:

1. `Developer Console` Create your app, provide all needed meta data

2. `Developer Console` Upload a **signed release** APK to either alpha, beta or production

3. `Developer Console` Setup your in app items

4. `Developer Console` Setup your test users if you don't want to spend real money buying your own app ;)
Its easier to be done with an alpha published app. You add users to a google group then send a link and they sign up on their own.

4. `Developer Console` Publish your app and wait until it is available to (test) users.
This may take hours!

5. Install **same** release signed app on a device which is logged into play store using a test account.
If you use the debug build, you can do some actions, however you will not be able to buy the product.

6. Try in-app purchasing!

This have moved:

See https://github.com/j3k0/cordova-plugin-purchase/wiki/HOWTO#setup-android-applications

0 comments on commit d4e59c0

Please sign in to comment.