Play Store In-App Billing custom price programmatically? - android

My application is used to buy journey tickets. The ticket price is different everytime. Can I use In-App Billing to make the user pay a custom price everytime? If so how? i.e. can I set the price which the user has to pay programmatically?

You cannot programmaticaly change the price of a product using Google Play In-App Billing .You could fix the price in the Android developer Console .If you still want to custom price at the runtime you could use PAYPAL for that :
https://www.x.com/developers/paypal/products/mobile-overview

You cannot use Google Play In-App Billing to make the user pay a custom price.
Moreover you cannot use Google Play In-App Billing to sell physical goods and services like journey tickets:
You can use In-app Billing to sell only digital content. You cannot use In-app Billing to sell physical goods, personal services, or anything that requires physical delivery. Unlike with priced applications, once the user has purchased an in-app product there is no refund window.
http://developer.android.com/google/play/billing/billing_overview.html

Your use case perfectly fits the Google Wallet Instant Buy API for Android. Google Wallet Instant Buy API for Android is specifically for physical goods and services and has a simple integration into your Android App. It was launched during Google I/O 2013 and you can get an overview at the following blog post:
http://googlecommerce.blogspot.com/2013/05/fast-and-easy-checkout-for-android-apps.html
Also, please checkout the Google I/O Talk on the same topic
https://developers.google.com/events/io/sessions/330844794
Since this is still in beta, if you're interested please sign up using the interest form
http://getinstantbuy.withgoogle.com/

Related

Google Play Vs In-App Billing

So I'm planning to create an app that licenses and sells original photos in my android app where as users can directly purchase from other user these items and get a direct link from the app after purchase, the users who purchase another user's photo can upload the photo into other apps like IG/FB/Twitter/etc. As per google pay SECTION 2: Permissible Payment Transactions Terms of Service I cannot use Google pay to sell digital goods....however in-app billing is only for digital content limited to the scope of my app...can someone please clarify what the hell is going on with google ?
To answer your question, like what you have mentioned above, In-app billing is only limited to your app, if you allow the user to use the digital photo outside of your app, it is not allow.
You are looking at Google Pay ToS, which is not designed for mobile in-app purchases. For in-app purchases, you will be using Google Play Billing (https://developer.android.com/google/play/billing/billing_overview). Sorry for the confusion.

How do i integrate google wallet in my application

I want to integrate google wallet in my application:
I need the below functionality:-
User can buy some coins from merchant application using google wallet .
For e.g. User will be given an option that 10 coins -- 1$.
so user will be redirected to his google wallet and payment of 1$ will be done from his google wallet to Merchant application's wallet.
User can redeem the coins to money in his google wallet . < This will be done automatically once the user's coin count reaches a predefines value say 1000.> So As soon as user's coins reach 1000. They will be converted to dollars and will be added in his google wallet.
As i did some research :
Google Wallet is available on Android in two flavors.
In-app Billing - used to sell digital goods:
http://developer.android.com/google/play/billing/index.html
Instant Buy for Android - used to sell real goods and services:
https://developers.google.com/commerce/wallet/android-overview/
I do not understand which one of the two serves my purpose.
Please guide me . Thanks
Neither of the two will serve your purpose fully, as neither will allow your second scenario (selling coins back for real money).
In-app billing will let your user buy coins and pay via the Play Store.
Instant Buy (Android Pay) is just a payment method you can use. You'll still need a payment processor (e.g. Stripe or Braintree). The payment processor may allow your second scenario as well, but this will not be handled by Android Pay.
There is no way to pay to a user's Google Wallet. Google Wallet can only be used to send money to friends and family, not for conducting any business. This functionality existed in the past, but is now fully integrated and rebranded into Android Pay (Instant Buy).
I got the answer for this question.
I needed to integrate In-app-billing. I declared my products on google developer console. And user can buy the products using in app billing service.
For Redeeming , google does not support peer to peer payment processing . So my application can not give money directly from merchant account to user account using google service . Google does not support it .
I needed to integrate Paypal for sending money to user account from merchant account.

How to purchase digital goods using Android app

Currently, I am working on a project where I have 2 buttons "Add 500 Points" or "Add 1000 Points" and when they press on it, they will pay 5$ or 10$ using in-app payment.
The user can pay multiple time by pressing the buttons.
As I am doing first time this type of work, kindly let me know how can do this in Android.
First of all you need to implement in-app purchase, follow this for more : Implementing In-app Billing
after purchasing any product, you need to consume product : Consuming In-app Products
mService.consumePurchase(3, getPackageName(), token);
for more code you can check here : Consuming a Purchase
you can even follow this tutorial for easy use of in-app purchase.
This question is tagged with "android-pay" so I thought I would add some clarification. Android Pay cannot be used to sell digital goods. If you are selling digital goods or virtual goods you should use the Google Play in-app billing service.
See Android Pay questions
Q: Can I use the Android Pay API for selling digital goods?
A: No. The Android Pay API cannot be used for selling digital goods, whether they are consumed on the device or outside the device. The Android Pay API may be used only for the sale of merchandise, goods or services provided to a Buyer outside a digital environment in the physical world. The Android Pay API may not be used for the sale of any digital content or services provided through any means.
Developers who want to sell digital goods should use the Google Play in-app billing service.
For more info, see Google Play in-app billing service

Confused about needing a Google Wallet Merchant account to enable in-app billing

I've pretty much only found out that "You must have a Google Wallet Merchant account to use Google Play In-app Billing." But I don't understand... What is it for? Do I actually need this? What does it do? How and where do I get one, and does it cost anything? The Google Wallet website seems to only have information for actual stores, not apps.
What I want is there to be a free, limited version of my app, but the user could pay a monthly subscription to get access to the full features.
I found out that what they mean by "Google Wallet merchant" is just "Google Checkout". "Google Wallet" has two parts, the app and online. The app is just for NFC purchases and nothing else, you cannot use any prepaid money on the Google Wallet app to buy anything on Google Play. The other part is the payment system that Google runs. This second part was formerly called Google Checkout, but a few months ago they merged Google Checkout and the Google Wallet system into one name to keep their money systems consistent.
TL;DR - you do not need Google Wallet to use in-app billing. You need Google Checkout, which is easier to register for and free.

in-app billing for unsupported countries

I want to use Google Play's in-app billing for one of my applications. But it seems I can't use it.
First problem is that according to supported locations for merchants my country - Turkey - is not in the list.
And as a second problem, my app is listed on some other markets except Google Play. Google Play in-app billing overview section In-app Billing Requirements and Limitations says that In-app billing can be implemented only in applications that you publish through Google Play. Therefore even if Turkey will be in merchant list in the future, I could not use Google Play's in-app billing for other markets. Is that right?
Then I thought using other APIs like ZooZ, Authorize.net (Actually, I did not examine them deeply, but I guess they do what I want)
But this time I read in Android Market Developer Distribution Agreement that All fees received by Developers for Products distributed via the Market must be processed by the Market's Payment Processor. Is that a problem for using such APIs? If so, what should I do for in-app purchase?
If your country is not supported, you can't really use In-App billing for your app. You could look at alternate stores, for example, Amazon app store. they have recently implemented In-App billing.
https://developer.amazon.com/welcome.html
The simple answer for Google Play would be "No" for now, till Google supports Turkey.
Get a bank account in a country that does support merchant accounts.

Categories

Resources