Android inapp purchase is not showing payment method - android

I am working in android inapp purchase. According to documentation and my previous experience 2nd picture must let the user continue further payment steps. But whats wrong with this. Please help .TIA. first picture
second picture after clicking continue button

I found the reason. This is area constrain. Previously Google play used to expose payment option in all over the world but not now. It is now available where google play gives their service available. Even we can't buy any paid app from google play in Bangladesh. This is not feeling good.

Related

How do I know app is launched / updated in a different country

Basically, we have two versions of the same app. One is available in my country and the other in another (there is a huge difference between the two, so we had to do them separately).
After updating the app, I usually go sit on the Play store and ensure that it has updated (new version number and release notes), how would I know if the one in the other country has updated? (I only released it today for the first time, so don't even know if it launched successfully)
Sorry, feels like a silly question - but, I could not find a simple solution yet.
Whenever you update your app over Google play store and it is successfully up and running you will get a Notification on your Google play console with saying that your app is live.
if you dint get the notification then you need to check whats wrong with the release management.
There are a few solutions:
Google Play lets you know both in the Play Console and in the Play Copnsole App that your publication has gone live
In the Play console app and the Play console you can see install statistics, so you can see if anyone is installing
You could always use a VPN to check to appear if you are coming from another country
If you have access to a credit card from the other country you could create a second Google Account and use that credit card as a payment method to buy an in-app product. Google Play usually bases the user's country on where the payment method is if they can
You can use Firebase analytics to measure things like installs of the other version

Implementing a Yearly Subscription

I am developing an app for Android with Android Studio.
My questions are:
"How do I implement A Yearly Subscription for my app? I want the app to not be usable if they don't have a current subscription-how do I do that?
I know that I have to go to the developer area in Google play and setup subscriptions, and that I need a product ID, but what about code in my app? Is there a library, set of code, or an easy way to accomplish what I need? I know I need an API, but where do I add it in my app? I am lost...
Again, all I want is for my app to have a yearly subscription, and the app should not work unless the yearly subscription is paid.
I have went here, and again it only tells me about the play console-nothing about adding code into my app. Google Play Create a Subscription I don't know what I need or where to code for it...
Any help would be greatly appreciated, and thank you in advance!
Step 1
First create a payment profile with Play Console and follow all instructions at https://support.google.com/googleplay/android-developer/answer/7161426
including the pages on the right side of the page.
Step 2
Incorporate billing into your app using the billing API described here
https://developer.android.com/google/play/billing/api

Refund test order on Google Play

How to refund in app purchase payed with test card?
I use "consume"-button in my debug version, but I wouldn't use it in release version (I don't want to show this button to end-users).
I see charded Test order in Google Play Console > Order management, but Button "Refund" is disabled: "The selected orders can’t be refunded either due to their age, status or your lack of requisite permissions".
Is there non-programming solutions?
EDIT: my refund button is no longer greyed out. Give it a try!
There is no way to do this without extra work. Came across this reddit post - it looks like it used to be possible a couple of months ago.
Here's Google's quote from the link:
Thanks for contacting Google Play Developer Support!
Unfortunately we don't currently support a way to cancel/consume test purchases through the console, you can only do so programatically.

How to implement in-app purchase of application Android?

I have created a android application. Subscription is free. However I have put ads inside application. Now I want provide option within app where people can buy ad-free version. And also provide option to restore purchase.
I went through Android docs didn't understand anything. Please provide a good tutorial.
Hey I had worked on InApp Purchase recently and I've successfully integrated in my existing app and ready to make it live. Initially when i had started doing this I've downloaded google InApp Billing Example called "Trivial Drive" from here.
But it didn't help me much as it has lots of issues and bugs, So I've decided do it on my own from scratch using new v3 api which you can find here. This tutorial has clear explanation that would help you and also if you have time, see this youtube video where google employee had explained clearly how to integrate it.
Also if you want quick example, I've a sample app which you can download from here.
The following video also explains how to integrate InApp Purchase. Please go through it.
https://www.youtube.com/watch?v=-h2ESH71hAI
Thank you
Refer this question on SO Implementing In App purchases in Android?. Also for official documentation of The In-app Billing Version 3 API refer this link http://developer.android.com/google/play/billing/api.html
This is how you create In app purchase inside your app.
1) In your developers console, go to your application and create a in app product(Name it as Ad-Free Access or what ever).(Note: to create a in app product you need to have a merchant account).
2) If you have a merchant account ready, create a InApp Product with the type of Subscription(One time or monthly or yearly) and price.
3) Once you have created the InApp product successfully, you can prompt the user to purchase an InApp product by quering a list of in app products in your app and ask user to purchase them.
Here is a link to query the InApp products:
4) Once a user purchase the product, based on the purchase status of the product, you can disable the ads in your app.
The Simple and very easy way to implement in-app through a library anjilab.
Just add the dependecy
implementation 'com.anjlab.android.iab.v3:library:1.0.44'
Add Permission, implement methods and you done.
For any issues you can see here
issues

Ambiguous error messages within Trivial Drive

I am attempting to get google's example (in-app purchasing version 3) test app "TrivialDrive" to work, but have the following problem:
I click the "buy gas" button, this brings up the following screen:
There are two possible interpretations of this message:
The item is unavailable THEREFORE this user can not get it.
The user is somehow not eligible to purchase this item THEREFORE the item is unavailable.
So which is it? And why might I be getting this error anyway?
By the way the app has been uploaded to my developer account yesterday, so I have far exceeded the 2-3 hour wait Google recommends for the data to be in the system.
Also I have "Play Store" installed on the device.
Just for good measure here is a screen grab from my developer account:
I am running the app from a device registered with a gmail address which is on my developer's "Test Accounts" list.
EDIT: I just tested another app of mine which used the old-style (Version 2) billing system and it reported "Please first complete your account by adding a payment method". So it would seem that the lack of payment method was the ultimate cause - but I wouldn't want potential customers to be presented with such a useless and misleading error message. I did a search for "item unavailable" in the MainActivity.java and the strings.xml and found nothing, so am at a loss as to haw to avoid this scenario.
I see that you have yet to publish the overarching app that the in-app product is supposed to stem from. As a result, Google does not allow you to pay for an in-app product if the application itself has yet to be published. Once you release the application and publish it, you should be able to access the in-app product's sales page.
An in-app product will appear UNPUBLISHED until the owning application is published.
Even if you were to publish your in-app product, nobody can buy it until your actual application is.
Have you setup a test account? The test account should not be the your google play dev account.
Explained here

Categories

Resources