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
2 answers

Inconsistencies with documentation in response from Apple's verifyReceipt endpoint

I'm in the process of setting up receipt validation for Apple's auto-renewable subscriptions on our server and noticed some inconsistencies with the official documentation. When verifying a sandbox receipt with the sandbox verifyReceipt endpoint,…
0
votes
1 answer

SwiftyStoreKit.verifyReceipt Keep asking for Apple ID (In App Purchase)

I have been using SwiftyStoreKit.verifyReceipt to make sure that the user is still subscribed to the auto renewable membership. I run this code at viewWillAppear, it works well, but the problem is that it keep asking for the Apple ID and password…
0
votes
1 answer

Mac App Store Receipt - Hash not matching. Why?

I'm trying to create a Mac application, and be gentle on me as this is my first attempt! Essentially transferring what I've done on iOS to the Mac and it's almost ready to go with one part remaining - App Store verification to prevent people from…
Symanski
  • 337
  • 3
  • 11
0
votes
0 answers

Does SKPaymentQueue's restoreCompletedTransactions() update the apps receipt?

So SKPaymentQueue's restoreCompletedTransactions() retrieves transactions executed on another device onto the current device, therefore the respective product becomes available over multiple devices. However, seeing that it returns a transaction(s),…
0
votes
1 answer

Need to understand iOS InApp purchase receipt

I'm digging into iOS in-app purchase validation (server side) and I got pretty much confused about the receipt fields returned by apple's validation server. The documentation available here is not really clear (at least for me) So here is a real…
R.E.B Hernandez
  • 147
  • 2
  • 9
0
votes
1 answer

Does refreshReceipt ask for AppStore credentials?

I have been testing In App Purchases for iOS in a sample app. I need to figure out if I can call refreshReceipt API immediately at the launch to check user's eligibility for some trial period subscriptions etc. I have called refreshReceipt in…
mickeymoon
  • 4,820
  • 5
  • 31
  • 56
0
votes
1 answer

iOS InApp receipt validation and unlock the app

I'm validating receipts with the App Store for auto renewing subscription using my own server. And returns status, receipt, latest_receipt, latest_receipt_info, latest_expired_receipt_info, pending_renewal_info and is-retryable in response as…
isuru
  • 3,385
  • 4
  • 27
  • 62
0
votes
1 answer

Receipt-Validation code for iOS app, not working

I have implemented Receipt-Validation code for the first time in an iOS app, following the Raywenderlich tutorial Even though it was working fine during the test, using Sandbox. In reality, it does not work as expected. When the app is downloaded,…
Michel
  • 10,303
  • 17
  • 82
  • 179
0
votes
1 answer

Use of undeclared type 'PKCS7' (Receipt-Validation/OpenSSL)

To set up Receipt-Validation in my iOS app, I am now following this tutorial: https://www.raywenderlich.com/9257-in-app-purchases-receipt-validation-tutorial and reading at this point: Loading the Receipt. While reading and attempting to understand…
Michel
  • 10,303
  • 17
  • 82
  • 179
0
votes
1 answer

In App Purchase (validation) Receipt receiptStatus is nil

I am trying to implement In App Purchase Receipt validation in an iOS app. I followed this tutorial and use the sample project provided as a base to work on my own app. Here is an issue I am facing at this point. In a function called…
Michel
  • 10,303
  • 17
  • 82
  • 179
0
votes
0 answers

TestFlight In-App Purchase returns very old receipt with productID that no longer exists

I am working on auto-renewable subscriptions in my app. When I purchase a subscription I get the receipt from Apple and send it to my server. My server then sends it to the Apple receipt validation endpoint, and my server retrieves the required…
mufumade
  • 400
  • 4
  • 16
0
votes
1 answer

Can't verify IAP receipt with service account, "The current user has insufficient permissions to perform the requested operation"

Created service account within Google Cloud Console ( https://console.cloud.google.com) The service account has "owner" role. Went to https://play.google.com/apps/publish and added this account ( using the email within the json file ) with…
0
votes
1 answer

Receipt Data Validation Info Not Coming

I have some issues with receipt validation. I want to purchased subscription expires date on show some places but do not get receipt data info. do { guard let receipt = Bundle.main.getReceiptData()?.base64EncodedString() else { return } …
Bertuğ
  • 9
  • 4
0
votes
0 answers

iOS In app purchase: server side receipt validation with multiple purchases of consumable products

Regarding the receipt of IAP consumable products, in the Apple documentation I read: "Information about consumable products is added to the receipt when they’re paid for and remains in the receipt until you finish the transaction. After you finish…
Andrea Gorrieri
  • 1,704
  • 2
  • 22
  • 36
0
votes
1 answer

In app purchase live url show sandbox popup and allow subscription for sandbox user

I have added in-app purchase in my application it is working well in sandbox environment but when I change it's URL from sandbox to live and run the application it is behaving unexpectedly. Here is my code: Below are the method in which we are…
Chandni
  • 692
  • 1
  • 10
  • 25