Error: Apple pay not completed

前端 未结 3 2096
猫巷女王i
猫巷女王i 2020-12-20 21:19

I have implemented apple pay in my iOS application using Passkit framework. I did all of these things fully to set up apple pay. I am using sandbox account. I added

3条回答
  •  -上瘾入骨i
    2020-12-20 22:02

    In each implemented delegate function of PKPaymentAuthorizationViewControllerDelegate that have completion/handler you must call that block with the appropriate parameters and most importantly with appropriate status.

    On iOS 11 not calling the block within (approximately) 15-20s, the iOS is killing the Payment with the error you are seeing. On iOS 10, it will let you spin on Processing indefinitely until the completion blocks are called.

    I had the same issue and it turned out that I was not calling the handler block at all in one of the edge cases.

提交回复
热议问题