in-app-purchase

Protection from Freedom

不羁的心 提交于 2019-12-19 08:13:23
问题 Just tried the Freedom app on our application and I could bought every in app purchase item with it. At least when running the Play Store 3.x. If I upgraded the play store to 4.x than the Freedom hack stopped working. Anyhow, is there a way to protect against it? 回答1: Check the orderId returned. Correct orderIDs are of the form: [merchant ID].[actual order ID] Find your merchant ID in your Wallet account (last line on order page) and check in your app if it's the same. As the Freedom hack

In app purchase displays message “you already own this item.” in android

烂漫一生 提交于 2019-12-19 07:43:43
问题 I am trying to implement in-app. In android, in-app is working perfectly.But, when I remove the app from device and reinstall it, then after if I try to purchase, it displays this message (product is Managed and in-app API Version 2) and in log, I have an error RESULT_DEVELOPER_ERROR , then I googled and I found the Version 3 has more number of response codes like BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED So if product is already purchased, the response must be like BILLING_RESPONSE_RESULT

how to add openssl to a swift project

我的未来我决定 提交于 2019-12-19 07:35:13
问题 I am learning how to add in-app purchase receipt validation to my iOS/OSX projects. There is a nice overview here and the WWDC14 has good videos on this topic. Plenty of sample code, but everyone skips one step. How to import the openSSL header. The swift compiler complains that there is no such module. import Foundation import StoreKit import openssl //no such module ??? I am already stuck before writing one line of code. Where is the openssl framework hiding? 回答1: There is no OpenSSL module

SKProductsRequestDelegate failure

試著忘記壹切 提交于 2019-12-19 05:54:26
问题 The SKProductsRequestDelegate has one single method: - (void)productsRequest:(SKProductsRequest *)request didReceiveResponse:(SKProductsResponse *)response Usually, I find these sorts of delegates will have several methods for handling multiple cases, rather than just success. For example: -(void) connection:(NSURLConnection *)connection didFailWithError:(NSError *) error How can I check if this code fails for some reason, eg. the user is offline? SKProductsRequest *productsRequest = [

In App Purchases Sandbox Testing - Old sandbox users keep prompting

主宰稳场 提交于 2019-12-19 05:54:08
问题 I am working on an iphone game with in app purchases. I'm trying to retrieve my sandbox user's previous purchases by calling restoreCompletedTransactions, but no callback is being fired. I read online from some other people who have had similar issues to delete the sandbox user and try creating a new one. I tried deleting and creating new test users multiple times over the course of a month or so (some users report that it's apple's sandbox servers) but I have had zero luck. Here's the

Is restore button necessary for Auto-renewable subscriptions?

旧街凉风 提交于 2019-12-19 04:45:28
问题 Exactly the same question as this one: I understand that restore button is necessary so when user upgrades the phone, the user is able to get back the contents/services subscribed earlier. In our application we require users to login. Once they login, they have to subscribe to use the services of the application. From user's credentials we are keeping track that which users are still subscribed to our application. So when user changes the phone and logs in with his/her credentials there is no

Android check if in app purchase was bought before

寵の児 提交于 2019-12-19 04:01:06
问题 I would like to make an in app purchase in my android app. I use for this the google sample: http://developer.android.com/training/in-app-billing/preparing-iab-app.html#GetSample I implemented this in my android studio project. In the developer console I set the in app purchase and a gmail address as test account. on my device (not emulator), I logged in with this test account. I start my app and klick on "Buy Premium" and can finish this process. now I would like to show a Button (Text

StoreKit: Catch failed restore?

时间秒杀一切 提交于 2019-12-18 20:05:15
问题 I'm implementing In-App purchase feature with Restore button. I have a brand new test user set up, without any payments made. When I hit the restore button, and log in with the new test user, I cannot catch any delegated methods that tell me that the restoring transaction has failed (since there is nothing to restore). The only method that get invoked is -(void)paymentQueueRestoreCompletedTransactionsFinished:(SKPaymentQueue*)queue , but this method gets called in the case when restoring was

SKErrorDomain Code=0 “Cannot connect to iTunes Store”

拟墨画扇 提交于 2019-12-18 18:53:40
问题 My application has just gone live on the iTunes Store, and after that, I am unable to start any purchase. I have tested the application and its working fine in Sandbox envoirnemnt. But Live application gives the error Error Domain=SKErrorDomain Code=0 “Cannot connect to iTunes Store enum value = SKErrorUnknown I have tried signing out any test accounts from Store login, but it just doesn't ask for any account login and error keeps on coming. Any clue! 回答1: This can happen because of the two

Differentiating between initial buy and free “re-buy” in StoreKit/In-App Purchase

你说的曾经没有我的故事 提交于 2019-12-18 17:36:04
问题 From the StoreKit guide: If the user attempts to purchase a nonconsumable product or a renewable subscription they have already purchased, your application receives a regular transaction for that item, not a restore transaction. However, the user is not charged again for that product. Your application should treat these transactions identically to those of the original transaction. This presents a huge problem in an app I am working on. We have licensed a large body of content from a