Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test localized prices with In-app billing v3

My app displays prices as reported by the getSkuDetails() API. To confirm that it is working I'd like to setup my device to display prices for different locales.

I've tried logging in with Google accounts from different countries and setting the system language but prices still appear in my own locale. How can I setup my device so that I can see prices reported in different locales?

like image 381
Josh Knauer Avatar asked Aug 07 '13 16:08

Josh Knauer


People also ask

How do I test app subscriptions on Android?

Open the Google Play app. Choose Account -> Subscriptions & Payments -> Subscriptions. Click your test subscription and change the payment method to “Test card, always declines.” After five minutes, payment should be declined.

How do I check my Google Play Billing Library?

To test your Google Play Billing Library integration using test tracks, do the following: Publish your app to a test track. Note that after you publish an app to a testing track, it can take a few hours for the app to be available for testers. Ensure each tester opts-in to your app's test.


1 Answers

I guess that's not easy. In my case I experienced the same issue. According to some information I read, it looks there are several procedures Google uses to locate the user. One of them consist of to check the procedence of the Credit Card registered in Google Play, if users has any one. So if that is your case, you will be always shown with the prices of the locale corresponding to your credit card.

Second check, is made thru Sim card of the mobile phone. If you don't have Sim card or device is a tablet without Sim card, then the next step is looking to the WiFi connection.

Localization of the WiFi spot, and IPAddress, is used also to geolocate the user.

Finally if nothing of this works, then locale settings in the device is used. So in this way, Google show the prices according to the place where you are, which couldn't match with your locale settings in your device.

For example, if you're spanish, with your tablet with local settings in Spanish, and you're right now in USA, it has sense to show you the prices in Euros, because that will be the price charged in your credit card, and you will understand better the currency conversion, because you use euro in your life.

I hope this helps you.

So as a resume, how to test it? Very difficult.

Best regards.

like image 76
Javier Castilla Avatar answered Nov 15 '22 17:11

Javier Castilla