Skip to content

Add Amazon AppStore IAP support#5

Merged
daedeloth merged 2 commits intov13.12-amazonfrom
copilot/sub-pr-3
Feb 12, 2026
Merged

Add Amazon AppStore IAP support#5
daedeloth merged 2 commits intov13.12-amazonfrom
copilot/sub-pr-3

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 12, 2026

Changes proposed in this pull request:

  • Add Amazon AppStore platform adapter with full IAP SDK 3.0.8 integration
  • Implement native Android bridge (AmazonPurchasePlugin.java) supporting product queries, purchases, receipt updates, and fulfillment
  • Add TypeScript adapter, bridge, and type definitions following existing platform patterns
  • Update README features matrix to include Amazon AppStore support

Platform Integration

  • AMAZON_APPSTORE platform constant added to enum
  • Adapter registered in core adapters.ts initialization flow
  • Validator types defined for Amazon receipt verification
  • Plugin.xml configured with amazon-appstore-sdk:3.0.8 dependency

Supported Operations

  • Product loading via PurchasingService.getProductData()
  • Purchase flow via PurchasingService.purchase()
  • Receipt restoration via PurchasingService.getPurchaseUpdates()
  • Consumable fulfillment via PurchasingService.notifyFulfillment()

Usage

await store.initialize([
  Platform.GOOGLE_PLAY,
  Platform.AMAZON_APPSTORE, // Now supported
]);

Note: Amazon IAP SDK provides only formatted price strings. The adapter handles this with optional priceMicros and currency fields.


To test this pull request with cordova:

# 1: Uninstall the plugin (if already installed)
cordova plugin rm cordova-plugin-purchase

# 2: Install from github
cordova plugin add "https://github.com/j3k0/cordova-plugin-purchase.git#v13.12-amazon"

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: daedeloth <1168599+daedeloth@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Amazon in-app purchases to the library Add Amazon AppStore IAP support Feb 12, 2026
Copilot AI requested a review from daedeloth February 12, 2026 23:03
@daedeloth daedeloth marked this pull request as ready for review February 12, 2026 23:04
@daedeloth daedeloth merged commit 956639c into v13.12-amazon Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants