Problems with Android billing sample app - android

I followed all of the steps for running the Android billing sample app in http://developer.android.com/google/play/billing/billing_integrate.html#billing-download
I succeeded to buy an item, but there are several issues:
when I select an item to buy, I first get an "Item not found" error, and when I click "ok" I see the product in google play. does this happen to anyone else?
I purchased several new items, I see on my google checkout account that the order is "shipped" BUT in the billing test app, under "Items you own" I don't see anything...
in http://developer.android.com/google/play/billing/billing_integrate.html#billing-download they suggest to
refund purchases that are made with test accounts, otherwise the
purchases will show up as actual payouts to your merchant account
where can I perform the refund? in my google checkout account the "Refund some money" item is greyed out...
Does anyone know how to handle these issues?

They are several reasons
check your products are published or not.
your APK in draf mode or not.
Products must be Activate.
First create TestMails in developer console under Licence key.and your device must have using this mail id as primary mail id of device.

Related

Testing IN-APP PURCHASE With Another account on same device

Good day.I have implemented the in-app purchase flow in my application,added everything necessary to the console but i am failing to test it.Issue is that the android i dont know why uses the non-testing account (developer account) as on the purchase dialog it says 'The publisher can not purcahse this item' but although i have added test account to the device,switched account in the google play but i keep getting this error.Can anyone please tell me what is wrong with it?
If you want to test in-app purchase, you need to account on https://play.google.com, publish your app in alpha version. In IN-APP PRODUCTS, you add products you want, add emails you want to test (only emails in the list can test). You follow this link:
https://developer.android.com/google/play/billing/billing_testing.html

My Game’s In-App Purchasing Doesn’t Function

I am a Android game developer in Nigeria. My app is in the playstore and it has in-app products. The default price is naturally in Naira, as is my Merchant Bank account.
Here is the problem: when I try to purchase a product from my game, it gives me this error
My banks subsequently tells me that I have selected the DCC Payment option(Dynamic Currency Conversion) which allows me to pay in Naira which has temporarily restricted on all the cards.
It further tells me to "reattempt the transaction and select the currency of the country you are transacting in".
Now, I do not think this is my bank problem because I have a website hosted on Hostgator, and Hosgator charges 11 dollars from my account every month successfully.
And when I try to buy stuff from Candy Crush, it does not give any problem. It goes straight ahead and shows me this
I really do not know what the problem is - do I need to get a dollar account for my Google Merchant bank, so that it charges me in dollars and works?
Did anyone in foreign countries have this issue? Please help.
Thank you.
Common mistake why we encounter this error is not being able to set the product id. It is important that you set up the in-app product id which should be the same as in the console and activate it.
As stated in Creating a Product List, you can sell an item using Google Play's in-app billing feature only if the item is listed on an application's product list. And to activate it, access In-App Products link in your developer console then check status field.
This related SO post - Android In-App Billing error You need to sign into your google account might help in getting other possible solutions.
I set the ID of my product incorrectly. Sorted it out now.

Android "The payment method has been declined" for every payment method

I'm trying to implement in-app billing using Android, but I'm getting a weird error and I can't find anyone online with a similar problem.
I've done the following:
Uploaded APK with billing permission to developer console as alpha
build.
Added Google group to test, with my personal gmail account as
a member.
Gone to the opt in URL and become a tester.
Added my personal gmail account as an account enabled for testing (in settings > account details).
Created a non-consumable product and set it to "active".
Waited 24 hours.
Put a signed release build on my phone.
When I press the "Buy" button, it opens the store dialog, which says "This is a test order, you will not be charged". All seems good so far, but every payment method says "This payment method has been declined." so I'm unable to continue. This includes Google Play balance, Amex card, Visa and PayPal account.
I've tried the following, none of them worked:
Used a different google account for test payments.
Removed my account from the list of test accounts in the developer console settings to try and use with "real" transactions.
Tried a different device.
Tried creating a different product.
Any thoughts on what might be wrong?
Google support have advised that the error is caused because the merchant account is "under review". They're looking into the reasons for the review and attempting to resolve the issue. I'll update this answer with their final response.
The best advice is to contact Google support through the merchant help centre: https://support.google.com/merchants
Update: Google fixed the account and it started working straight away. You definitely need to contact them to get this sorted.

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

android inapp billing

i am currently testing android inapp billing.i got code from developer site.
and i followed all the instruction given in developer site.
1)uploaded apk file as draft in market
2)created product list and published
3)Registered test account and set that account as a primary account
but when i testing all other reserved product id's working fine,but my product id purchase is not working .buy button is disabled.
but developer site they mentioned that u can simulate the purchasing process so any body can give me the suggestion
You obviously haven't selected the payment method, that's why buy button is disabled,you should choose one option - visa card or something else.

Categories

Resources