IAP pop up is not displaying

POMPOM Member Posts: 2,599
edited November 2014 in Working with GS (Mac)

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

  • jigglybeanjigglybean Member Posts: 1,584

    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

  • HoneyTribeStudiosHoneyTribeStudios Member Posts: 1,792

    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)

  • POMPOM Member Posts: 2,599

    Thanks guys,
    Ive erased all my IAP rules, and rewritten them (exactly the same), now I get a the pop up message.

    Roy.

  • clee2005clee2005 http://Donkeysoft.caMember, PRO Posts: 194

    @HoneyTribeStudios said:
    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.

    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!

  • HoneyTribeStudiosHoneyTribeStudios Member Posts: 1,792

    @clee2005 said:

    No you don't get a prompt to login. The player will be unaware that the table data is being requested.

Sign In or Register to comment.