For my app I want to get all recent and upcomming transactions a user has. I looked at the Google Pay API and form my perspective, it just provides the functionality of make payments through your own app.
Just like I would fetch transaction data for example from Paypal, I want to do this with Google Pay. Is there anything like that provided by Google? Or maybe a way to get the information from the Google Pay app itself on the device?
Unfortunately I did not find anything helpful in my reseach.
Related
In my android application I want to let users to authenticate with google or facebook account.
I've implemented sign-in with google already.
I'll try to implement sign-in with facebook soon.
I've read about IAP in android:
https://developer.android.com/google/play/billing/billing_overview
https://droidmentor.com/inapppurchase-subscription/
at least what I understand it is about google account authentication.
So I wonder is it possible to make IAP in android application if the user is authenticated with facebook account ?
I cant find examples or explanations by now.
Any good examples/explanations about IAP with google is also very appreciated because I still don't have a clear vision on IAP.
fyi: In my app user will be able to buy "virtual tickets pack" (e.g.: 10, 15, 20 tickets) and to add them to their profile. and later they will "consume" tickets one by one.
Best Regards
My understanding is that you already have a user system that you are using to provide a Google login to your customers. When you add Facebook login, you'll probably want to match both Google and Facebook logins with your own custom user ID. It's always a good idea to have a custom ID of your own so that you can map it to different types of logins.
When purchasing through Google Play Billing, the purchase gets associated with the user's phone Google account and you can also provide an optional way of associating a purchase with your own user account system. In order to do that, when building the BillingFlowParams, call setAccountId and pass your account's system custom ID.
To provide the best experience persisting purchases during installs or across devices you should also be saving the purchases on your server's database. In order to do that in a secure manner, you will also have to implement server-side receipt validation. If you want to avoid most of these headaches, I recommend you to use a service like RevenueCat.
IAP can only be done through the user's google account, as that is what one needs to use any part of the Play Store. The user's google account is also where the credit card/other payment methods are stored for each user.
In spite of the above, the way users log into your app has nothing to do with them using the IAP system. When a user will choose to use an IAP, the google account data will be provided by the android device/Play Store, not by your app (Off subject:the process is similar on iOS if you ever get to try there).
What your app needs to do, is receive the confirmation of purchase from the IAP sdk and then mark on your server that this particular user has purchased this item. Basically for any purchases (no matter the payment provider) you would usually mark in your DB the following:
what the user has purchased
how much did he pay
when did he pay
provider's id of the purchase, so you can later match the accounting reports with the payment provider's report
where he payed from (IP can be a good indicator, although in the age of VPNs not necessarily 100% acurate)(this can be useful for your marketing decisions)
mark that this user now has access to the item he purchased and if it is a time limited item, mark when it expires, so you are able to later check if he still has the right to access it.
Disclaimer:
I have not used the android IAP system directly before. I have implemented mobile app payment systems before using iOS IAP and on android Braintree payments. But the process is most likely very similar with android IAPs as well.
I am developer, selling my apps.
But I dont always have access to my PC, so I was thinking writing a simple app which would access my Wallet Account to see how much I earned this day/week/month.
Is there any API and some working example how to do this? THanks
Do you know about the official Play console app? It lets you check financial data among other things, like reply to reviews.
If you do need programmatic access there isn't an API, but you can Download reports from Google Cloud Storage which has an API. There are instructions on that page for both a command line tool access and a client library and service account.
I am creating an Android application that will offer users a subscription option if the user has his credit card information stored in their device. If he does not, I am thinking about offering different methods for the user to use the application.
Does anyone know if there is a way to check if a user has his credit card information stored in their device?
To clarify what I am looking for:
Android devices allow users to store credit card information so they don't have to re-enter the information for every purchase. I'm talking about identifying that the user has that data stored. I am not talking about storing that information myself for the user or trying to get it. All I need is a boolean method that will tell me if the user has the data stored or something similar.
Credit Card information isn't really stored "on the device." In the case of devices that are connected to the Play Store, Google account credentials are stored and payments are made through Google Wallet. I don't have a lot of experience with other types of devices, but I imagine they all work in a similar fashion, for example a Kindle Fire will keep Amazon account credentials, etc.
If you're looking to create an application that provides in-app purchases and will be available on the Play Store, you can click here to read about Google's In-App Billing API that allows your users to use their Google Wallet to make payments. For Kindle Devices, Amazon has a similar API.
It would be a pretty major security concern if arbitrary apps had access to the device owner's credit card information. If you're writing an app that you intend to distribute outside of a reputable app store and therefore without a built-in in-app purchase api, you're going to have to use your own payment mechanism. If this is the case, I wouldn't recommend creating your own. I believe PayPal has an Android API, and a quick Google search came up with a few other less notable brands that offer this service, though if you do intend to use the Play Store or Amazon's app store, using a 3rd party payment API usually goes against their terms of service.
Edit: The AccountManager class allows you to view info about accounts on the device, however, I don't believe that you can use it to discover if the user has a payment method set up through Google Wallet. I found this SO question that goes into detail about what the AccountManager can be used for. If this is a Play Store app, I'd look into the Google In-App Billing API, it's probably the best option for what you're trying to do.
is there any way to give access to the statistics of a specific app on my google play developer account to a 3rd person?
I have various apps, one of them is developed for a customer and he asks access to the downloads and rest statistics.
At present, Google Play does not provide mechanism to enable access to a specific app alone, although you could give access to your whole Developer Console. The only thing you can restrict is the financial information. I hope this is not what you want.
In your case, you could provide screenshots if that is acceptable.
I ended up to use a google api to retrieve the statistics and create my web front end to show them to my customer.
You can find at http://code.google.com/p/android-market-api/ a php version of the backend.
kudos to this post too: Is there an API to get statictics on Google Play developer console?
As far as I concerned, there is now way to give access to statistics only to 3-rd person, besides giving him your account information. For my personal usage, I developed a widget for tracking some statistics of my application and eventually I released it on the market. So I think it will be helpful to you as well Applications Tracker Widget is the app which will help you
Situation:
Our company has an application in Google Play. Application uses in-app purchases and information about payment transactions are shown in google checkout.
Our company used in-house analytics system to see how many payments are done, how much money we got, etc.
I need to create some way to fetch information about payments from google play/checkout(#1) to our system (#2).
According to research in Internet, I found following ways to do that:
Polling API
Notification History API
Order Report API
All this sysstems will work for me, however, I need somehow to get Merchand Key in order to be able to request data from system.
Merchant key should be located in Settings -> integration, however, our company google checkout account has no "integration tab". According to interenet, reason is that we are not "standart merchant but google play merchant".
Questions are:
How to get information from google play about payments ?
Is there any other way to do such thing, for example directly from google play ?
Or, is there any other way to get merchant key ?
I am totally newbie in Android or google play so desperately need help.