diff --git a/game.project b/game.project index 40320ed..ebcad4f 100644 --- a/game.project +++ b/game.project @@ -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 diff --git a/main/main.gui_script b/main/main.gui_script index 92eefbd..1a294ba 100644 --- a/main/main.gui_script +++ b/main/main.gui_script @@ -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