You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extension-iap/index.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,6 @@ toc:
18
18
- Differences between supported platforms
19
19
- Troubleshooting
20
20
- Source code
21
-
- API reference
22
21
---
23
22
24
23
# Defold In-app purchase extension API documentation
@@ -204,7 +203,11 @@ IAP supports auto-completion, where fulfilment is automatically signalled to the
204
203
205
204
### Consumable vs non-consumable products
206
205
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
208
211
209
212
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()`.
210
213
@@ -252,6 +255,5 @@ On iOS, the "price_string" field contains '~' characters
252
255
## Source code
253
256
254
257
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)
0 commit comments