in-app-purchase

restoreCompletedTransactionsFailedWithError: Error Code 0 (SKErrorUnknown) on Cancel

随声附和 提交于 2020-01-02 10:04:43
问题 So basically, I want to display an alert when the restoring of completed transactions fails for some network/iTunes-specific reason, but not when the user taps 'Cancel' on the Apple ID/Password prompt. In my implementation of: - (void)paymentQueue:(SKPaymentQueue *)queue restoreCompletedTransactionsFailedWithError:(NSError *)error ...I am testing error.code against SKErrorPaymentCancelled (perhaps I should also test against SKErrorPaymentNotAllowed , but that's not relevant now). Still, the

InApp purchase on iOS 5 vs iOS 6

自闭症网瘾萝莉.ら 提交于 2020-01-02 10:04:23
问题 I've been testing the new version of my app, which will include an in-app purchase in the next update, for one month. Everything worked fine both on iOS 6 and 5, but recently I'm starting to get an empty SKProduct s array back from the requests I make from iOS 5. The strange thing is that, by executing the same application on iOS 6, I get the correct products array with all the elements I've set up in iTunes connect. Anyone having the same problem? What can it be? 回答1: You used Jail Break

In app purchase receipt verification in iOS8

▼魔方 西西 提交于 2020-01-02 09:24:12
问题 We are following the raywenderlinch tutorial from http://www.raywenderlich.com/23266/in-app-purchases-in-ios-6-tutorial-consumables-and-receipt-validation But there are some error which I am getting when import verificationController classes in our project. Right now, I am using iOS8. Error is: Implicit declaration of function 'checkReciptSecurity' is invalid in C99 I have also search for sample code of Verification class on apple developer site ,Their page is not found. Please give me your

How-to check the UID hash of an Apple AppReceipt server side in PHP?

安稳与你 提交于 2020-01-02 08:54:49
问题 I'm asking this question in order to share a solution code. Context: Apple introduced the AppReceipt in iOS 7. It is also present for OS X IAP. This receipt is a PKCS#7 container (asn.1) with a payload which is also asn.1 structured. Documentation from Apple instructs how to control the validity of the receipt on-device and to parse it to check that is has been issued for the current device. There are also instructions to validate the receipt through an application server by contacting Apple

What permissions are required for validating Google Store In-App Purchases?

余生颓废 提交于 2020-01-02 08:19:10
问题 I am trying to validate user purchase with the token received from the client (internal release). For that I am using Python script with Google Python API Client (https://github.com/googleapis/google-api-python-client). import httplib2 from oauth2client.service_account import ServiceAccountCredentials token = "token received from the client" http = httplib2.Http(timeout=self.http_timeout) credentials = ServiceAccountCredentials.from_json_keyfile_name( "./service_account.json", "https://www

Updated app with new explicit app id, in-app purchase. SKProductsRequest returns empty list of products

不羁的心 提交于 2020-01-02 07:04:51
问题 Background: The current for-sale version of my app uses a wildcard app ID, and the bundle ID is simple and doesn't conform to the com.companyname.appname convention (it's just 'appname'). The App ID it uses is simply of the form 'bundleseed.*', resulting in, I believe, 'bundleseed.appname' when signed with the provisioning profile. (Why? Because this app has been around since the early 2.x days before Apple recommended explicit App IDs, and before XCode introduced the com.companyname

Updated app with new explicit app id, in-app purchase. SKProductsRequest returns empty list of products

社会主义新天地 提交于 2020-01-02 07:03:12
问题 Background: The current for-sale version of my app uses a wildcard app ID, and the bundle ID is simple and doesn't conform to the com.companyname.appname convention (it's just 'appname'). The App ID it uses is simply of the form 'bundleseed.*', resulting in, I believe, 'bundleseed.appname' when signed with the provisioning profile. (Why? Because this app has been around since the early 2.x days before Apple recommended explicit App IDs, and before XCode introduced the com.companyname

Adding a in-app purchase while “Waiting For Upload” [closed]

妖精的绣舞 提交于 2020-01-02 06:54:19
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm developing my first app which contains an in-app purchase. The app is tested and working fine. My in-app purchase is "Ready To Submit" in iTunes Connect and my app status is "Waiting For Upload". I have not yet submitted a binary for this app. When I select the first (and only) version of my app in iTunes

Adding a in-app purchase while “Waiting For Upload” [closed]

蹲街弑〆低调 提交于 2020-01-02 06:54:13
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm developing my first app which contains an in-app purchase. The app is tested and working fine. My in-app purchase is "Ready To Submit" in iTunes Connect and my app status is "Waiting For Upload". I have not yet submitted a binary for this app. When I select the first (and only) version of my app in iTunes

Android: In App purchase Query does not return any products(skuDetails)

微笑、不失礼 提交于 2020-01-02 06:28:14
问题 I am working on my first android app. I really learned a lot on stack overflow. But I with my current problem I did not find a solution yet. I tried to implement "in app purchase". I did the following things: 1) In the developer console I uploaded a signed apk in alpha and beta test. I also added a test user to the account and for testing I am using that account. Additionally I added some "In app products(managed)" with the status active. 2) Like described on http://developer.android.com