in-app-billing

How to verify purchase for android app in server side (google play in app billing v3)

别说谁变了你拦得住时间么 提交于 2019-12-17 08:00:03
问题 I have a simple app (needs user login with account). I provide some premium features for paid users, like more news content. I need to record if the user has bought this item in my server database. When I provide data content to user's device, I can then check the user's status, and provide different content for paid user. I checked the official Trivialdrive sample provided by Google, it does not provide any sample code for server-side verification, here are my questions. I found the sample

Android in app purchase: Signature verification failed

可紊 提交于 2019-12-17 05:36:32
问题 I have tried for several days to solve this problem, using the Dungeons demo code that comes with the SDK. I've tried to Google for an answer but can't find one. In the Dungeons demo, I passed my public key from the dev console. Signed the apk and uploaded to console without publish. Testing for both android.test.purchased & product list created on console with published for subscription (The main feature I want for my app). But still I get an error of Signature verification failed and then

Google In-App billing, IllegalArgumentException: Service Intent must be explicit, after upgrading to Android L Dev Preview

核能气质少年 提交于 2019-12-17 02:09:36
问题 My in-app billing code was working fine until I upgraded to the Android L Dev Preview. Now I get this error when my app starts. Does anyone know what's changed about L that causes this or how I should change my code to fix this? android { compileSdkVersion 'android-L' buildToolsVersion '20' defaultConfig { minSdkVersion 13 targetSdkVersion 'L' ... ... compile 'com.google.android.gms:play-services:5.+' compile 'com.android.support:support-v13:21.+' compile 'com.android.support:appcompat-v7:21.

in-app billing mHelper.dispose() error

我的未来我决定 提交于 2019-12-14 02:23:31
问题 I'm tryng to implement in-app-billing. When i follow the tutorial and add the lines bellow to my app: public void onDestroy() { super.onDestroy(); if (mHelper != null) mHelper.dispose(); mHelper = null; i receive the following error: Error:(216, 45) error: unreported exception IabAsyncInProgressException; must be caught or declared to be thrown The strange thing is when i replace mHelper.dispose() for mHelper.disposeWhenFinished() it works. I'm worried cause the same error appears again in

Can we change price for In app Billing product play store

随声附和 提交于 2019-12-13 13:32:22
问题 I have integrated In app billing in my app. But I couldn't find If I can change price for a product or not after publishing my app ? I found that we can not change price for subscription product. But couldn't find anything for Managed product. Can I change product price after publishing an app or not ? If yes then How long it will take to affect throughout the Play store. If there is google document related to this and you post a link then it would be great. Thanks in advance. 回答1: From the

How to code if a checkbox is unchecked in java

感情迁移 提交于 2019-12-13 07:58:41
问题 Currently, I'm developing a Restaurant management system in java. when I check a checkbox it will add money to the total amount, all I want to know that if I uncheck that checked checkbox again then it will subtract that added amount again. following is my checkbox code private void jcbWPizzaMouseClicked(java.awt.event.MouseEvent evt) { double cMeal = Double.parseDouble(jlblCostOfMeal.getText()); double WavePizza = Double.parseDouble(jtxtWP.getText()); double iWavePizza = 350; if (jcbWPizza

Android In-app billing RESTORE_TRANSACTION usage

帅比萌擦擦* 提交于 2019-12-13 07:01:02
问题 Is there any example available on how to use RESTORE_TRANSACTIONS request to restore an In-app product purchase information? I came up with this code, but it always returns 0, so it doesn't recognize if the product is purchased or not: Everything is set up correctly. Bundle request = BillingHelper.makeRequestBundle("RESTORE_TRANSACTIONS"); request.putLong("NONCE", 32436756l); try { Bundle response = BillingHelper.mService.sendBillingRequest(request); int response_code = response.getInt(

Access to Google Play Android Developer API

这一生的挚爱 提交于 2019-12-13 06:18:58
问题 I want to check my subscription in-app purchase from my android app using my own server. I wrote a php script, but I am getting all the time error "This developer account does not own the application". I used the same google account to create an app in the Google Play Developer Console and to create a web application in the Google APIs Console. What can be wrong? 回答1: I had wrong email address set in the setting in the Google Play Developer Console. 来源: https://stackoverflow.com/questions

How to verify Google In app purchase in libgdx game?

依然范特西╮ 提交于 2019-12-13 04:31:40
问题 I have Followed Google developers guide to implement In app purchases in my Libgdx game. (I have already implemented Google play game services so I do have an idea how Core code and Android specific code in LIBGdx game sync. ) But I am confused that once I bought an item by clicking on a button, how can I update the game state. For example if I buy extra life in game, how can I update In main code that if (gdx.geType == ApplicationType.Android ) { // successfully bought a life // add +1 life

Android In app purchases Server Error DF-AA-20

£可爱£侵袭症+ 提交于 2019-12-13 03:34:59
问题 Hope you all are fine. I am trying to add in app purchases in my app.. Using google demo Trivial drive . I configure each and every thing in my play store account.. I don't know why I still am getting error retrieving information for the server. [DF-AA-20] Please anybody know the solution.. Much appreciated.. :) 回答1: As it says in the Testing in-app billing tutorial you need to upload a version of your App to the Play store and publish it (even if only to an Alpha testing track) before you