in-app-billing

In-app Billing - Item requested not available for purchase

喜你入骨 提交于 2019-11-29 02:47:55
问题 I am working on learning in-app billing but I am having a problem with the google's in-app billing example, the Dungeon one. I have already set up the application, added my public key, and changed the API_VERSION to 1 in the makeRequestBundle(). I have already exported and signed the application and uploaded it onto Google Play and saved it as a draft with a few pictures and activated the apk. I also added both the sword_001 and potion_001 as published in-app purchases! Next I installed the

Android In-App billing cancel payment

筅森魡賤 提交于 2019-11-29 02:44:11
When someone buys an in-app product in an Android app and the owner cancels the payment in Google Checkout, so he gets refunded - does the user still keep the item? (managed type of in-app product). I know that a refund is not possible but I would like to cancel orders from users that already donated money, so they can have the in-app product for free. It's up to you to manage refunded items. You have more infos here : In-app billing does not allow users to send a refund request to Android Market. Refunds for in-app purchases must be directed to you (the application developer). You can then

Donate via in-app billing

给你一囗甜甜゛ 提交于 2019-11-29 02:28:25
问题 Is it possible to donate money via in-app billing? If not, how can we implement donation from inside an Android app? Please share a few hints. Thanks 回答1: There isn't really a mechanism for doing donations in in-app billing. Anything you sell needs to be sold as virtual goods - fixed products with fixed prices. It is possible to sell "unmanaged" items which a user could buy over and over again but it'd be really in-convenient for your users. What you might want to look into is the PayPal in

Android In-App Billing : Security.java says “Signature Verification Failed”

你。 提交于 2019-11-29 01:31:51
I have implemented a test app with Android's In-App Billing. I have filled in my Public Key in the Security.java file. Everything works, but when I submit the payment, the app crashes. I receive an error in LogCat that says "Signature Verification Failed", which corresponds to this bit of code: if (!sig.verify(Base64.decode(signature))) { Log.e(TAG, "Signature verification failed."); return false; } If I change that bit to return true instead of return false, then everything works properly - I can submit payment and safely return to the app - but I am assuming that something else is wrong,

Handling In-App Billing Refunds in v3

匆匆过客 提交于 2019-11-29 00:56:55
问题 I am trying to implement in-app billing into my application, I have the buying part working right but how do I take care of issuing a refund? Under the Testing In-App Billing section it says that you have to watch for IN_APP_NOTIFY but when you click about that it takes you to v2 of the api where you have to register a broadcast receiver. In v3 however it gives no information on what to do or if even IN_APP_NOTIFY is still used the same or supported. The sample app does not handle refunds

IabResult: Billing service unavailable on device. (response: 3:Billing Unavailable)

对着背影说爱祢 提交于 2019-11-28 22:55:07
I'm trying to use In-App billing: mIabHelper = new IabHelper(this, BILLING_KEY); mIabHelper.startSetup(new IabHelper.OnIabSetupFinishedListener() { @Override public void onIabSetupFinished(IabResult result) { if (!result.isSuccess()) { Log.d(TAG, "Problem setting up In-app Billing: " + result); } } }); And getting the error: Problem setting up In-app Billing: IabResult: Billing service unavailable on device. (response: 3:Billing Unavailable) Why? Tried to clear cache of the Play Store, didn't work for me. sokie Well we can't help you without having much information.So instead i'll try to do a

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,

Android inventory.getSkuDetails() returning null

早过忘川 提交于 2019-11-28 20:08:45
问题 Hi i'm trying to add in app purchases to my app i have set up my in app purchases on the developer console which are set to active i have then queried them which yesterday was working perfectly i retrieved all the details but today its coming back as null. the only thing that has changed is that i had to uninstall the app and re-run it. I have checked my skus both in the app and on the developer console which match exactly when i run IabHelper start setup i get a result of ok. And then i call

In-App Billing v3 - Don't detect refund

╄→гoц情女王★ 提交于 2019-11-28 19:12:41
I've followed the training about "In-App Billing v3" of Google. I get to do a buy of a item but I've a problem. https://developer.android.com/training/in-app-billing/index.html I've canceled and refunded the buy but the app detect the buy as true. I can't continue testing my app because always I detect as purchased the item. The only error that I've found in logCat is the next: [3687] InAppBillingService.logResponseBundle: Bundle does not contain a response code Appears after launching mHelper.queryInventoryAsync(mGotInventoryListener). Any idea? p.s. - this suggests it just takes time for the

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