I'm having a few problems getting IAP to work properly (TIER 1 Beta 19 Prebuilt via Eclipse).
GetInAppPurchaseAvailable(0) - is always returning 0
even though directly after this call..
InAppPurchaseActivate(0) displays the error that the iap is already purchased.
I successfully made the test purchase, and this is a subsequent error. If I make two calls to this routine the whole app crashes.
Any ideas?
If GetInAppPurchaseAvailable(0) = 0 // already purchased ?? no
//
// Make purchase from google play store
//
InAppPurchaseActivate(0)
//
// Wait for user to purchase or cancel
//
While GetInAppPurchaseState() = 0
Sync()
EndWhile
//
// User has successfully purchased item
//
If GetInAppPurchaseAvailable(0)
HintsFlag = 1
SaveStatus ()
setspriteimage (btn_hints, img_btn_on)
Endif
else
//
// Already purchased
//
HintsFlag = 1
setspriteimage (btn_hints, img_btn_on)
endif