Update index.md

This commit is contained in:
Björn Ritzl 2020-07-23 22:43:54 +02:00
parent 3c5f8c1424
commit ef535bb677

View File

@ -4,7 +4,7 @@ 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.
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.
# Usage
To use this library in your Defold project, add the following URL to your <code class="inline-code-block">game.project</code> dependencies:
@ -19,11 +19,11 @@ The source code is available on [GitHub](https://github.com/defold/extension-iap
## Differences between supported platforms
Google Play and Amazon supports two different product types: subscriptions and consumable products.
Amazon supports two different product types: subscriptions and consumable products.
Apple supports three different product types: subscriptions, consumable and non-consumable products.
Google Play and Apple supports three different product types: subscriptions, consumable and non-consumable products.
If you want to simulate non-consumable products on Google Play/Amazon you need to make sure to not call `iap.finish()` on the product in question (and make sure to not have enabled Auto Finish Transactions in *game.project*).
If you want to simulate non-consumable products on Amazon you need to make sure to not call `iap.finish()` on the product in question (and make sure to not have enabled Auto Finish Transactions in *game.project*).
Calls to `iap.buy()` and `iap.set_listener()` will return all non-finished purchases on Google Play. (This will not happen on iOS)