List iap price in USD before request

app_sauceapp_sauce Member, PRO Posts: 206

I have an unlock all button for $2.99 USD. Can I have the button labeled "Unlock All - 2.99 USD"? Them when the player clicks the button it will bring up the correct price in their local currency. I am not sure how to do this because I dont think many people will click if it just says "Unlock All".

Thanks

SocializeTwitter , **My Site ** **Play Loop Zen Free **iOS HERE, Google Play HERE

Comments

  • darrelfdarrelf Member Posts: 243

    @bktennis12
    I love the way GS has evolved in this respect.
    Before I used to display static prices for what I see as the key currencies - USD, GBP, EUR
    Now I can change prices and they automatically display - love it!

    The way I personally do it is to simply populate the purchase table automatically without user intervention using the callback behaviour and have a display text field showing the live price - referencing the price field in the table. It always displays the appropriate currency.
    Take a look at my game World Of Hidden Objects (navigate to the shop page)

    Any questions let me know. At work right now but should be able to lend a hand later

  • app_sauceapp_sauce Member, PRO Posts: 206

    @darrelf sorry for the late reply. I am trying to attempt to do as you described. But am having trouble. I request purchase data when the game is booted up. Then when my callback attribute = 1 I change a table cell I have designated as my iap price to = the price cell in the PurchaseTable. Then if the table cell I have designated is not empty I display the text of that cell. But, when testing I get "invalid expression" . What am I doing wrong?

    SocializeTwitter , **My Site ** **Play Loop Zen Free **iOS HERE, Google Play HERE

  • MarcMySaladMarcMySalad Member Posts: 158

    @darrelf said:
    bktennis12
    I love the way GS has evolved in this respect.
    Before I used to display static prices for what I see as the key currencies - USD, GBP, EUR
    Now I can change prices and they automatically display - love it!

    The way I personally do it is to simply populate the purchase table automatically without user intervention using the callback behaviour and have a display text field showing the live price - referencing the price field in the table. It always displays the appropriate currency.
    Take a look at my game World Of Hidden Objects (navigate to the shop page)

    Any questions let me know. At work right now but should be able to lend a hand later

    Doing it this way requires user intervention first since the user will receive a dialog prompting them to login to their user account when you request purchase data. A user might think that it's strange to receive a login without prompt when the user has not pressed any purchase button.

  • ArmellineArmelline Member, PRO Posts: 5,368

    @MarcMySalad said:
    Doing it this way requires user intervention first since the user will receive a dialog prompting them to login to their user account when you request purchase data. A user might think that it's strange to receive a login without prompt when the user has not pressed any purchase button.

    I prefer to avoid it, but if you want to display prices before the user interacts with your shop, you need to bite that bullet. In many cases a worthwhile exchange, and only a % of users will see that login prompt.

    @bktennis12 Getting an "Invalid expression" probably means you're written something wrong in your referencing, rather than it's flat out not working. Perhaps post a screenshot?

  • app_sauceapp_sauce Member, PRO Posts: 206

    @MarcMySalad said:
    Doing it this way requires user intervention first since the user will receive a dialog prompting them to login to their user account when you request purchase data. A user might think that it's strange to receive a login without prompt when the user has not pressed any purchase button.

    I want to avoid user intervention to display the price on my ingame buttons. ie not have the user have to log in. But, if they click the button then obviously they will have to log in. I have seen a couple people's apps in gs do this @FatFish does it in his tiny rugby app.

    SocializeTwitter , **My Site ** **Play Loop Zen Free **iOS HERE, Google Play HERE

Sign In or Register to comment.