#IAP not showing Localized Prices on iOS

1 messages · Page 1 of 1 (latest)

tropic vine
#

Hey,
I had an issue where localized prices for the products in the store are not showing correctly (instead its reverting to the default prices). I noticed when I clicked on the buy button trying to make a purchase with a sandbox account, I got the native sign in pop up. I signed in, then got the native purchase UI for the product with the correct localized price. When I clicked purchase, it again required me to sign in, once signing in the purchase worked. At this point the product prices in the game's shop are still not localized.

When I reloaded the scene, I noticed all product localized prices are displayed correctly for all buy buttons. Is this a sign in issue?

When the game starts theres a menu screen (which doesn't require sign in, however going to another scene to check leaderboard/achievements it says singed in as "PlayerName...".
Then going to the shop (a different scene, I still get the sign in native UI when trying to make a purchase). My understanding is that this is because the sign in auth is different for game services and billing right?

In any case, if sign in is required to get the correct localized prices, what is the recommended approach to have the player see the "correct/local" prices without it feeling a bit janky. (The shop scene is accessible if you play offline, though obviously making IAP won't work).

#

I just played multiple big publisher games and their approaches are different. Some games won't allow the store to open at all or in cases the game is entirely not playable. The best approach I found is to replace the price string with just "buy" when the player is offline so that non of the buy buttons have an actual price until the player is online.

#

But yeah still not sure whether you should have the player sign in when making a purchase. I tried making multiple purchase it only happened the first time. Not sure... is this flow normal when making IAP after the first download?

unreal hazel
#

For sandbox testing, you can enter the sandbox test user in the device settings.

#

When network is offline, it's possible that there won't be results from store. The idea you suggested when offline seems to be good.