in-app-billing

Why Android BillingClient v2 slow credit card test never cancels?

ぐ巨炮叔叔 提交于 2020-07-03 02:15:22
问题 I am implementing the new BillingClient library (v2.1.0) for a non-consumable in-app purchase. I am testing pending transactions with a test user. It works fine with "Credit card approves after a few minutes", but with "Slow credit card, rejects after a few minutes" the purchase state is always pending (Waited for hours after it shows as canceled on Play Console). In order to retrieve purchae status, I am calling to mBillingClient.queryPurchases(BillingClient.SkuType.INAPP) as states in the

“in-app billing version 3 NOT supported” with up to date Play Store

橙三吉。 提交于 2020-06-27 06:44:06
问题 I'm integrating in-app billing to my Xamarin.Android application. I tested the API using Google test products (android.test.purchased and others) and it worked just fine. After doing some testing I started receiving the following error on the OnInAppBillingError event. ERROR: In-app billing version 3 NOT supported for com.example.appname com.example.appname is the bundle id of my app. I found this error on the internet (this is the closest match) and the solution is to update Google Play

How to detect canceled or refunded order for Google in-app billing?

China☆狼群 提交于 2020-06-24 14:50:28
问题 I have red a lot of posts and Google documents, but am still not clear how to tell an in-app purchase has been refunded. I have red carefully In-App Billing v3 - Don't detect refund and Does Google Play In-App Billing Version 3 support refunds?. I believe that I took the following notes from an official Google document a while ago by copy & paste: purchaseState: The purchase state of the order. Possible values are 0 (purchased), 1 (canceled), or 2 (refunded). Now, the official document has

BillingClient: getSkuDetails() failed. Response code: 6

荒凉一梦 提交于 2020-05-30 07:48:51
问题 I've integrated Google inApp billing in my android App. It was working fine, But now I noticed that on one device its always returning BILLING_RESPONSE_RESULT_ERROR response. In Logcat it shows following error. BillingClient: getSkuDetails() failed. Response code: 6 I couldn't find any help regarding this issue, Can someone help me what could be the possible problems and solution. Thanks. 回答1: This generally happens when you have signed out from Google account in your device. All you need to

Android in-app purchase or Third party payment gateway

ⅰ亾dé卋堺 提交于 2020-04-11 07:30:05
问题 We are going to build a mobile app for iOS and Android (might build a web app later) where users can upload videos and their friends and followers can watch them. The videos can be either free or also be tagged with a price. If I tag a video with $1 when uploading it, my friends and followers will have to first pay $1 to watch and after paying that $1 they can watch it any time after that. My client wants to use Authorize.net to do the payments. In iOS there are restrictions like we must use

Android in-app purchase or Third party payment gateway

非 Y 不嫁゛ 提交于 2020-04-11 07:29:47
问题 We are going to build a mobile app for iOS and Android (might build a web app later) where users can upload videos and their friends and followers can watch them. The videos can be either free or also be tagged with a price. If I tag a video with $1 when uploading it, my friends and followers will have to first pay $1 to watch and after paying that $1 they can watch it any time after that. My client wants to use Authorize.net to do the payments. In iOS there are restrictions like we must use

Inapp billing: Error response: 7:Item Already Owned Issue With Test Transactions

浪尽此生 提交于 2020-02-23 05:38:17
问题 First time implementing in-app billing. i was able to complete first transaction, but second time while purchasing same item i am getting "Error response: 7:Item Already Owned" on onIabPurchaseFinished Method, how to make it re-purchase-able? any help would be appreciated. screenshot of code structure is also attached. Onclick purchase i am calling following method: initilizeInAppPurchasePakages(); public void initilizeInAppPurchasePakages() { String base64EncodedPublicKey=getString(R.string

mservice NPE on Android 5.0 devices

与世无争的帅哥 提交于 2020-01-23 18:21:10
问题 I'm having an issue similar to the question found here: Google In-App billing, IllegalArgumentException: Service Intent must be explicit, after upgrading to Android L Dev Preview. I have tried the solution in the suggested answer:https://stackoverflow.com/a/26318757/1489990 but I am getting an issue specifically on my nexus 9 with android 5.0.1 (and I'm assuming this also applies to all devices with android 5.0). The issue is that with this code: connection = new ServiceConnection() {

get purchased item detail at start of app with IabHelper android

青春壹個敷衍的年華 提交于 2020-01-23 01:41:06
问题 I have implemented In-App in my application in that there is list of images with grid when user select image if user has already purchased that item it should never called again otherwise it should called method of mHelper.launchPurchaseFlow(this, SKU_PREMIUM, RC_REQUEST, mPurchaseFinishedListener, ""); i have successfully integrate in-app with my app and also item is being purchased but i want to know at start up if that item is purchased or not if not purchased than above code should be

Android in-app billing: Error consuming sku android.test.purchased (response: 5:Developer Error)

一个人想着一个人 提交于 2020-01-22 14:39:28
问题 I have sent a test purchase intent via standard helper: String SKU = "android.test.purchased"; mHelper.launchPurchaseFlow(this, SKU, 10001, mPurchaseFinishedListener); The purchase was made successfully, but when I try to consume the purchased item using: mHelper.consumeAsync(inv.getPurchase(SKU), mConsumeFinishedListener); I get the following error: Error while consuming: IabResult: Error consuming sku android.test.purchased (response: 5:Developer Error) I've created a Play Store signed apk