This guide describes the process of setting up the Amazon Appstore and the Amazon Underground stores for use with the Unity in-app purchasing (IAP) system. This includes establishing the digital records and relationships that are required to interact with the Unity IAP API, setting up an Amazon developer account, and testing and publishing a Unity IAP application.
As with other platforms, the Amazon stores allow for the purchase of virtual goods and managed products. These digital products are identified using a string identifier and an additional type to define durability, with choices including subscription (capable of being subscribed to), consumable (capable of being rebought), and non-consumable (capable of being bought once). Note that the Amazon Underground store does not support subscription.
Amazon has established two app stores for both non-FireOS Android devices as well as FireOS, set up to support free and paid versions of the same app:
There are cross-store installation issues with publishing to multiple Android IAP stores (e.g. Amazon and Google) simultaneously and shared Android bundle identifiers. Please see the page on Cross-store installation issues with Android in-app purchase stores to learn more.
For non-FireOS Android devices, download and install the Amazon Appstore. Additionally, if you plan on an Underground version of your app, download and install the Amazon Underground store.
On FireOS devices, the Amazon Appstore and the Amazon Underground apps should come pre-installed. If your FireOS device doesn’t have the Amazon Underground store installed, download and install it from the Amazon website.
Once you have installed Amazon Appstore (and Amazon Underground, if desired), install the Amazon App Tester.
|[11:07:01] user@laptop:/Applications | $ adb devices
List of devices attached
00DA0807526300W5 device
Setting up to use Unity’s IAP takes a few steps.
Import the Unity IAP plug-in. See Setting up Unity IAP for more information (Unity 5.3 or higher).
Set the IAP target store. You should already have an Android app set up. Set the target store using Unity IAP’s Window > Unity IAP > Android > Target Amazon menu item. This is used to toggle between Google and Amazon stores.
Alternatively, call the API:
UnityPurchasingEditor.TargetAndroidStore(AndroidStore.AmazonAppStore)
It’s not necessary to download Amazon’s native IAP plug-in when preparing to use the Amazon stores, as all of the functionality it provides is already included in Unity’s IAP service.
Add your app. From the Amazon Developer Portal select Add a New App.
Set up your catalog. Using the product descriptions you prepared earlier, add the items to the Amazon catalog using the Amazon Developer Portal. Navigate to your app’s page, and find the In-App Items section. Use the Add a Consumable, Add an Entitlement, or Add a Subscription buttons to set up your catalog.
Is something described here not working as you expect it to? It might be a Known Issue. Please check with the Issue Tracker at issuetracker.unity3d.com.
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
More information
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising. Some 3rd party video providers do not allow video views without targeting cookies. If you are experiencing difficulty viewing a video, you will need to set your cookie preferences for targeting to yes if you wish to view videos from these providers. Unity does not control this.
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.