SwiftyStoreKit icon indicating copy to clipboard operation
SwiftyStoreKit copied to clipboard

apple review reject app

Open bitcot-jvn opened this issue 4 years ago • 1 comments

When validating receipts on your server, your server needs to be able to handle a production-signed app getting its receipts from Apple’s test environment. The recommended approach is for your production server to always validate receipts against the production App Store first. If validation fails with the error code "Sandbox receipt used in production," you should validate against the test environment instead.

bitcot-jvn avatar Nov 10 '21 11:11 bitcot-jvn

First call AppleReceiptValidator with .production AppleReceiptValidator.VerifyReceiptURLType, if this fails (error), call exactly the same logic with .sandbox type.

sabiland avatar Nov 10 '21 12:11 sabiland