bizz84 / SwiftyStoreKit

Lightweight In App Purchases Swift framework for iOS 8.0+, tvOS 9.0+ and macOS 10.10+ ⛺
MIT License
6.57k stars 796 forks source link

How can I read the message "Sandbox receipt used in production"? #547

Open janczakb opened 4 years ago

janczakb commented 4 years ago

Apple rejected my application,

their suggestion:

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.

Sam-Spencer commented 4 years ago

Hi! Thanks for sharing this issue. This is a common issue that seems to be occurring during App Review. The community (myself included) is working on resolving these issues. For workarounds, I strongly suggest you look at some of the other app-review related issues


Also, please take a look at issue #550. Your help with this project is dearly needed!

isseium commented 4 years ago

I think this is may same reason issue #545 . I've created a link for anyone who also found this issue.


I have same error, but I could not reproduce in my environment. It may happens only in Apple Review environment. However I tried verify receipt in my server side. I think that we should not use SwiftyStoreKit.verifyReceipt.

Then, I passed apple review.

Mihai-github commented 2 years ago

Hi, I'm having the same issue... anyone has a clear solution or something to help me debug this because is not clear why this happens.

hoho0482 commented 2 years ago

Just got exactly the same. Anyone made progress with this?

kkk-shimizu commented 1 year ago

Please tell me how to solve this. I've been stuck with this issue for 2 months now and can't move forward.

sabiland commented 1 year ago

Refactor code to StoreKit 2 with this GIT library: Mercato I do not have any problems with Mercato.