android-billing

View Confirmation recharge billing Dialog when send SMS

帅比萌擦擦* 提交于 2019-11-30 19:10:00
问题 In the following Code to send SMS using SMS Manager: SmsManager smsManager = SmsManager.getDefault(); smsManager.sendTextMessage(phoneNo, null,message, null, null); In the below dialog that i recieve it when the device android version 4.3 or 4.4. how can detect status if click Send or cancel? 回答1: You will find that you can't detect status if click Send or Cancel as long as you read the corresponding source code. "The default behavior for sending a message to a premium SMS short code (or

Android billing - error you own this item

雨燕双飞 提交于 2019-11-29 17:19:37
I have a ndroid application with in-app billing. I want a have a subscription. i see a google sample. i introduced billing in my application. i purchase one item. but i have problem. i click a button 'purchase' start intent ... .after closing this intent(text: you own this item, i click ok) if i want click this button again app is crushed. logs i own this item. 05-31 19:02:10.416: D/Finsky(3313): [1]CarrierParamsAction.createCarrierBillingParameters: Carrier billing config is null. Device is not targeted for DCB 2. 05-31 19:02:10.436: I/SurfaceFlinger(1705): id=170(12) createSurface 0x3d364

What should be the developer payload in android in-app billing v3 api?

人盡茶涼 提交于 2019-11-29 05:30:20
I am implementing in-app billing in my app to unlock premium features. The in-app billing sets up correctly. Everything seems fine except the 'developer payload' thing. The sample app says /* * TODO: verify that the developer payload of the purchase is correct. It will be * the same one that you sent when initiating the purchase. * * WARNING: Locally generating a random string when starting a purchase and * verifying it here might seem like a good approach, but this will fail in the * case where the user purchases an item on one device and then uses your app on * a different device, because on

Android billing exception

此生再无相见时 提交于 2019-11-28 21:13:51
I am testing my billing and I got this exception: java.lang.IllegalStateException: Can't start async operation (launchPurchaseFlow) because another async operation(launchPurchaseFlow) is in progress. at utils.IabHelper.flagStartAsync(IabHelper.java:711) at utils.IabHelper.launchPurchaseFlow(IabHelper.java:316) at utils.IabHelper.launchPurchaseFlow(IabHelper.java:294) at com.problemio.SubscribeIntroActivity$6.onClick(SubscribeIntroActivity.java:117) at android.view.View.performClick(View.java:2532) at android.view.View$PerformClick.run(View.java:9308) at android.os.Handler.handleCallback

Android In App Billing: Can't start launchPurchaseFlow because launchPurchaseFlow is in progress

江枫思渺然 提交于 2019-11-28 21:05:29
I'm implementing In App Billing for the first time and I'm testing my first purchases using the static SKU ids. It worked very well the first time. I called mHelper.launchPurchaseFlow(...) and completed the test purchase. My activity received the onActivityResult callback and I made sure to process it with mHelper.handleActivityResult(...) . Everything was great. @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { // Pass on the activity result to the helper for handling log("onActivityResult"); if (!this.mHelper.handleActivityResult(requestCode,

Token that identify the user

不想你离开。 提交于 2019-11-28 18:54:33
I'm developing an android application and I would like some functionality of the application is not free. I have thought to use in-app Billing Version 3 API, so I have defined an "In-App Product" in the developer console. After reading the documentation, I know that when I start the purchase flow I should pass in a string token that helps the application to uniquely identify the user who made the purchase. But how could I obtain a string token that identify the user? Thanks you can use developer payload to identify user and for the security. there are two way to generate developer payload

Android in-app billing: Can't start async operation because another async operation (is in progress)

我的未来我决定 提交于 2019-11-28 03:01:37
I am using the IabHelper utility classes, as recommended by Google's tutorial, and I'm being hit hard by this error. Apparently IabHelper can not run multiple async operations at the same time. I even managed to hit it by trying to start a purchase while the inventory taking was still in progress. I have already tried to implement onActivityResult in my main class as suggested here , but I don't even get a call to that method before the error hits. Then I found this but I have no idea where to find this flagEndAsync method - it's not in the IabHelper class. Now I'm looking for a way around

What should be the developer payload in android in-app billing v3 api?

拈花ヽ惹草 提交于 2019-11-27 23:04:18
问题 I am implementing in-app billing in my app to unlock premium features. The in-app billing sets up correctly. Everything seems fine except the 'developer payload' thing. The sample app says /* * TODO: verify that the developer payload of the purchase is correct. It will be * the same one that you sent when initiating the purchase. * * WARNING: Locally generating a random string when starting a purchase and * verifying it here might seem like a good approach, but this will fail in the * case

Token that identify the user

眉间皱痕 提交于 2019-11-27 20:28:16
问题 I'm developing an android application and I would like some functionality of the application is not free. I have thought to use in-app Billing Version 3 API, so I have defined an "In-App Product" in the developer console. After reading the documentation, I know that when I start the purchase flow I should pass in a string token that helps the application to uniquely identify the user who made the purchase. But how could I obtain a string token that identify the user? Thanks 回答1: you can use

In App billing not working after update - Google Store

≡放荡痞女 提交于 2019-11-27 19:50:59
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 signature verification FAILED for sku android.test.purchased ". I have checked with my key, package name