in-app-billing

Android: Consume a product after purchase (in-app billing)

拜拜、爱过 提交于 2019-12-23 22:11:54
问题 I have some problems with in app billing, I wanted to create an product inside the app that can be bought several times. But google made the in app billing in a way that a product first must be consumed before you can buy it again. I tried it with the following code: public class HomeFragment extends Fragment { private WebView homesite; private String homeTabUrl; private ProgressBar pBar; private Bundle webViewBundle; private Boolean buddyProfile = false; private Boolean buddyProfile2 = false

Why android-inapp-billing-v3 library needs two attempts to purchase?

[亡魂溺海] 提交于 2019-12-23 20:51:21
问题 I am trying to use android-inapp-billing-v3 library to implement in-app purchases inside my simple app. I'am using this library( https://github.com/anjlab/android-inapp-billing-v3) I have encountered a strange problem: you need to tap on "Purchase" button twice to buy this product. Let me explain what I mean step-by-step. Our product isn't purchased, we tap on "Purchase" button and Google Play window appears here we tap on "Buy" and see our transaction completed successfully then we tap

How can I verify user has already done in purchase In my Android App without open Purchase Dialog?

强颜欢笑 提交于 2019-12-23 03:04:54
问题 I have one application in that i have put In App Purchase when User open Application i check first time In Purchase happen or not using launchPurchaseFlow(using automatic call) because of this open Dialog of In App purchase(i am call this methode first time because suppose user have done in app purchase he is reinstalling App so check in Purchase happen or not this methode give response Already Purchase so i can know not to display add ) so how can i call this methode and ignore the in

Play Store In-App Billing custom price programmatically?

喜你入骨 提交于 2019-12-23 02:39:10
问题 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? 回答1: 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

Play Store In-App Billing custom price programmatically?

旧街凉风 提交于 2019-12-23 02:38:50
问题 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? 回答1: 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

getSkuDetails() returns 0 items returns empty array DETAILS_LIST

一世执手 提交于 2019-12-22 16:28:13
问题 I am building the "inapp" billing system in my application. After i execute skuDetails = mService.getSkuDetails(3, "my_app_package_name", "inapp", bundle); ArrayList<String> responseList = skuDetails.getStringArrayList("DETAILS_LIST"); I always get responseList.size() equal to 0, even if i have set 2 items in "in-app products" in the developer console, and i am passing them to: ArrayList<String> skuList = new ArrayList<String> (); skuList.add("first_id"); skuList.add("second_id"); Bundle

Duplicated “IInAppBillingService.aidl” File - Library + App

你。 提交于 2019-12-22 15:01:24
问题 since almost 2 months I'm searching for a solution for the following Problem. I implemented a library in my app which also includes the IInAppBillingService.aidl file and the other parts of the In App Billing Library from Google. When I'm trying to compile a release version of my app it just throws the following error: Error:Execution failed for task ':app:transformClassesWithJarMergingForRelease'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry

How to store subscription data for Android in-app billing?

别来无恙 提交于 2019-12-22 09:55:51
问题 I'm trying to implement in-app billing, where the only thing my app sells is a monthly subscription. I've gone pretty much copied the Dungeons example that Android provides and it works, but it seems overly complicated for the one thing I have to sell (and I know I shouldn't be copying it anyway). The Dungeons example has a PurchaseDatabase class that keeps track of all of the user's purchases. Since there is only one purchase in my app, rather than having a database, it seems like it would

Android In-App billing: Null Pointer Exception

拜拜、爱过 提交于 2019-12-22 09:50:01
问题 I'm trying to implement in-app billing to my application. I'm reading the guide on developer.android.com, looking at their example application. I started to write basic methods for check if In-App billing is supported, but when i try to call sendBillingRequest i receive the following error: 05-17 14:23:30.479: W/System.err(15332): java.lang.NullPointerException 05-17 14:23:30.489: W/System.err(15332): at resistorcalc.main.billing.BillingService.checkBilling(BillingService.java:63) 05-17 14:23

Android: Issue with in-app billing

僤鯓⒐⒋嵵緔 提交于 2019-12-22 08:07:04
问题 I am integrating in-app billing in my application. But, I'm facing issues in testing my app. Every time, I try to purchase an in app item. A wired message comes up The item you were attempting purchase could not be found . On Logcat, following appeared up: 09-10 14:45:02.437: E/IabHelper(12617): Launching buy intent for premium. Request code: 10001 09-10 14:45:02.523: E/Finsky(11260): [8464] FileBasedKeyValueStore.delete: Attempt to delete 'paramspXaplU_vTGhfGqvnmPPddQ' failed! 09-10 14:45:04