mirror of
https://github.com/defold/extension-iap
synced 2025-06-27 10:27:46 +02:00
Merge branch 'master' into dev-update-to-android-billing-7-0-0
This commit is contained in:
commit
33174f25ea
@ -44,7 +44,13 @@ end
|
|||||||
|
|
||||||
local function buy(id)
|
local function buy(id)
|
||||||
log("iap.buy() " .. id)
|
log("iap.buy() " .. id)
|
||||||
iap.buy(id)
|
local options = {}
|
||||||
|
local item = available_items[id]
|
||||||
|
if item.subscriptions then
|
||||||
|
local subscription = item.subscriptions[1]
|
||||||
|
options.token = subscription.token
|
||||||
|
end
|
||||||
|
iap.buy(id, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function restore()
|
local function restore()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user