Skip to content
This repository was archived by the owner on Apr 28, 2022. It is now read-only.

How to use OpenIAB Unity Plugin with Google Play

pixxem edited this page Aug 10, 2014 · 21 revisions

http://developer.android.com/google/play/billing/index.html

Introduction

The purpose of this page is to guide you through setting in-app purchases on Google Play store, with Unity and the OpenIAB plugin.

Prerequisites

You need to have a version of Unity (the free version is OK), the Android SDK up-to-date, a Java JDK correctly installed on your computer ("visible" by Unity), and an Android Device for testing. For instance, the following set up works with these instructions : Unity 4.5.2, Java 1.7.0_65 64 bits on Windows 7, with a Google Nexus 7 on Android 4.4.4.

You'll also need a Google Developer account, with a bank account verified (Google Wallet > Payment settings). Besides that, to have a second Gmail account is more convenient for testing puposes. For instance, on the Nexus 7, you can create an additionnal user account with a different Gmail address for tests.

You're supposed to be familiar with the Google Play Developer Console uploads, and the terms of in-app billing, by reading Official Google Play In-app Billing. You don't need to run all the Java code but at least to be aware of definition of SKU, License Key, in-app product prices, etc.

Download & install

Unity package

License Key

from Google Play

Player Settings

Keystore & password

Upload the APK

devices supported

Google In-app Product

declare the product and price

Testing

wait and test