From b1233f59125bd5c7f769262232ce04ffeca14656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Ritzl?= Date: Thu, 23 Jul 2020 22:54:24 +0200 Subject: [PATCH] Update index.md --- docs/index.md | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/docs/index.md b/docs/index.md index 14aa8c5..e7821ae 100644 --- a/docs/index.md +++ b/docs/index.md @@ -4,20 +4,35 @@ layout: default # Defold In-app purchase extension API documentation -This extension provides functions for making in-app purchases. Supported on iOS, Android (Google Play and Amazon) and Facebook Canvas. On Google Play the extension supports Billing 3.0. +This extension provides functions for making in-app purchases. -# Usage -To use this library in your Defold project, add the following URL to your game.project dependencies: + +## Usage +To use this library in your Defold project, add the following URL to your `game.project` dependencies: https://github.com/defold/extension-iap/archive/master.zip We recommend using a link to a zip file of a [specific release](https://github.com/defold/extension-iap/releases). +For Facebook Canvas you also need to add the [Facebook extension as a dependency](https://github.com/defold/extension-facebook). + + ## Source code The source code is available on [GitHub](https://github.com/defold/extension-iap) -## Differences between supported platforms + +## Supported platforms + +The following platforms are supported by the extension: + +* iOS - StoreKit +* Google Play - Billing 3.0.0 +* Amazon - 2.0.61 +* Facebook Canvas + + +### Differences between supported platforms Amazon supports two different product types: subscriptions and consumable products. @@ -29,7 +44,7 @@ Calls to `iap.buy()` and `iap.set_listener()` will return all non-finished purch The concept of restoring purchases does not exist on Google Play/Amazon. Calls to `iap.restore()` on iOS will return all purchased products (and have product state set to TRANS_STATE_RESTORED). Calls to `iap.restore()` on Google Play will return all non-finished purchases (and have product state set to TRANS_STATE_PURCHASED). -### +--- # API reference