61 Commits

Author SHA1 Message Date
Björn Ritzl
649a8a1ebf
Merge pull request #58 from defold/Issue-47-index-out-of-bounds-exception
Added product and purchase null checks
2023-02-07 15:53:39 +01:00
Björn Ritzl
ad06de7b9c Check purchase listener 2023-02-06 23:11:24 +01:00
Björn Ritzl
d74c97d5c7 Added null checks 2023-02-06 15:56:03 +01:00
Björn Ritzl
5f3f43fb2e Push nil as last argument if there is no error 2022-11-21 10:21:12 +01:00
JCash
501af9c90d Updated to use dmScript::LuaToJson() 2022-11-02 14:36:36 +01:00
Björn Ritzl
52493d8c83 Improved API docs. Recurrence mode 2022-09-08 10:06:10 +02:00
Björn Ritzl
c09aa64ab5 Added title and description 2022-09-08 09:51:39 +02:00
Björn Ritzl
05e9001404 Fixed issues with subscriptions 2022-09-07 11:58:19 +02:00
Björn Ritzl
a26bb45791 Initial update 2022-09-06 23:59:27 +02:00
Alexey Gulev
3ecd6ef587 Smaller mutex scope + use new SDK android methods (Defold 1.2.188) 2021-10-31 13:22:18 +01:00
JCash
92d90bb4de Fixed nul pointer deferencing 2021-10-06 09:55:49 +02:00
Björn Ritzl
3468b52658
Merge pull request #41 from BigButtonCo/master
Add original_json to transaction for validating purchases on android
2021-09-09 13:23:13 +02:00
JCash
b3b79006d7 Fixed threading issue of checking if command buffer is empty 2021-08-02 10:10:00 +02:00
Salavat
beb89d507f Brought stores to a common view
Amazon iap_lib update
2021-07-20 02:32:13 +06:00
BigButtonCo
1a6d2f01e5 Merge branch 'defold:master' into master 2021-06-03 20:05:02 +02:00
Björn Ritzl
6e975b67de Merge branch 'master' into dev-remove-init-count 2021-04-28 10:08:12 +02:00
Björn Ritzl
f3ee2361ac
Merge pull request #38 from defold/issue-35-crash-on-iap-oncommand
Get the Lua context from the callback and not the listener
2021-04-28 10:06:24 +02:00
Björn Ritzl
c21a8ea984 Update iap_ios.mm 2021-04-28 09:46:23 +02:00
Björn Ritzl
1c829abbfb Check that the extension hasn't been recreated while fetching products 2021-04-28 08:59:16 +02:00
Björn Ritzl
80ba15bf22 Do not track init count for multiple Lua states
None of our other extensions support this
2021-04-28 08:54:38 +02:00
Björn Ritzl
5843f631af Get the Lua context from the callback and not the listener 2021-04-27 19:52:14 +02:00
BigButtonCo
276437b981
Update IapGooglePlay.java 2021-04-12 19:26:56 +02:00
BigButtonCo
246fcd3179
Added original_json 2021-04-12 19:22:33 +02:00
Björn Ritzl
1a16fcc795 Make sure skuDetails exists and isn't empty 2021-01-25 10:37:09 +01:00
Mike
ca33678486
Amazon: Stub out acknowledgeTransaction 2020-10-17 13:15:17 -05:00
Mike
faf62f2314
Amazon: Initialize listProductsCommandPtrs 2020-10-17 11:42:47 -05:00
Björn Ritzl
a48ca394bb Allocate empty string
Fixes #26
2020-08-19 10:06:39 +02:00
Björn Ritzl
4c78f9e28d Update IapGooglePlay.java 2020-07-28 08:31:09 +02:00
Björn Ritzl
497d0dee1e Added iap.acknowledge 2020-07-24 00:10:04 +02:00
Björn Ritzl
3c5f8c1424 Null checks 2020-07-23 19:30:20 +02:00
Björn Ritzl
a88fab1543 Removed unused code 2020-07-23 19:29:37 +02:00
Björn Ritzl
8cf185056f Formatting and cleanup 2020-07-23 14:04:17 +02:00
Björn Ritzl
83876a508b Almost done 2020-07-23 12:18:40 +02:00
Mathias Westerdahl
e79b5cfb36
Merge pull request #22 from dyukorev/master
Pending transactions fix
2020-04-01 10:10:41 +02:00
Denis Dyukorev
564df1e279 Rename function argument to match naming requirements. 2020-03-31 16:27:22 +07:00
Björn Ritzl
f1d53948e9
Merge pull request #20 from defold/Issue-18-crash-on-empty-product
Check if title or description is null
2020-03-09 12:33:48 +01:00
Björn Ritzl
607b4a117e Update iap_ios.mm 2020-03-09 11:57:14 +01:00
Björn Ritzl
38656e973c Check if title or description is null
Fixes #18
2020-03-09 11:46:01 +01:00
Björn Ritzl
3fb09c3b95 Missing import 2020-03-09 11:22:54 +01:00
Björn Ritzl
2843080690 Check that the Google Play Store exists on device
Fixes #3
2020-03-09 11:22:41 +01:00
Denis Dyukorev
cbc1f659c1 Add transactions handler to init method according ios documentation it's important to add handler on application:didFinishLaunchingWithOptions: (https://developer.apple.com/documentation/storekit/in-app_purchase/setting_up_the_transaction_observer_for_the_payment_queue?language=objc), move observable commands to separate queue so it can be processed separately and after listener setup, add IAP_ProcessPendingTransactions function to resolve pending transactions on iOS. 2020-03-04 17:26:52 +03:00
Filazopovich Gennady
eda78dda4f Fix incorrect numbers in transaction date for some Arab countries 2020-03-04 15:39:30 +03:00
Denis Dyukorev
d6cc6f55f9 IAP command pointer to products list function to avoid crash on multiple calls products list 2020-02-15 15:00:15 +03:00
Björn Ritzl
8d9ea79d7d Fixed crash if buying when no listener was set 2020-02-10 08:25:48 +01:00
Alexey Gulev
1a778d0e98 fix crash 2020-01-16 23:16:21 +01:00
mathiaswking
0e76cd4f24 Updated html5 to use the new Lua callback api from dmScript 2019-11-21 18:06:39 +01:00
mathiaswking
8eebb889e3 Use Lua callback handling functions from DefoldSDK 2019-11-15 19:04:23 +01:00
mathiaswking
f784c187b2 Added thread safe command queue for iOS 2019-11-14 18:26:55 +01:00
mathiaswking
bbab40a315 Made iOS functions static
Removed old documentation
2019-11-14 10:50:07 +01:00
mathiaswking
bca28de29a Moved command queue code to iap_private.h/cpp 2019-11-14 10:48:19 +01:00