Skip to content

An in-app-billing extension to monetize your app products using Amazon store billing library 3.0.3.

License

Notifications You must be signed in to change notification settings

jewelshkjony/AmazonInAppBilling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

AmazonInAppBilling Extension

An in-app-billing extension to monetize your app products using Amazon store billing library 3.0.3.

The In-App Purchasing (IAP) API allows your app to present, process, and fulfill purchases of digital content and subscriptions within your app. Amazon supports an IAP API for Android Apps.

image

Configure Appstore SDK with your public key

This public key, which is unique per app, establishes a secure communication channel between the Amazon Appstore and your app. When you generate the public key from the Developer Console, Amazon generates a corresponding private key. These public and private keys form a key pair to sign license responses. Through this key pairing, you ensure that the users who install your app are authorized.

To configure your existing app with the public key:

  1. Log into the Developer Console with your developer account.

  2. Go to Apps & Services > My Apps . Then click your app. (If you don't already have an app, see Log In and Add an App.)

  3. Create a new version of your app. In the area below your app's name, click Upcoming Version .

⚠️ Important: The link to the public key appears only when you create a new version or when you create a new app. If you had a new version in progress prior to the release of the Appstore SDK, you must complete your existing version and then create a new version. Only then does the public key link appear. (Alternatively, submit a Contact Us Case regarding your app and request that the Upcoming Version be cancelled.)

  1. Go to the App Information tab.

  2. Click Public Key in the upper-right area.

  3. In the Public Key dialog box that appears, click the AppstoreAuthenticationKey.pem link to download a PEM file. This file contains your public key.

image

  1. Copy the AppstoreAuthenticationKey.pem file. Then paste it into the assets folder of your builder.

ℹ️ Note: If you integrate your app with Login with Amazon (LwA) or Amazon Device Messaging (ADM), you need to add your app's API Keys. Appstore SDK integrated apps do not add API Keys automatically. You need to manage the API Key and see LwA and ADM documentation for more details. You can find your AppStore certificate hash values in the Developer Console to create the API keys for the existing apps. Go to My apps > select your app > App Information > Appstore Certificate Hashes .

Verify License

Initiates a request to retrieve the license of the currently logged-in user. When the response is available LicenseVerified event will be called.

image

Get User Data

Initiates a request to retrieve the user ID of the currently logged-in user. GotUserData event will be called when a response is available.

image

Get Purchases Updates

Initiates a request to retrieve updates about items the customer has purchased and/or canceled. reset - Set to true to get a list of all purchases. Set to false to get a list of all purchases made since the last invocation. When a response is available GotPurchaseUpdates event will be called.

image

Get Products Data

Initiates a request to retrieve item data of up to one-hundred SKUs. skuList - List of SKUs. If the size of the list is greater than 100, an IllegalArgumentException is thrown. When a response is available, GotProductsData event will be called.

image

Launch Purchase Flow

Initiates a purchase-flow for a product. sku - Vendor SKU for which to initiate a purchase. When the purchase-flow completes PurchaseSuccessful event will be called.

image

Consume Purchase

Notifies Amazon about the purchase fulfillment. There is no callback for this API. receiptId - Receipt id of the purchase.

image

Acknowledge Purchase

Notifies Amazon about the purchase fulfillment. There is no callback for this API. receiptId - Receipt id of the purchase.

image

Extension specifications:

com.jewel.amazoninappbilling.aix (411 KB)
Price: $12 USD
SDK Version: 3.0.3
Extension Version: 3.0.3.1
Last amendment: 25 October 2022
Supported builder: Kodular, Niotron, AppZard, AndroidBuilder, App Inventor and it's other distributions.

📫 How to reach me ↓

Telegram | WhatsApp | Facebook | Messenger | Youtube

About

An in-app-billing extension to monetize your app products using Amazon store billing library 3.0.3.

Topics

Resources

License

Stars

Watchers

Forks