In my android app, I have in app purchase. I used Indian gateway and it is working fine for payments in INR. Since I m planning to release it outside India, so how would I convert price for each country against valid conversion on day of sale of service. I referred few links but did not get any idea to start with. pls guide.
I believe Android handles this for you.
Refer to https://developer.android.com/google/play/billing/billing_admin.html#billing
Provide a price in your home currency, or link the price to an
existing pricing template. Based on the price you enter or the prices
from the pricing template, the system autofills country-specific
prices for different currencies. These generated prices use current
exchange rates and locally relevant pricing patterns (see figure 1).
You can also change prices for other currencies manually, but you can
do this only if a currency is used in one of the target countries for
your app. You can specify target countries for your app on the Pricing
& Distribution page in the Google Play Developer Console.
Related
Google has documentation of what to do IF a subscription's price has changed.
You're supposed to use a billing client and launch PriceChangeConfirmationFlow. However, how do you detect if the price has changed in the first place?
What Android library API would tell me that?
The SkuDetails have the price, but the Purchase details don't. They just refer to the SkuDetails using the "productId". I'm looking at the raw json. If the Purchase object had a price in it, I could compare it to the current price in the SkuDetails, but it doesn't.
When you query for the user inventory with the billing API, you get Purchase objects which include the purchase time. A bit of a hacky solution is to look at that date and if it's before the time you changed your price, you initiate the flow with launchPriceChangeConfirmationFlow().
I am working on a Android app with the possibility to purchase a physical items. The payment will be implemented with help of the Paypal SDK.
Now i am facing a problem. I only offer two products which can be ordered. First one for say 10 Euro and the second one for 15 Euro.
Where do I have to place the price information which is then to be transfered to Paypal? I donĀ“t think hardcoding the price for my items
into the app is a good approach, but I did not find any better solution for it. I decompiled the app of one competitioner and saw that he also just saves the
price into the app?
Once i hardcode the price information into the app, how should I change it in future? Old app installations will always have
the old price? Lets say it was 10 Euro and now it should be 12 Euro?! How should I change that?
One possibility would be to get the price informaton from my CloudService each time the user starts my app?
What are other solutions for that problem? I want to be flexibel to change the price of my products and to be safe from manipulation.
(I would verifiy the payment with my CloudService and Paypal)
Regards
Store price on your Server this is the best way
You set pricing in Google Play Console.
Go to your application, Store presence, In-app products.
You can add your products and pricing info in there.
I've been using Yahoo! Finance API to fetch stock prices. The XML in the links 1 and 2 have a list of most ticker symbols I would need, but they are jumbled and not sorted based on the stock markets they are associated with (for e.g., I would like to associate Google's ticker symbol 'GOOG' against NASDAQ). Given the total number of companies listed in the XML files, it would be extremely time consuming to try and manually associate them against their stock market.
Is there anyway we can achieve this using code (preferably Java) or is there an available site which does that for us? I have been Googling this for the past couple of days but haven't been able to find anything helpful. Please let me know if anymore details are required.
I get a lot emails lately that someone tried to pay inside my application with in-app billing and they get a "card not supported" kind of error on the Android in-app billing window. These same people report that they are able to buy other apps directly on Android Market, and with the same card they can't pay in-app.
I tried to contact Google but no response yet (I will post an update if I get an answer).
Have you experienced something similar? And then some people run into the in-app billing bug, where your order is "pending" and you can't do anything. I get negative feedback and this is outside my responsibility.
I think I found a solution for my problem. It was most probably caused after we asked Google to transfer the whole Android account to a new gmail address. I have checked the in-app products in the Android Market console and the the price field was empty on the new account! Only the country specific prices were set. I am pretty sure that the price was set before the account was changed. So I edited the product and entered a price and I asked a customer who previously couldn't pay to try it again. It worked!
So be sure to check if your in-app products have the price set (and not only the country specific price values).
BTW. Google also changed our public key while switching the accounts. People were complaining the whole day that they paid and didn't receive the item. Well Google took the money but the information was delivered signed with a new public key and was not recognized on the devices.
I need to use google finance api for my application and I must retrieve position's price.
I have looked for how to do that in the google docs but I have not find it.
I use Java api and I thought use PositionEntry and PositionData object but nothing about price into these objects.
So, how to retrieve this price ?
You can't directly access stock prices, using the Google Finance API, because they do not expose raw quote data due to data rights and licensing reasons.
You can compute it, however. Look at the transaction feed for a given position (You must own shares of the position, not just a 0-share entry.) Compute the total number of shares owned (cumulative buys less cumulative sells) and then look at the market value of the position.
Market value / number of shares owned = individual share price.