Skip to content

Commit a8d0566

Browse files
Site changes [skip-ci]
1 parent 2bdcb2b commit a8d0566

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

extension-iap/index.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ toc:
1818
- Differences between supported platforms
1919
- Troubleshooting
2020
- Source code
21-
- API reference
2221
---
2322

2423
# Defold In-app purchase extension API documentation
@@ -204,7 +203,11 @@ IAP supports auto-completion, where fulfilment is automatically signalled to the
204203

205204
### Consumable vs non-consumable products
206205

207-
The Google Play store does only support consumable products. If you need non-consumable products it is recommended to use manual fulfilment of purchases and never finish purchases for products that should be non-consumable. As long as a purchase isn't finished it will be returned as an active purchase when `iap.set_listener()` is called. If you do not call `iap.finish()` on a purchase you still need to indicate to Google Play that the purchase has been handled. You can do this by calling `iap.acknowledge()`. If you do not call `iap.acknowledge()` the purchase will be automatically refunded by Google after a few days.
206+
#### Google Play
207+
208+
It is recommended to use manual fulfilment of purchases and never finish purchases for products that should be non-consumable. As long as a purchase isn't finished it will be returned as an active purchase when `iap.set_listener()` is called. If you do not call `iap.finish()` on a purchase you still need to indicate to Google Play that the purchase has been handled. You can do this by calling `iap.acknowledge()`. If you do not call `iap.acknowledge()` the purchase will be automatically refunded by Google after a few days.
209+
210+
#### App Store
208211

209212
The Apple App Store supports non-consumable products which means that you need to finish all purchases when you provide products to your users. You can do it automatically by keeping the default behavior in the game project settings or manually (if you want to do that after server validation, for example) using `iap.finish()`.
210213

@@ -252,6 +255,5 @@ On iOS, the "price_string" field contains '~' characters
252255
## Source code
253256

254257
The source code is available on [GitHub](https://github.com/defold/extension-iap)
255-
256-
257-
## API reference[API Reference - iap](/extension-iap/iap_api)
258+
## API reference
259+
[API Reference - iap](/extension-iap/iap_api)

0 commit comments

Comments
 (0)