in-app-purchase

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

Workaround to lack of promotional codes for in-app purchases

♀尐吖头ヾ 提交于 2020-01-20 21:56:26
问题 Apple doesn't offer promotional codes for in-app purchases. What's the best way to let users try the features or content unlocked by in-app purchases for free, while complying with Apple's Developer Guidelines? The idea is to allow a special set of users (reviewers, key fans, etc.) to access the content or features offered as in-app purchases without paying. Examples of apps that worked around this limitation would be much appreciated. 回答1: You could submit a version of your application that

in-app purchase validation - validate purchase as per user

五迷三道 提交于 2020-01-17 12:24:04
问题 I had successfully implemented in-app purchase in my application. My query is : There is One apple id xyz@apple.com through which i am logged in to itunes in ipad or device. now in my application there are several users . They will purchase products through in-app purchase. my product is non-consumable. Now, for example there are two user A and B (they logged in to my application so they are application users). case : user A purchase product using in-app purchase with apple id xyz@apple.com

Call back at iTunes login prompt appearance

▼魔方 西西 提交于 2020-01-17 02:19:49
问题 When handling inApp purchase (using Parse.com) in an iOS app, the user clicks BUY and waits for the iTunes login (or enter password) prompt to come up. During the waiting time, I display and activityView to ask the user to wait. Then when the prompt shows up, I need to clean this activityView. What is the call back function I need to put the code into? Is there something like loginPromptDidAppear? From which I could clean off the activityView. 回答1: As the prompt is issued by iOS, not your app

How to do restore purchase and get whether the Product is Purchase or not?

萝らか妹 提交于 2020-01-16 18:40:09
问题 I have implemented the in-App Billing in my android App. The code i use it as below : oncreate method: startService(new Intent(this, BillingService.class)); System.out.println(" - - - - CHECK FOR THE PURCHASE PRODUCT - - - - "); BillingHelper.setCompletedHandler(mTransactionHandler); Handler is: public Handler mTransactionHandler = new Handler(){ public void handleMessage(android.os.Message msg) { System.out.println("SEE FOR THE PRODUCTS PURCHASE OR NOT"); Log.i(TAG, "Transaction complete");

Does refreshReceipt ask for AppStore credentials?

孤街浪徒 提交于 2020-01-16 08:02:10
问题 I have been testing In App Purchases for iOS in a sample app. I need to figure out if I can call refreshReceipt API immediately at the launch to check user's eligibility for some trial period subscriptions etc. I have called refreshReceipt in AppDelegate's application:didFinishLaunching:options method but it asks me for AppStore credentials, basically the Sandbox user's password. I was not expecting this behaviour as read from Apple docs. Is it something that is happening because of the

How to upgrade Google Android Market Application

▼魔方 西西 提交于 2020-01-16 01:16:08
问题 The new Android in-app billing (http://developer.android.com/guide/market/billing/billing_testing.html) page says: "To test in-app billing in an application you must install the application on an Android-powered device. You cannot use the Android emulator to test in-app billing. The device you use for testing must run a standard version of the Android 1.6 or later platform (API level 4 or higher), and have the most current version of the Android Market application installed. If a device is

Google wallet error: The frame requesting access has a protocol of “https”, the frame being accessed has a protocol of “http”

依然范特西╮ 提交于 2020-01-15 11:22:50
问题 I'm trying to get up and running with google wallet and am following the "get started" tutorial. When I put in the call for the javascript library <script src="https://sandbox.google.com/checkout/inapp/lib/buy.js"></script> I get the following error in my console: Blocked a frame with origin "https://sandbox.google.com" from accessing a frame with origin "http://localhost:12098". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http".

Can I fetch the prices of in-app purchases from my server?

*爱你&永不变心* 提交于 2020-01-15 11:18:29
问题 Currently, my iOS app has to ask my server for the in-app purchase products available, and then afterwards, for the products, the app has to ask Apple for their prices. The added delay for this is probably not much, but I'd like to make it faster. Can I not use my server to fetch those prices instead of the client? That is, is there an HTTP-based API that I can use from the server to get the prices for me rather than the client? That way I can cache the results for different users and reduce

Chrome Packaged App TOKEN_MISSING_ERROR

天涯浪子 提交于 2020-01-15 11:18:26
问题 I have a Chrome packaged application that I am testing to add in-app purchases. When running the application from my own account querying getSkuDetails works fine. However, when running it from another test account, it returns TOKEN_MISSING_ERROR . I cannot find any google developer documentation to help me progress this. Has anyone come across this? 回答1: I discovered that this problem is related to the Chrome browser not being logged in. I ran into this same issue on my test machine's Chrome