Skip to content

Fantamstick/hermes-iap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hermes IAP

IAP manager package for Unity. Makes use of local receipt validation as specified in Unity's documentation.

Features

iOS

  • Auto-Renewable Subscriptions
  • Non-Renewing Subscriptions
  • Consumables
  • Non-Consumables
  • Deferred Purchases (iOS)

Google Play

  • Auto-Renewable Subscriptions (Partial support) *1
  • Non-Renewing Subscriptions
  • Non-Consumables
  • Upgrade / Downgrade
  • Google Play Developer API
  • Confirm price changes for subscriptions
  • Deferred Purchases (untested)

*1: Partial support means subscriptions are confirmed on purchase, but subsequent subscription cancellations or updates are not automatically done. Complete subscription support requires a backend to call GooglePlay servers to confirm and update purchase status based on developer needs.

Amazon Store

  • Auto-Renewable Subscriptions
  • Non-Renewing Subscriptions
  • Consumables
  • Non-Consumables

Requirements

  • Unity 2019.4+
  • Tested on iOS, GooglePlay and Amazon Store

Dependencies

Installation as UPM Package

Add https://github.com/Fantamstick/hermes-iap/Assets/Hermes from the Package Manager.

or locate manifest.json in your Unity project's Packages folder and add the following dependencies:

"dependencies": {
  "com.fantamstick.hermesiap": "https://github.com/Fantamstick/hermes-iap.git?path=Assets/Hermes#3.0.1",
  ...
}

Sample

After setting up the IAP settings on AppStoreConnect and/or GooglePlay, purchases can be tested using the PurchaseTestScene on devices.

Defines

  • DEBUG_IAP for useful debug information logging during development.
  • UNITY_PURCHASING required for Android builds.

License

Copyright (c) 2021 Fantamstick, Ltd Released under the MIT license

https://github.com/Fantamstick/hermes-iap/blob/master/LICENSE.md