IAP pop up is not displaying
POM
Member Posts: 2,599
Hey guys,
I have a button for IAP (the new IAP method)
When pressed..
Callback becomes "1"
Status becomes "unpurchased"
But no pop up appears.. am i missing something?
The logic is as follows:
Touch is pressed --> In App Purchase - Request Purchase Data (1,-1,Callback)
When Callback==1 --> In App Purchase - Buy Item (the item id is grabbed from the PurchaseTable)
when "tableCellValue( game.PurchaseTable , self.rowNum ,5)" is purchased --> purchased done
But when i press the button, nothing is happening.. shouldn't a pop up appear?
What step am I missing here?
Roy.
Comments
have you copied "tableCellValue( game.PurchaseTable , self.rowNum ,5)" ?
Because if you did, I see a gap between PurchaseTable and the comma ,
Like Balls? Then click here! We've 100 coming soon
Hey Roy, the following is working well in my app updates:
I have request purchase data outside of any rules. It's in the first scene in the actor I use to load startup variables/rules/saves/settings. The way I understand it you only need to request that info once and then the purchase table is populated with the needed info.
Then on the buy button:
On touch Buy Item.
And in a separate rule under that:
If tableCellValue( game.PurchaseTable , self.rowNum ,5) = purchased
do stuff
save stuff
After 0.03 seconds
Consume item.
(for consumables)
Thanks guys,
Ive erased all my IAP rules, and rewritten them (exactly the same), now I get a the pop up message.
Roy.
When you put the Request data in the first scene like that does it prompt to login, even if nothing is being purchased? I thought I had read that and so didn't do it, although it makes perfect sense to NOT have to login in order to get the product information.
Thanks!
Our games http://Donkeysoft.ca
No you don't get a prompt to login. The player will be unaware that the table data is being requested.