How do I show IAP product price?

0 favourites
  • 8 posts
  • I'm trying to show the IAP product price, but it just shows "text" when I try it.

    I have a textbox and the code is:

    CordovaIAP -On request listing succeeded --- textbox - set text to "CordovaIAP.ProductPrice("productID")

    (but I have of course the real product ID in my code)

  • Is your text box showing "text" by default? That probably means your 'On store listing' wasn't successful. You first need to 'Request store listing' then you can use the action 'On store listing success'. If there is still a problem then we need to take a closer look at the store logic.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I have "request store listing" on start of layout, but do I need to do it again before I want it to change the text?

    It should be succestful because I'm using "has product" events and they are working. But I'm very new to working with IAP so I might not get it yet!

  • Nope I think on start of layout is good enough. Maybe you have a typo somewhere? I always start with some debug, try setting it to On store listing failed and see if the text changes? Can the product names be displayed?

  • Thanks for helping me! I tried on listing failed and it didn't work. Product name also doesn't work. I'm sure I've just messed up somewhere. I will show the code and maybe you can see an error somewhere? (it's kind of ugly now because I'm just testing everything)

  • Could someone see if this looks right or not just so I know where to look for errors? I hope this is wrong so that I can fix it because otherwise I have no idea what could be wrong.. :/

  • I have similar difficulties with IAP Contruct2 plugin. I can't get price. Did you solve the problem?

  • Oh sorry, I didn't get an email saying someone replied on this thread! I actually don't remember how I got it to work ,but I did somehow.. Sorry!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)