Local Receipt Validation for iOS in Swift From Start to Finish

Local Receipt Validation for iOS in Swift From Start to Finish

Local receipt validation in Swift doesn’t seem to be widely written about. I’ve been able to find snippets of code scattered across the Internet, but nothing that brought everything together in one spot so that I could wrap my head around the whole process. I’ve been working on some code for a while, and this […]

Finalizing Receipt Validation in Swift – Computing a GUID Hash

The aim of this guide is to help you finalize the receipt validation process by computing the GUID hash for your app, and comparing it to the hash that’s stored within your receipt itself. This is a continuation of my receipt validation series. I’m assuming that… You’ve prepared to test receipt validation by setting up […]

Receipt Validation – Parse and Decode a Receipt with Swift

The aim of this guide is to help you parse a receipt and decode it so that you have readable pieces of metadata to inspect and finalize all of the receipt validation steps. This is a continuation of my receipt validation series. I’m assuming that… You’ve prepared to test receipt validation by setting up your […]

Receipt Validation – Verifying a Receipt Signature in Swift

You’ve prepared to test receipt validation by setting up your app in iTunes Connect. You’ve brought in a cryptography library like OpenSSL to be able to work with the PKCS #7 container that acts as the “envelope” for the receipt. Perhaps you’ve even done it the “easy way” with CocoaPods. You’ve located and loaded the […]

Extracting a PKCS7 Container for Receipt Validation with Swift

Updated on July 15, 2017 – Swift 3 So you’ve prepared to test receipt validation by setting up your app in iTunes Connect. You’ve brought in a cryptography library like OpenSSL to be able to work with the PKCS #7 container that acts as the “envelope” for the receipt. Perhaps you’ve even done it the […]

Loading a Receipt for Validation with Swift

Updated on July 15, 2017 – Swift 3 I’m working through a progression of entries on the process of validating receipts with OpenSSL for iOS in Swift. Just want the code? Here you go! Resources Swifty Local Receipt Validator To-date, I’ve explained how to get OpenSSL into your project (the easy way), and I’ve walked […]

Preparing to Test Receipt Validation for iOS

Updated on July 15, 2017 – Swift 3 After having to piece together each step along the path of preparing to test receipt validation for iOS apps, I’ve decided to combine everything into the following guide. Whether you’re working to implement receipt validation for a new iOS app, or for an existing one, this walk-through […]