Below is the error generated from the emulated version on my PC, but the error is the same on my phone.
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 1684, in script
$ iap.purchase ("unlock_lvl")
File "game/script.rpy", line 1684, in <module>
$ iap.purchase ("unlock_lvl")
File "renpy/common/00iap.rpy", line 409, in purchase
p = get_product(product)
File "renpy/common/00iap.rpy", line 393, in get_product
raise Exception("Product %r is has not been registered.")
Exception: Product %r is has not been registered.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 1684, in script
$ iap.purchase ("unlock_lvl")
File "H:\Renpy\renpy-6.99.14.3-sdk\renpy\ast.py", line 862, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "H:\Renpy\renpy-6.99.14.3-sdk\renpy\python.py", line 1888, in py_exec_bytecode
exec bytecode in globals, locals
File "game/script.rpy", line 1684, in <module>
$ iap.purchase ("unlock_lvl")
File "renpy/common/00iap.rpy", line 409, in purchase
p = get_product(product)
File "renpy/common/00iap.rpy", line 393, in get_product
raise Exception("Product %r is has not been registered.")
Exception: Product %r is has not been registered.
Windows-7-6.1.7601-SP1
Ren'Py 6.99.14.3.3347
bpmf 1.0
Tue Jun 12 23:36:57 2018
Also, not getting an email from google after sending out an internal test to my email address, this is my first time trying that function, too.
code for the product:
Code: Select all
init:
define unlock_lvl = iap.register(product = "pro", identifier = "bpmf.catmat", google = "Game title",)
Code: Select all
label label_billing:
$ iap.purchase ("unlock_lvl")
"If the payment is successful, the game will continue."
if iap.has_purchased ("unlock_lvl"):
"Thank you for purchasing the level! Continue the game"
$ MainMenu(confirm=False)()
else:
"Payment canceled"
Probably something stupid, either that or I just need to wait for something to happen on Google's side regarding the registration of this in-app product.
Any ideas? Anyone else had a similar problem? Thanks again!