bizz84/SwiftyStoreKit

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

開放

#545 建立於 2020年6月15日

 (28 則留言) (7 個反應) (0 位負責人)Swift (792 個分叉)batch import
area: purchase flowsdifficulty: advancedhelp wantedstatus: needs analysistype: bug

倉庫指標

星標
 (6,419 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南