in-app-billing

In-app Billing design - How to give the user free items on first install

天大地大妈咪最大 提交于 2019-12-06 15:59:57
I want to implement in-app billing for my application where users can purchase coins. However I want the users to get some free coins when they first try the game. How do I go about implementing this? If I just store it in the app settings, they can just keep re-installing the game and getting the free coins again. And the SD card is not secure enough, I don't want people tampering with it easily. I hope this isn't a duplicate but I looked around and couldn't find anything in the docs. Iv'e seen a few suggestions but they all include using your own server, which I do not want to do. App

How to convert openssl_pkey_get_public and openssl_verify to C

点点圈 提交于 2019-12-06 12:39:56
问题 Now I'm looking for a way to verify the signature from 'Google inapp billing' system. I've found 'openssl_pkey_get_public' and 'openssl_verify' functions in php(it is very easy and simple!!), but no example or document for C or C++;;;(I spend last two days for searching it..OTL...) now I have : - public key - signature - purchase data from google I want to implement verifying code using C or C++ Is there someone who knows how I can get it? I've searched belows.. - http://www.nlnetlabs.nl

getSkuDetails() returns 0 items returns empty array DETAILS_LIST

时光总嘲笑我的痴心妄想 提交于 2019-12-06 12:11:05
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 bundle = new Bundle(); querySkus.putStringArrayList("ITEM_ID_LIST", bundle); The app is currently in Draft.

In android market is there a subscription facility?

落爺英雄遲暮 提交于 2019-12-06 09:21:28
Currently I Am developing an magazine reader app. In my app I want to provide the Subscription facility where user can have monthly subscriptions. I am having a doubt that is there a subscription facility in android market. I went through the Google docs.I fond that now its not available. But still I am having a doubt and little bit confused. Can any one tell me about this. Any help will be appreciated.I really want to clarify this for the further movement. Yes, there is an API that facilitates subscription. It's called In-app Billing and it's one of the most difficult to use payment APIs I

Duplicated “IInAppBillingService.aidl” File - Library + App

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 08:09:53
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: com/android/vending/billing/IInAppBillingService$Stub$Proxy.class For the time being I was just using

Trying to cancel an Android test subscription gives me a 500 response code

白昼怎懂夜的黑 提交于 2019-12-06 07:55:19
I have an Android app with in-app subscriptions. While testing, I used a google account to "buy" a test subscription - the ones that last for 24 hours and don't incur in actual billing. It worked fine a few times, but my last "purchase" is stuck and I can't cancel it. When I try cancelling it via Google Play store, either the app or the website, I get these extremely unhelpful error messages: "An unexpected error occurred. Please try again later". When I try cancelling it via Google Play Developers API ( https://developers.google.com/android-publisher/api-ref/purchases/subscriptions/cancel )

Running code on the main/UI thread in Cocos2dx

落爺英雄遲暮 提交于 2019-12-06 07:24:06
问题 Edit: So the issue was on the Java side. The purchase finished listener wasn't being called. This was very helpful: IabHelper PurchaseFinishedListener My Cocos2dx game runs fine on Android and iOS for the most part. Only think giving me trouble is Android In-App Billing. I'm using JNI to call from C++ to Java. The Java code goes back and forth w/ Google Play billing system and ultimately calls back to the C++ code indicating how much treasure to give to the user (amount successfully purchased

Invalid expire date after subscription purchase

本秂侑毒 提交于 2019-12-06 06:37:58
问题 i've got an android app with in-app subscriptions. After the user has purchased a subscription, i request the "validUntilTimestampMsec" and "initiationTimestampMsec" through our backend by the Google API. The returning timestamp "initiationTimestamp" is correct and represents the time the user has made the purchase, but the returning timestamp "validUntilTimestamp" has always a difference of +12 hours to the real valid-until time i need. The function i use to retrieve the date is simmilar to

In-App Billing: Inventory not correct; makes user purchase again

邮差的信 提交于 2019-12-06 05:02:53
问题 Edit*** still looking for an answer to my original question. Why won't Android see the item has been bought previously instead of making the user pay again? Setting SharedPreferences is an OK idea, but what if the user uninstalls? They would have to buy again. I do not want this for the users. Thank you. I tried to figure out why the app does not inventory correctly, I took this from TrivialDrive and tried to make it my own. I believe I removed all the consume and I only have one item to

IAB Error You already owned this item

﹥>﹥吖頭↗ 提交于 2019-12-06 03:55:32
问题 I'm now developing a small game with Google's in-app billing service. And I reference to Trivial Drive of Google's sample project. Let's me ask you about connection interruption during Purchase Items from Google Play. It's OK when launching purchase flow with normal internet connection. I tested like this. As soon as purchase flow is launched, disconnect the internet connection (by unplugging the routers' LAN). After about 2-3 minutes, It shows Connection time out. In merchant account, Money