Hi all.
Firstly - Happy New Year!
I developed an app with IAP and uploaded to Google. I set-up the IAP details in Google too. Using a device and a user, I download the app, clicked a button and as I needed, the purchase dialog came up, which I completed. However, at the end of this purchase, I got a Signature Verification Failed, code 1003.
Looking at Google, it seems to be related to using Google In-App testing and that it will not be a problem for real/live apps. Although I am using a live app etc.
Has anyone experience this and maybe can help suggest a way to work around this, maybe with code change etc. I've added my code for the IAP. Additionally, even though Google merchant confirms the purchase, the code is not bringing back confirmation of this, with the variable 'Bought' not being set to a 1. Is there a time delay between purchase and having it available/readable in apps?
rem
rem AGK Application
rem
rem Portrait App
SetDisplayAspect( 0.66 )
SetVirtualResolution (400 ,600)
Global Bought
InAppPurchaseSetTitle ("Buy Me") // Name for alert dialogs etc.
InAppPurchaseAddProductID ("buyme", 0) // IAP product ID you configured through iTunes / Google
InAppPurchaseSetup()
Rem see if bought already !!
If GetInAppPurchaseAvailable(0) = 1 Then Bought = 1
button = createsprite(loadimage("button.png"))
setspriteposition(button,100,100)
setspritescale(button,0.4,0.4)
rem A Wizard Did It!
do
Print ("In-app purchased : " + Str(Bought))
if GetPointerReleased() = 1 And GetSpriteHitTest(button, GetPointerX(), GetPointerY()) = 1
InAppPurchaseActivate(0) // 0 = id of product
// Wait for user to purchase or cancel prompt
While GetInAppPurchaseState() = 0
Sync()
EndWhile
If GetInAppPurchaseAvailable(0) = 1
Bought = 1
Endif
endif
Sync()
loop
Thanks in adavance.
Ian.
www.zortokgames.com