We recently released a new version of our In-App Purchase SDK for Unity Developers. The Amazon In-App Purchasing (IAP) API makes it easy for you to offer digital content and subscriptions for purchase within your app, such as in-game currency, expansion packs, upgrades, consumables, and more on Fire OS and Android devices. The latest version, IAP v2.0, leverages new features to better support Android OS 5.0 (Lollipop), work with our newer App Tester and better integration with the Amazon Appstore. If you have already been using the SDK in Unity, or looking to add it for the first time, it’s also straight forward to implement.
To get started, you need to download the package from our Unity plugins page here.
Once you have downloaded it, you’ll be ready to get started.
After downloading the Apps-SDK, open your Unity project and click on the Assets menu, then select Import Package -> Custom Package from the drop-down.
Navigate to where you downloaded the AmazonIAP.unitypackage, which you can find inside of the Unity folder of the Apps-sdk folder and select it. You’ll then be presented with the import window.
From here you can install all of the files and it will setup your project to include the Unity classes as well as the native Android code you’ll need to run on an actual device.
If you have not already registered your game, you’ll need to log into the Amazon Developer Portal and add your game. Click “Add a New App” to begin the process of submitting it to the Amazon Appstore or select your existing game.
Before you can leverage any IAP calls in your game, you’ll need to create new purchasable items in our portal. You can follow this walkthrough, which will guide you through the process.
After you have created a few items, you can leverage the IAP v2 plug-in methods and events here in Unity directly or check out the sample project.
At this point you are ready to begin using IAP in your Unity game. In order to make sure everything is configured correctly, you’ll want to download Tester Tool.
Once you have the Tester Tool. You can follow these steps to learn more about the IAP testing process and configuring your testing environment.
It’s free to be a developer on the Amazon Appstore. Once your game is ready, simply push it live and reach millions of Android customers in 236 countries and territories worldwide across Amazon Fire and Android devices.
In-App purchases are a great way to not only monetize your game but also offer additional content to players in order to extend replay and engagement. We are working hard to make sure the process is seamless for Unity developers looking to take advantages of the features offered by the Amazon In-App Purchase V2 API. For more information on the IAP v2 check out the following links:
- Jesse Freeman (@jessefreeman)