I have a problem at the moment where i can not successfully test my in-app purchases via the Google Play Store.
After implementing the following lesson - http://lessons.livecode.com/m/19606/l/1 ... play-store into my application. I did the following:
1). Upload the signed .APK into the Beta environment saved as draft.
2). Signed in on my test device using the test account. (Set-up in the Google console).
3). Downloaded the App onto my device.
I have the following error: Error Authentication is required. You need to sign in to your Google Account.
I don't understand the message as on the test device is only one account. The test account specifically for this.
Just so I am 100% sure on where the App code should be loaded, is anybody able to confirm where i should place some items of code?
For example I currently have this in my non consumable button.
Code: Select all
on mouseUp
mobileStoreEnablePurchaseUpdates
mobileStoreSetProductType "com.mycompany.myapp.nonconsumable", "inapp"
mobileStoreMakePurchase "com.mycompany.myapp.nonconsumable", "1", "This belongs to me"
end mouseUp
This is where I became slightly unstuck.. I embedded this code into the non-consumable button as I couldn't see any specific placement on the guide.
Code: Select all
setProp cNonConsumablePurchased pValue
set the cNonConsumablePurchased of this stack to pValue
if pValue then
set the backColor of this stack to 0,255,0
put "PURCHASED" into fld "purchased"
else
set the backColor of this stack to 255,255,255
end if
end cNonConsumablePurchased
Many thanks,
Gary