Skip to content
This repository was archived by the owner on Oct 16, 2025. It is now read-only.

Commit 58dac8c

Browse files
committed
fix: error message on promotional offer
1 parent 9c480fb commit 58dac8c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/OpenIapModule.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,10 @@ public final class OpenIapModule: NSObject, OpenIapModuleProtocol {
199199
Promotional offer purchase failed: \(error.localizedDescription)
200200
201201
Common causes:
202-
1. Invalid signature - verify server generates correct signature
203-
2. Sandbox testing - ensure current subscription has expired before testing offers
204-
3. Offer eligibility - user may not be eligible for this promotional offer
205-
4. Key mismatch - verify using correct In-App Purchase key for environment
202+
1. Invalid signature - verify server generates correct signature with exact parameter order
203+
2. Empty appAccountToken - ensure empty string ('') is used in signature, not null
204+
3. Sandbox testing - ensure current subscription has expired before testing offers
205+
4. Offer eligibility - user may not be eligible for this promotional offer
206206
"""
207207
let purchaseError = makePurchaseError(
208208
code: .purchaseError,

0 commit comments

Comments
 (0)