Questions tagged [receipt-validation]

For questions concerning the validation of iOS in-app purchase receipts against Apple servers, a recommended means of app billing fraud protection.

212 questions
0
votes
1 answer

Reduce size of OpenSSL binary?

I'm using OpenSSL-for-iPhone to generate a self compiled build of OpenSSL that I can use with the library RMStoreAppReceiptVerifier for receipt validation. Specifically, it builds OpenSSL 1.0.2k. The problem I'm having is that libcrypto.a (45.3MB)…
Ser Pounce
  • 14,196
  • 18
  • 84
  • 169
0
votes
0 answers

How to decode the base64 encoded ios app store receipt in as3 air sdk

how do I decode the base64 encoded ios app store receipt with Air SDK? Found this Base64 class in as3 doc: https://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/utils/Base64Encoder.html But it is not present Air SDK 29, doh! and…
hpeide
  • 1
0
votes
1 answer

Extract PKCS7 Container memory leak during receipt validation

XCode detected memory leaks in one of my function: The func is responsible for extracting PKCS7 container. Here the code of the func: func extractPKCS7Container() throws -> UnsafeMutablePointer { guard let receiptURL =…
Alex
  • 751
  • 1
  • 9
  • 28
0
votes
1 answer

iOS: How to limit the installation of my app to only 2 devices by apple id account (or else)?

I would like to limit the use of my app to 2 devices maximum, but I don't know how to do. I believed that the receipt was unique, but it seems that it is not the case. What I would like to do is store the receipt on the server, and limit the install…
ΩlostA
  • 2,501
  • 5
  • 27
  • 63
0
votes
1 answer

In App Purchase Receipt Data return nil

I have get my In app purchase code set up and i can perform purchase successfully. And when i try to retrieve receipt data with this NSData *dataReceipt = [NSData dataWithContentsOfURL:[[NSBundle mainBundle] appStoreReceiptURL]]; NSString *receipt =…
wes. i
  • 627
  • 9
  • 26
0
votes
1 answer

Lost connectivity before receiving purchase receipt from apple In-app purchase

I have implemented In-app purchase in my app. So what I do is, after user completes payment with app store & the control goes to - (void)paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions then…
Prajyot
  • 99
  • 1
  • 12
0
votes
1 answer

iOS: can receipts be reused to check for purchases?

is it possible to send an iOS receipt to the server and the server checks periodically with that same receipt if (new) purchases are made? Or are only in app purchases returned up to the point the receipt has been sent to the server? For my use case…
swalkner
  • 16,679
  • 31
  • 123
  • 210
0
votes
1 answer

Auto-Renewable Subscription Wrong Time Response Sandbox Mode

I was trying to do local receipt validation and doing testing at present. But from apple receipt response, I was getting wrong time related response so it become difficult for me to test application at present. Here is log information: Here is…
Siddharth
  • 4,142
  • 9
  • 44
  • 90
0
votes
1 answer

When does app receipt get new transaction?

I have an app that has been using the now-deprecated pre-iOS 7 method of implementing IAP by looking at the transactionReceipt contained in the transactions that come to our transaction queue observer. That was working great. The new implementation…
Craig
  • 3,253
  • 5
  • 29
  • 43
0
votes
1 answer

Check subscription status in iOS app Ionic 2

I am currently developing an in-app purchasing in Ionic 2 and each time the app is run I check if a user is subscribed. For Android I use restorePurchases function. For iOS I am trying to use getReceipt() function. What I get is a long Base64…
CannotCode
  • 125
  • 1
  • 2
  • 10
0
votes
1 answer

Generating a non-IAP receipt in sandbox

I'm trying to generate a receipt for validation for an app's purchase. This is not an in-app purchase receipt, rather a receipt that reflects the download itself. My assumptions is that SKReceiptRefreshRequest generates this receipt when running…
0
votes
1 answer

Is it possible to create test receipts programmatically without an UI/app overhead?

We own backend services that react to the receipts generated after making in-app purchases (specifically subscriptions). Right now we are using few pre-generated test receipts for validating changes in our services. But using these pre-generated…
Harish
  • 1,433
  • 9
  • 21
0
votes
1 answer

Different purchases in Apple receipt

I.m testing my app with in-app purchases. For testing i'm using two devices, each logged with the same iTunes account, i've purchased (in sandbox) some products, but when i retrive the receipt and verify it with Apple server, i've noticed that the…
blackstar26
  • 146
  • 1
  • 12
0
votes
2 answers

Receipt validation iOS - The file could not be opened because there is no such file

I'm working on a subscription IAP. I set all purchases up, their details come back well, I can do the purchases in sandbox and get all the messages alright. The problem I have now is checking the receipt. I always get a URL returned alright, but…
Alex Ioja-Yang
  • 1,428
  • 13
  • 28
0
votes
2 answers

in app purchase receipt validation issue

I have an application which supports subscription as well as pay as go features. I have facing issues with receipt validation at server side. If user has not subscribed and tried to download content using pay as you go i am getting 21002…
naresh
  • 627
  • 1
  • 7
  • 28