in-app-billing

Android - How to check if subscription is renewed?

拟墨画扇 提交于 2019-12-30 05:53:10
问题 I have an android app with renewable monthly subscriptions. In this app I want to notify user some info when his subcription continues in next month. As I can see renewals in merchant center(orderId ends with eg. ..0, ..1), but when querying the inventory my purchase orderId is same as befor eq. { "orderId": "GPA.XXXX-YYYY-XXXX-ZZZZZ", "packageName": "my.packageName", "productId": "my.sku", "purchaseTime": 1456398623654, "purchaseState": 0, "developerPayload": "mypayload", "purchaseToken":

Restore purchases in In-app Billing (IAB Version 3) android

点点圈 提交于 2019-12-30 03:02:06
问题 Google has upgraded to IAB3(In App Billing version 3). First what a issue in example code.. super.onDestroy() is missed. I implemented v3 with the help of http://developer.android.com/google/play/billing/billing_integrate.html It is tested on phone, does not work in emulator.It stuck in emulator. My issue is, I did not see the API for restoring transactions. How can I restore purchases with IAB3? Is it mService.getPurchases(apiVersion, packageName, type, continuationToken) . Has anyone tested

how to get subscription expire date in inapp v3 android

拈花ヽ惹草 提交于 2019-12-29 06:28:34
问题 Hi I have I implemented inapp billing V3 for one year subscription for a item using android-inapp-billing-v3. I want to show remaining days in my app. I am calling getSubscriptionTransactionDetails to get Transaction details for the product but it always returns null . here is my code. private BillingProcessor startInappCheck(){ bp = new BillingProcessor(mContext, BASE64ENCODEDPUBLICKEY, new BillingProcessor.IBillingHandler() { @Override public void onProductPurchased(String productId,

How do I verify Android In-app Billing with a server with Ruby?

心不动则不痛 提交于 2019-12-29 03:10:15
问题 I am having trouble figuring out how to verify Androind In-app Billing purchases with my Ruby on Rails server. http://developer.android.com/guide/market/billing/billing_integrate.html I think that Android gives a Security.java that has some sort of method to verify on physical device. From my research it seems like either (1) I need to figure out how to use this Security.java class with my Ruby on Rails server or (2) I need to port Security.java to Ruby. Is this correct? Does anyone know

mService.consumePurchase(3, packageName, purchaseToken) always returns RESULT_DEVELOPER_ERROR = 5 - invalid arguments provided to the API

孤街浪徒 提交于 2019-12-28 16:01:11
问题 I'm always getting "RESULT_DEVELOPER_ERROR = 5 - invalid arguments provided to the API", when trying to consume a purchase with String purchaseToken = "inapp:" + getPackageName() + ":" + productId; int response = 0; try { response = mService.consumePurchase(3, getPackageName(), purchaseToken); } catch (RemoteException e) { // TODO Auto-generated catch block e.printStackTrace(); } For that reason, I can always only make a purchase once. However, I need to be able to make the purchase much more

IAB startSetup NullPointerException

試著忘記壹切 提交于 2019-12-28 12:03:03
问题 I am attempting to setup In-App Billing in my application. I haven't got very far and am running into a null pointer exception when trying to start my IabHelper. I am following this google tutorial. import com.iabtest.util.IabHelper; import com.iabtest.util.IabResult; public class MainActivity extends Activity { IabHelper mHelper; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); String

IAB startSetup NullPointerException

笑着哭i 提交于 2019-12-28 12:02:32
问题 I am attempting to setup In-App Billing in my application. I haven't got very far and am running into a null pointer exception when trying to start my IabHelper. I am following this google tutorial. import com.iabtest.util.IabHelper; import com.iabtest.util.IabResult; public class MainActivity extends Activity { IabHelper mHelper; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); String

In App billing not working after update - Google Store

佐手、 提交于 2019-12-28 05:33:12
问题 I have implemented In-App billing in my app - and very recently google has updated it,previously i was testing the in-app billing with "android.test.purchased" and it was working fine (Buy full Version and Restore full version). Now i took the changed classes from here https://code.google.com/p/marketbilling/source/detail?r=7bc191a004483a1034b758e1df0bda062088d840 After that i am not able to test the app it gives the following error in the Logcat "IabHelper: In-app billing error: Purchase

Common subscription for Android and iOS App

给你一囗甜甜゛ 提交于 2019-12-25 16:59:07
问题 We are developing a Point of Sale app available on iOS and Android platforms. Our business model is such that, each user will have to pay us a customised cost based upon the number of his business outlets on half yearly or quarterly basis. Once the user will pay us that cost than he could use our apps on any number of devices, on any platform. I want to know if it's compulsory to process subscription charge for iOS App through Apple In App Purchases. Or we can process subscription offline and

Testing of In-app Billing application

回眸只為那壹抹淺笑 提交于 2019-12-25 05:08:10
问题 I have made a testing application for In-app Billing, For testing the feature of In-app Billing do i have to upload the application on market (not publish) or i can test it directly ? 回答1: if you are using android.test.purchased then you need not to upload your APK. if you are using your own product id then you have to upload APK and also you have to add a product with the same name you mentioned in your code. you have to publish only product (not application). Note you will not be able to