Hi,
I was having a bit of a problem with IAP purchases on Google play but I have got it working fine now. I am using the same code in Amazon but I get a blank grey screen when it is trying to down download the IAP product, I have to use the back button on the phone to get out of it. I have set up the IAP product in Amazon exactly the same as I did in Google, any advice on what might be the problem would be appreciated.
I am using version AppGameKit-V2017.02.28-Windows. Tier 1.
I have set up a Amazon account with a valid credit card attached.
I noticed that when I create the APK file for Amazon the “In-App purchase” check box” is greyed out.
The code I am using is;
InAppPurchaseSetTitle ("App Title")
InAppPurchaseSetKeys (The valid key for google) --- Documentation says Amazon ignores this call
InAppPurchaseAddProductID ("my SKU", 0) --- I want a non consumable IAP
InAppPurchaseSetup( )
When the user wants to purchase the following routine is called, seems to be getting stuck on the “if GetInAppPurchaseState ( ) = 1” statement.
iAPSection:
InAppPurchaseActivate ( 0 )
do
if GetInAppPurchaseState ( ) = 1
exit
endif
sync ( )
loop
if GetInAppPurchaseAvailable ( 0 ) = 1
iAP = 1
SetAdvertVisible ( 0 )
DeleteAdvert()
endif
sync ( )
return
Regards,
Kevin
Kevin