in-app-purchase

SKMutablePayment property: applicationUsername

主宰稳场 提交于 2019-12-17 17:59:29
问题 I am implementing In App Purchases in my app and I am using Non-Consumable Products. I have User Login in my application and to prevent Irregular Activity apple sugests to use applicationUsername property, so I can send along with the payment the user's username. Everything works fine, i can set payment.applicationUsername property and I can retrieve it back after the purchase is finished in SKPaymentTransactionStatePurchased state. The problem is that, when i try to Restore my transactions

Convert existing iOS paid app to freemium model with in-app purchase

て烟熏妆下的殇ゞ 提交于 2019-12-17 17:25:35
问题 I currently have a paid app in the store. Apple have not allowed a 'lite' version to be submitted as well, so I have no choice but to update the current paid version to a freemium (with in app purchase) model. I have the problem of not loosing functionality for v1 users that have purchased the app the first time round. Is there any way to determine if an application have been updated from a previously installed version so I can unlock the paid parts of the app? Two similar questions (from a

in-app purchase in Swift with a single product

点点圈 提交于 2019-12-17 17:25:17
问题 Is there a simple way to implement a in-app purchase in swift for a single product? I want a button that triggers the in-app purchase like a [ad-removal] or [unlock-premium-content] I can't understand the full logic of it. I'm trying to follow and translate this tutorial from [Techotopia] http://www.techotopia.com/index.php/An_iOS_7_In-App_Purchase_Tutorial But It's my first time with the StoreKit Framework, and also with Swift. I just want to know the logic of the in-app purchase transaction

“Cannot connect to iTunes Store” in-app purchases

大城市里の小女人 提交于 2019-12-17 15:44:33
问题 I am having problems testing my in-app purchases. I get back valid product identifiers, but upon purchase I receive the dreaded "Cannot connect to iTunes Store". Interesting thing is that restore purchases seems to work - iTunes login pops up. I have: - Checked that my in-app purchases are cleared for sale - Checked, rechecked my source code to be in sync with Apple's documentation - Added appropiate test users - app id does not contain wildcard - in-app purchases are linked to the app (app

“The item you were attempting to purchase could not be found” Android in-app billing

痴心易碎 提交于 2019-12-17 15:43:17
问题 I am receiving this error while testing my app. The app is signed and uploaded to the alpha testing portion of the developer console. The in-app item has the status "Active". I have entered an account other than my developer account in "testing access". I am using a device with the primary account in the "testing access" and not the developer account. I have double checked the spelling of my SKU. The exact same .apk was uploaded to Developer Console and installed on the test device. I have

Android Market In-App-Purchase: How to get the currency a user will pay in?

一笑奈何 提交于 2019-12-17 15:39:38
问题 I have an Android app using In-App-Purchase that caters to an international audience, so I expect payments in different currencies. Of course I would like to show the items for purchase with the user's local currency, but I don't really know how. Using the region or language of a user seems like a bad indicator, as the currency seems to depend on the region of the Market account the user is using and not on the device settings. How can I find out which currency a user will pay in? Thanks. 回答1

Unable to log in with sandbox test users on device

无人久伴 提交于 2019-12-17 15:39:28
问题 Trying to do some In App Purchase testing, so I created a sandbox tester on itunesconnect... but when I attempt to log in as that user on my device I get an error: Itunes Account creation not allowed The Apple ID cannot be used with the iTunes store at this time. Please try again later. If I put in the wrong password for the account I get an account rejection so its not a password typo.. this is happening for every test account I create... anyone have a clue what the hell is going on.. I

Android Market In-App-Purchase: How to get the currency a user will pay in?

本小妞迷上赌 提交于 2019-12-17 15:39:22
问题 I have an Android app using In-App-Purchase that caters to an international audience, so I expect payments in different currencies. Of course I would like to show the items for purchase with the user's local currency, but I don't really know how. Using the region or language of a user seems like a bad indicator, as the currency seems to depend on the region of the Market account the user is using and not on the device settings. How can I find out which currency a user will pay in? Thanks. 回答1

iOS7 - receipts not validating at sandbox - error 21002 (java.lang.IllegalArgumentException)

半城伤御伤魂 提交于 2019-12-17 10:47:30
问题 I'm converting an app from iOS6 to iOS7. Before I used the deprecated transactionReceipt method so now I'm trying the recommended methods to retrieve the receipt, and then encode in base 64: NSData *working = [NSData dataWithContentsOfURL:[[NSBundle mainBundle] appStoreReceiptURL]]; // Tried 64 or 76 chars/line and LF or CR line endings NSString *receipt = [working base64EncodedStringWithOptions:kNilOptions]; The above is the only change in the code. Below is how I validate it, no changes:

How to verify purchase for android app in server side (google play in app billing v3)

别说谁变了你拦得住时间么 提交于 2019-12-17 08:00:03
问题 I have a simple app (needs user login with account). I provide some premium features for paid users, like more news content. I need to record if the user has bought this item in my server database. When I provide data content to user's device, I can then check the user's status, and provide different content for paid user. I checked the official Trivialdrive sample provided by Google, it does not provide any sample code for server-side verification, here are my questions. I found the sample