bizz84 / bizz84/SwiftyStoreKit

Verify Receipt fails for Apple Reviewer and keeps on rejecting app (Error: SwiftyStoreKit.ReceiptError error 2).

Open
#545 28 comments 7 reactions 0 assignees View on GitHub
area: purchase flows difficulty: advanced help wanted status: needs analysis type: bug
Dominant language
Swift
Stars
6.7k
Forks
801
PR merge metrics
No merged PRs in 30d

Description

## Bug Report
After successful purchase, Verify Receipt Works for us, but not for Apple reviewer. They are getting below error and keeps on rejecting app.
(SwiftyStoreKit.ReceiptError error 2).

**To Reproduce**
```
SwiftyStoreKit.verifyReceipt(using: appleValidator) { result in
if case .success(let receipt) = result {
...

} else if case .error(let error) = result {
// Always comes here and shows error
}

```
**Expected behavior**
Should come in success block and proceed further. Purchase is successful, verify receipt is failing.

## Platform Information
- OS: iOS 13.5.1
- Purchase Type: auto-renewable subscription
- Environment: Sandbox and app review
- SwiftyStoreKit version: 0.13.3

**Screenshots**
![image](https://user-images.githubusercontent.com/2579395/84618784-8abced00-af16-11ea-8095-7f282c910d11.png)

Contributor guide

Open the contributing guide

Research direction

Start at SwiftyStoreKit.verifyReceipt(using: appleValidator) and investigate why the reported SwiftyStoreKit.ReceiptError error 2 occurs for Apple review purchases but not the reporter’s successful purchases. Compare the Sandbox and app review environments and the auto-renewable subscription flow. Done means the reviewer’s receipt reaches the success path rather than the error branch.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile, payments
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.