android-billing

Consistent secure Google Play in-app purchase scenario with own web server

非 Y 不嫁゛ 提交于 2019-12-04 15:10:44
问题 I've read several times all the docs in the Android Developer Guide and became familiar with nice Google presentation Evading Pirates and Stopping Vampires Finally I tried to implement in-app billing scenario involving my own web server in accordance to the presentation above. Here are the main points of interaction with my server: Before making REQUEST_PURCHASE request to Google I make a request to my web server to register a new purchase. If the request succeeds I get a nonce from the

Android in-app billing, how to handle app reinstalls

我怕爱的太早我们不能终老 提交于 2019-12-04 08:07:32
I'm very confused on how in-app billing works. I've read the documentation and I must have missed something because I don't understand the final step I need to implement into my application to make this work. The in-app billing works great, however, if a user uninstalls my app and installs it again at a future date, my application doesn't know how to determine if the in-app purchase has previously been made. Here's a snippet from my main class where I attempt to handle all of this: @Override public void onCreate(Bundle savedInstanceState) { mContext = this; startService(new Intent(mContext,

Android IABv3 getSkuDetails not returning Sku Details

☆樱花仙子☆ 提交于 2019-12-04 04:27:51
I am currently battling with Android Iab v3. I have previously been using the IabHelper class from Google to display available products with success. However, today it is no longer returning me anything. The content of the querySku field passed to the getSkuDetails function of the IInAppBillingService in the IabHelper class is: Bundle[{ITEM_ID_LIST=[com.app.android.credits.10, com.app.android.credits.25, com.app.android.credits.50]}] What I get back in the bundle it return is: Bundle[{DETAILS_LIST=[], RESPONSE_CODE=0}] Since the time it has worked and now I have not altered the IabHelper code

How to detect refund with google billingclient library

别来无恙 提交于 2019-12-04 03:34:34
I was wondering how to detect a refund, or any type of cancelation of an in-app purchase(not a subscription and not a consumable). I'm currently making my test and when I refund a test in google like that : The purchase is still present in billingClient.queryPurchaseHistoryAsync() (even in queryPurchase() ). How can I detect such changes and how can I disable my app for refunded users? Thanks in advance. Have to tried this function PurchasesUpdatedListener Listener interface for purchase updates which happen when, for example, the user buys something within the app or by initiating a purchase

Adding in-app purchase to existing published application and testing it without publishing

徘徊边缘 提交于 2019-12-03 12:42:34
I'm trying to add in-app purchase for my existing published app that didn't previously have billing permission. I've uploaded an updated APK with billing permission, but didn't activate it since I don't want to publish this draft. However, I can't add in-app product - it still says "the current application version does not use the BILLING permission". Any way to solve/work around this problem? Change Android version code in Androidmanifest.xml file. android:versionCode="1" suppose if your Application version code is 1 now change to 2 来源: https://stackoverflow.com/questions/14068781/adding-in

How to create in-app purchase to upgrade from free version to paid version android

时光怂恿深爱的人放手 提交于 2019-12-03 07:53:24
I have two version of my app Paid Version Free Version Now in free version I disabled some features that are available only in the paid version. So what i want is when user taps on any of those disabled features, the in-app purchase window should pop up and when the transaction completes the free version of the app should get replaced by the paid version. Can you please tell me what would be the right way to do that. Maulik Free version to paid version scenario: To understand why you should only go for in app billing inside free version 1) Upgrading free to paid Android apps without leaving

How to remove Subscription from product list in developer console and what will be its effect on the old subscribed users?

徘徊边缘 提交于 2019-12-03 06:06:43
问题 I want to remove the existing subscription product from product list. How would I be able to perform so as I didn't found any option on my developer console to delete the subscriptions ? Also if in any way possible it is allowed, then will it have any effect on the existing users who have purchased that subscription when they call for RESTORE_TRANSACTION from their app while communicating with Google Play ? 回答1: Unfortunately, It's not possible to remove a subscription product from the

How to remove Subscription from product list in developer console and what will be its effect on the old subscribed users?

只谈情不闲聊 提交于 2019-12-02 19:32:29
I want to remove the existing subscription product from product list. How would I be able to perform so as I didn't found any option on my developer console to delete the subscriptions ? Also if in any way possible it is allowed, then will it have any effect on the existing users who have purchased that subscription when they call for RESTORE_TRANSACTION from their app while communicating with Google Play ? Unfortunately, It's not possible to remove a subscription product from the product list of the developer console. You can just remove the subscription product from the product list offered

Android inapp billing - BillingService has compile errors with onServiceConnected and onServiceDisconnected

家住魔仙堡 提交于 2019-12-01 05:46:40
I am using the Dungeons application example and I am using the BillingService class provided in that example. I am using Java 6 and @override works for me, but I get a compile error on these two methods inside BillingService.java: /** * This is called when we are connected to the MarketBillingService. * This runs in the main UI thread. */ @Override public void onServiceConnected(ComponentName name, IBinder service) { if (Consts.DEBUG) { Log.d(TAG, "Billing service connected"); } mService = IMarketBillingService.Stub.asInterface(service); runPendingRequests(); } /** * This is called when we are

Android inapp billing - BillingService has compile errors with onServiceConnected and onServiceDisconnected

别等时光非礼了梦想. 提交于 2019-12-01 03:30:29
问题 I am using the Dungeons application example and I am using the BillingService class provided in that example. I am using Java 6 and @override works for me, but I get a compile error on these two methods inside BillingService.java: /** * This is called when we are connected to the MarketBillingService. * This runs in the main UI thread. */ @Override public void onServiceConnected(ComponentName name, IBinder service) { if (Consts.DEBUG) { Log.d(TAG, "Billing service connected"); } mService =