I am implementing IAP in an iPhone app and am working in the sandbox environment. I have my code setup to process SKProducts
returned by an SKProductsRequest
to get pricing information. I would like to test retrieving price values in different locales (e.g. Euros or Yen) to test my formatting code. How can I get SKProductsRequest
to return different locales?
我正在iPhone应用程序中实现IAP,并在沙箱环境中工作。我有我的代码设置来处理skproducts请求返回的SKProducts获取价格信息。我想测试不同地区(例如欧元或日元)的价格,以测试我的格式代码。如何让SKProductsRequest返回不同的区域?
2 个解决方案
#1
2
Answering my own question here. You can test this by creating IAP test users in different stores on iTunes connect.
回答我自己的问题。您可以通过在iTunes connect上的不同商店中创建IAP测试用户来测试这一点。
#2
0
We get the product price based on the user's registered iTunes connect account locale.
我们根据用户注册的iTunes connect帐户locale获取产品价格。
You can only get different locales manually by using NSNumberFormatter as described in SkProduct class reference here
您只能通过使用NSNumberFormatter手动获得不同的地区,如此处SkProduct类引用中所述
#1
2
Answering my own question here. You can test this by creating IAP test users in different stores on iTunes connect.
回答我自己的问题。您可以通过在iTunes connect上的不同商店中创建IAP测试用户来测试这一点。
#2
0
We get the product price based on the user's registered iTunes connect account locale.
我们根据用户注册的iTunes connect帐户locale获取产品价格。
You can only get different locales manually by using NSNumberFormatter as described in SkProduct class reference here
您只能通过使用NSNumberFormatter手动获得不同的地区,如此处SkProduct类引用中所述