GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing developer.amazon.com — Migrate from Google Play Billing to Appstore SDK | In-App Purchasing
Migrate from Google Play Billing to Appstore SDKLearn the differences between Google Play Billing and Amazon In-App Purchasing (IAP). Then, use the guide to migrate your app from Google Play Billing to Appstore SDK IAP. What are Google Play Billing and IAP?The Google Play Billing feature allows users to purchase digital content directly from your app. For example, a user can purchase additional levels in a game. Amazon In-App Purchasing (IAP) is the equivalent feature for the Amazon Appstore. If your app uses Google Play Billing, you can modify your code to use Amazon IAP. Both Google and Amazon APIs have similar functionality with some differences in naming and terminology. Requirements for the Amazon Appstore and Amazon devices
If your app implements Google Play Billing and you want to keep in-app purchases as a feature in your app on the Amazon Appstore, you must implement Amazon's IAP solution to submit your app. Amazon IAP versus Google Play BillingThis section discusses the similarities and differences between Google Play Billing and Amazon IAP from the Appstore SDK. Feature comparisonThe following table shows a comparison between Appstore SDK IAP and Google Play Billing.
Google Play managed objects versus Amazon consumables and entitlementsGoogle Play Billing and Amazon IAP both let your customers make the same types of in-app purchases. However, Google Play and Amazon use different terminology for their purchase types. The following table notes the Google Play equivalent for each Amazon purchase type.
As you can see, Google Play Billing treats all non-subscription purchases similarly; an item is purchased, then consumed by a user. After an item has been consumed, the item is provisioned in the app and the consumption is recorded. For items that are likely to be one-time purchases, such as unlocking new game levels, you have the option as a developer of treating the item as a consumable or non-consumable and introducing logic to ensure that the purchase of that item only occurs once. With Amazon IAP, one-time purchases (entitlements) are separated by design from purchases that app users can purchase multiple times (consumables). Migrate to the Appstore SDKTo migrate from Google Play Billing to the Appstore SDK, follow these instructions.
The following sections guide you through these steps. Step 1. Download and configure Appstore SDKDownload the Appstore SDK here: To configure the Appstore SDK for your app, follow the instructions in Integrate the Appstore SDK. Step 2. Configure your AndroidManifest.xml fileConfigure your AndroidManifest.xml file to define the IAP In your AndroidManifest.xml file, add the appropriate Step 3. Implement logic to mediate between Google Play Billing and IAPYou can use the same code base for your app, regardless of where your app is hosted. Just add logic to your app to determine whether the app was downloaded from the Amazon Appstore or from Google Play. Depending on where the user downloaded the app, run the appropriate methods for either IAP or Google Play Billing. The following example code determines whether a package was installed from Google Play or the Amazon Appstore: Step 4. Add and implement the Appstore SDK IAP APIFor the most part, Appstore SDK IAP works similarly to Google Play Billing. When you create the path in your code to implement the IAP API, you should be able to use a similar logic flow to Google Play, but will need to account for different class and method names. The following table maps the most frequently used IAP methods to their Google Play equivalents:
Step 5. Test your appYou can test IAP in your app through different phases of development with DevTest for IAP, App Tester, and Live App Testing. For a complete overview of tools available to test IAP, see IAP Testing Overview. Last updated: May 20, 2026
Supported devices | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||