Why In-App purchase sandbox always ask “Verification Required”?

后端 未结 11 1155
离开以前
离开以前 2020-12-05 14:51

I have signed out from the store in device settings. I entered user credentials only in my App. I have set up a brand new (actually around 4 times) test user.

Why th

11条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-05 15:30

    Swift 3

    Insert this temporary code somewhere in your project:

    for transaction: AnyObject in SKPaymentQueue.default().transactions {
        guard let currentTransaction: SKPaymentTransaction = transaction as? SKPaymentTransaction else {return}
        SKPaymentQueue.default().finishTransaction(transaction as! SKPaymentTransaction)
    }
    

    This clears out the payment queue. Make sure to run it much later than viewDidLoad if you can. I made mine triggered by a button. Ran it a couple times, then removed the code. No more annoying verification pop-ups.

提交回复
热议问题