Example fixes
This commit is contained in:
parent
04a09e18db
commit
81e04c496f
@ -21,7 +21,7 @@ dependencies = https://github.com/andsve/dirtylarry/archive/master.zip
|
||||
include_dirs = extension-iap
|
||||
|
||||
[ios]
|
||||
bundle_identifier = com.defold.iaprtestapp
|
||||
bundle_identifier = com.defoldextension.push
|
||||
|
||||
[iap]
|
||||
auto_finish_transactions = 0
|
||||
|
@ -20,7 +20,8 @@ local function list_callback(self, products, error)
|
||||
end
|
||||
|
||||
local function buy_listener(self, transaction, error)
|
||||
if not error and transaction.ident == "nonconsumable" then
|
||||
pprint(transaction, error)
|
||||
if not error and iap.get_provider_id() == iap.PROVIDER_ID_GOOGLE and transaction.ident == "nonconsumable" then
|
||||
local name = "reset/larrylabel"
|
||||
gui.set_color(gui.get_node(name), vmath.vector4(1,1,1,1))
|
||||
product_items["reset"] = transaction
|
||||
|
Loading…
x
Reference in New Issue
Block a user