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.
Related
When I try to use a in-app billing item its api show that: “The publisher cannot purchase this item”
I want to check in my app if the user is myself, a google Play Store user and the publisher of app, to put all inapp billings items free for me, so how could I check programmatically if the who user is trying to buy in-app billing item is its publisher?
A developer cannot purchase anything from herself. To fully test, you will need to create a test account in the Developer Console and then install your app on a device where that is the primary account. There is no other way. See
http://developer.android.com/google/play/billing/billing_testing.html
I have implemented inapp purchase for my android app.
I have found following link:
https://developers.google.com/commerce/wallet/instant-buy/test-flows
According to this link, i can create a dummy credit card and wallet account using sandbox testing.
But is it applicable to inapp purchases? or only the purchases from google play?
I have created a test wallet account and added dummy card with ni 4111 1111 1111 1111 which is valid card no acccording to the above tutorial.
but while purchasing item from my app, i have entered the card details 1st time, then it says "this card no is not valid"
Any idea how to use this facility?
In android billing library version 3 ,Testing with dummy credit card is not allowed.
To test your application , you have need to use a original credit card.
But before this make sure your Google account has been added as test account on developer account.
Login to market.android.com/publish
Click settings, "Account details"
Add e-mail adresses to the field "License testing"
Make sure to upload the signed APK to developer console.
Make sure to install the signed APK on your device not launch the app in the debugger.
Make sure to create a test account in your developer console.
Make sure to sign in your device with your test account (with the same e-email id you have added in account details over google play developer console).
Make sure to create in app billing in your developer console and finally activate the item from the console!!! (this is the one that got me after fully following google's tutorial)
Make sure to set VersionCode and VersionName in the manifest to be the same as the version in the developer console (Alpha, Beta or Production. Drafts does not work anymore).
and then during product purchase - you will see a message below your email-id that 'This is test order, you will not be charged.'
I have a problem related to In-app billing v3 (Sandbox). I've uploaded the application and defined gmail accounts for testing and create In-app product with specific Product Id: light_armor and ACTIVATE the product items. When I tried the sample application given (attached) together with the "Google Play Billing Library" which is located in "C:\Program Files\Android\android-sdk\extras\google\play_billing" or downloaded into Android SDK manager Which is the name of the sample app there is TRIVAL DRIVE.
When using the reserved product Id e.g "android.test.purchased" and other 3 reserved product id's. It works properly but when I tried to implement the Product Id that I've created where the status is ACTIVE it gives the error of "This version of the application is not configured for billing through Google Play. Check the help center for more information."
I have waited more than 24 hours to see if it's really worked well but it give me this error. I assume that google gives the exact example of In-app billing.
Questions:
Does google play testing purchase affect by the type of carrier you have?
Does the app really need to be published in order to test the In-app product items?
I've declared the product Id as light_armor only, does it necessary to include the package name on it? like com.example.inappbilling.light_armor.
Sorry for my Bad english.. I hope you would help me. Thank you . ^_^
Answers:
May be not, i don't find anything about anywhere saying in app purchase carrier dependent.
App doesn't need to be published for testing in app purchase, only items needed to be active.
You only set the product id as your wish by following convention. It will be automatically reflected as com.example.test:item.
In-app Product ID
Product IDs are unique across an application's namespace. A product ID must start with a lowercase letter or a number, and must be composed using only lowercase letters (a-z), numbers (0-9), underlines (_), and dots (.). The product ID "android.test" is reserved, as are all product IDs that start with "android.test."
In addition, you cannot modify an item's product ID after it is created, and you cannot reuse a product ID.
These are the procedure for adding and testing in app purchase which works in my case --
First You have to create a signed apk then uploade it to play store and save as draft. Remember what product id you used in your code as item product id, you will need this next step.
Second Add a new product in In-app Products, set the product id of this item according to that id which you added in code and set it to Active.
Third Add the tester account in developer console and distribute this signed apk to those people for testing. If you don't distribute that signed apk then you will always get
"This version of the application is not configured for billing through Google Play. Check the help center for more information."
error as the app by which you are trying to test the in app purchase doesn't contain the same finger print which is in developer console.
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.
I am making an Android app based on in app purchase. In my app I have a sample video and if a user wants to buy it, I want to make an in app purchase through Android Market site.
I went through the steps in Downloading the Sample Application.
I downloaded the sample app and I tried to use it for checking purpose. I added my public key of my market account and added the video name I have to show to the user. In my market account, in the in app product list I added the details of my video title, description, product id.
In the developer site I found the following line:
Do not publish the sample application; leave it as an unpublished draft application.
The sample application is for demonstration purposes only and should not be made publicly available on Android Market.
When I run the app and click the buy button an alert box gets appeared saying that
"The Item that you requested is not available for purchase".
The Android documentation is quite confusing on this point.
Yes, leave the APK as draft--do not publish it.
Make sure the email address attached to your device is entered in the "Test Accounts" field (separate multiple email addresses with commas): https://market.android.com/publish/editProfile
However, when you add an in-app purchase product to the app, you need to click the publish button ON THAT PRODUCT. The app is not published, but the product is.
If you do this, then you should be able to run the app on your device, view the IAP products and purchase one, but other people would not be able to, if their email address was not listed in the Test Accounts for your developer profile.
at last i found my mistake with the help of a sample app. The in app product id which is given in the market account must be given in two places of the app. In the
CatalogEntry[] CATALOG and in the strings.xml file the ids entered must be the same. i have given the same id in Catalog entry but not in the strings.xml file
now the in app products gets listed out correctly.