Code
8
SDK error · code 8
What it means
invalidReceiptError (code 8) means the backend said the receipt or purchase token is not valid, usually as code 7103: the transaction does not verify, belongs to another bundle ID or package name, or is a local Xcode test receipt. The SDK then finishes the transaction for good. Check the app's bundle ID or package name and the store credentials on the server.
Code
8
iOS (Swift)
ErrorCode.invalid
Android (Kotlin)
PurchasesErrorCode.Invalid
Causes
| Backend code | Meaning |
|---|---|
| 7103 | Invalid receipt token. |
| 7712 | The purchased product is missing in the Apple receipt (iOS mapping). |
Fix
Compare the app's bundle_id or package_name on the backend with the build you test. A mismatch makes every receipt invalid.
For StoreKit testing in Xcode, save the public certificate from your .storekit file and store it as the app's xcode_certificate credential. See test purchases without real money.
The 7103 message names the cause, for example a bundle ID mismatch or a malformed token. Read it in the SDK's underlying error or the server log.
Run the credential check on the app page. A wrong App Store key or Google service account is a setup problem on the server, not a bad receipt.
In your app
// Swift
do {
let result = try await Purchases.shared.purchase(package: package)
} catch let error as ErrorCode where error == .invalidReceiptError {
// handle invalid receipt
}
// Kotlin
if (error.code == PurchasesErrorCode.InvalidReceiptError) { /* ... */ } On RevenueDot: RevenueDot answers HTTP 400 with code 7103 when the body has neither fetch_token nor app_transaction, when a StoreKit 2 transaction's signature or bundle ID does not verify, when Google says the purchase token is invalid or product_ids is missing for a one-time product, and when a Test Store token is malformed. Temporary store failures never answer 7103: they answer 5xx so the SDK retries. See 4xx or 5xx on a receipt.
FAQ
Backend code 7103 means the receipt or purchase token is invalid. The SDK reports it as invalidReceiptError (code 8). Common causes are a wrong bundle ID or package name and an Xcode test receipt the backend cannot verify.
Xcode signs local test transactions with its own certificate, not Apple's, so a backend that has not been given that certificate rejects them. Add the public certificate to the app as xcode_certificate.
In React Native, compare error.code with PURCHASES_ERROR_CODE.INVALID_RECEIPT_ERROR. In Flutter, convert the PlatformException with PurchasesErrorHelper.getErrorCode(e) and compare the result with PurchasesErrorCode.invalidReceiptError.
Get started
Building and testing are free, and you can test your first purchase before you have a store account. Pro costs $0 until your apps make $10,000 a month.
Already have an account? Sign in · Switching from RevenueCat? Change one line