in-app-purchase

Android In App Purchase Problems

白昼怎懂夜的黑 提交于 2019-12-13 13:24:13
问题 I've implemented In App purchase in my account using static response id android.test.purchased . Now when purchase the item a Toast popups saying "Thank you. Your item will appear shortly." I think so far every thing works perfectly. My problem is Where does this Toast comes from. I couldn't find out it my code. How can I override this Toast? Is it because of the Reserved product ID I used? Will it change once I use my own product Ids? Which overridden function should be used know whether

iPhone - InApp purchase Restore products prompt signin alert twice [closed]

▼魔方 西西 提交于 2019-12-13 12:29:07
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 6 years ago . I am providing Restore Functionality for Non-Consumable Products. When I click on to Restore it prompts the SignIn alert, I use the Existing Apple Id for

Get the Google ID used to download the application

房东的猫 提交于 2019-12-13 11:57:09
问题 How can i find out which google account downloaded the application? This question is related to Get the Google ID used in an in-app billing purchase Thank you! 回答1: I think the best answer can be found here: How to get the Android device's primary e-mail address This might not be exacly what you want, but without asking the user, I think this is the closest you can get. 来源: https://stackoverflow.com/questions/10245250/get-the-google-id-used-to-download-the-application

Using Returned JSON Status in an if statement (Checking IAP Auto Renew Receipt )

浪尽此生 提交于 2019-12-13 07:16:28
问题 Im want to check the current subscription status of an Auto Renew In App purchase. Im getting the receipt data via JSON, im after some advice on how to use/query the returned data if let parseJSON = json { println("Recipt \(parseJSON)") } Returns Recipt { environment = Sandbox; status = 21004; } Whilst I know this wouldn't compile, I want to to do is something along the lines of an if statement like: if parseJSON contains status = 21004 { //Do something } 回答1: You might consider something

Access to Google Play Android Developer API

这一生的挚爱 提交于 2019-12-13 06:18:58
问题 I want to check my subscription in-app purchase from my android app using my own server. I wrote a php script, but I am getting all the time error "This developer account does not own the application". I used the same google account to create an app in the Google Play Developer Console and to create a web application in the Google APIs Console. What can be wrong? 回答1: I had wrong email address set in the setting in the Google Play Developer Console. 来源: https://stackoverflow.com/questions

Get list of purchased products, inApp Purchase iPhone

本秂侑毒 提交于 2019-12-13 06:10:23
问题 I am implementing in app purchases for my iOS application. Apple has rejected my binary for not restoring purchased products. In my application once the user taps the icon of product if item is locked he/she directed to inApp purchase process else the products gets openend. There is no visual Buy button. Now apple is saying to provide the restore button? Can anybody tell me how to handle this? I have tried - (void) checkPurchasedItems { [[SKPaymentQueue defaultQueue]

In-App Purchases: Crash when view disappear

孤街醉人 提交于 2019-12-13 05:26:05
问题 My application has a tabbar that contains 4 view controllers. The third view controller contains a "store in-app purchases". In this controller I use an object that manages in-app purchases (product request, purchase, transaction etc...) that allow me to get and show price description ecc. The problem is: If I change tabs while the request started the app crashes sometimes, but not always. I've to cancel the request in viewDidDisappear? [productsRequest cancel] this code crashes. 回答1: I have

Invalid IAP product identifiers

空扰寡人 提交于 2019-12-13 05:00:07
问题 I understand that, for In-App Purchases, I make a request to the store, and then the app loads the UI, and the user taps "buy" and makes their purchase, and then the app delivers it. This is a question about that first step: making the request. For my game, I'm making an IAP to remove advertisements for $1.00. My confusion lies in the product identifier. I can't use my Bundle ID in this scenario, because it contains hyphens. What do I put? Reverse domain? Any alphanumeric identifier? I tried

Will my app get rejected if the user has to close and open the app to unlock the in app purchase?

社会主义新天地 提交于 2019-12-13 04:55:37
问题 Sorry for all the code I just want to get this right. I have three different in app purchases and this is my code in the GameViewController. I called the functions in my viewDidLoad() function. Does anyone see anything wrong with the code? EDIT: override func viewDidLoad() { super.viewDidLoad() callthis() callthis2() callthis3() } func callthis() { if(SKPaymentQueue.canMakePayments()) { println("IAP is enabled, loading") var productID:NSSet = NSSet(object: "unlockLevelTwo") var request:

How to verify Google In app purchase in libgdx game?

依然范特西╮ 提交于 2019-12-13 04:31:40
问题 I have Followed Google developers guide to implement In app purchases in my Libgdx game. (I have already implemented Google play game services so I do have an idea how Core code and Android specific code in LIBGdx game sync. ) But I am confused that once I bought an item by clicking on a button, how can I update the game state. For example if I buy extra life in game, how can I update In main code that if (gdx.geType == ApplicationType.Android ) { // successfully bought a life // add +1 life