This guide describes the process of setting up the Amazon Appstore 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 store allows 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).
Hay problemas de instalación multi-tienda con publicar a varias tiendas Android IAP (e.g. Amazon y Google) de manera simultánea y con Android bundle indetifiers compartidos. Por favor mirar la página acerca de problemas de instalación multi-tienda con tiendas de Android in-app purchase para aprender más.
For non-FireOS Android devices, download and install the Amazon Appstore.
On FireOS devices, the Amazon Appstore should come pre-installed.
Once you have installed the Amazon Appstore, install the Amazon App Tester.
|[11:07:01] user@laptop:/Applications | $ adb devices
List of devices attached
00DA0807526300W5 device
La configuración para utilizar el IAP de Unity toma unos pocos pasos.
Importe el plug-in de Unity IAP. Mirar Configurando Unity IAP para más información (Unity 5.3 o posterior).
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, Amazon, and other Android stores.
Alternativamente, llame la API:
UnityPurchasingEditor.TargetAndroidStore(AndroidStore.AmazonAppStore)
No se necesita descargar el plug-in nativo IAP de Amazon para utilizar las tiendas de Amazon, ya que toda la funcionalidad que proporciona ya está incluida en el servicio IAP de Unity.
Agregue su app. Del Amazon Developer Portal seleccione Add a New App.
Configure su catálogo. Utilizando las descripciones de producto que preparo antes, agregue los items al catálogo de Amazon utilizando el Amazon Developer Portal. Navegue a la página de su app, y encuentre la _sección In-App Items. Utilice los botones Add a Consumable, Add an Entitlement, or Add a Subscription para configurar su catálogo.