【问题标题】:Apple pay sheet not showing up for Apple app reviewerApple 应用程序审阅者未显示 Apple 工资单
【发布时间】:2021-09-28 09:57:41
【问题描述】:

由于我的应用程序中的 Apple Pay 按钮在他们的设备上点击它时没有响应,因此我的应用程序不断被应用程序审核团队拒绝。 Apple Pay 表在我的设备上显示得非常好,但从未完成付款(错误说我的借记卡号码无效,我的卡在其他地方都可以正常工作,不知道如何解决这个问题,但不是这里的主要问题)。

我不担心在我的应用上使用 Apple Pay 付款,因为我不会成为使用我的应用的人,但我确实想确保它适用于其他所有人,因为 Apple 将它作为一个反复出现的问题提出来。

这是我展示 Apple Pay 表的函数:

{
    guard let cost = actualCostOfEvent.text else { return }
    guard let name = nameOfEvent else { return }
    let text = cost
    let textWithout$ = text.replacingOccurrences(of: "$", with: "")
    guard let finalCost = Double(textWithout$) else { return }
    let fee = finalCost / Double(12.0)
    let roundedFee = floor(fee * 100) / 100.0
    let total = finalCost + roundedFee
    
    let paymentRequest = StripeAPI.paymentRequest(withMerchantIdentifier: "merchant.xxxxx.xxxxx.xxxxx",
                                                  country: "CA",
                                                  currency: "CAD")
    
    paymentRequest.supportedNetworks = [.visa, .masterCard, .interac, .amex, .discover]
    
    
    paymentRequest.paymentSummaryItems = [
        PKPaymentSummaryItem(label: name , amount: NSDecimalNumber(value: finalCost)),
        PKPaymentSummaryItem(label: "Service Fee", amount: NSDecimalNumber(value: roundedFee)),
        PKPaymentSummaryItem(label: "XXXXXX", amount: NSDecimalNumber(value: total))
    ]
 
    guard let applePayController = STPApplePayContext(paymentRequest: paymentRequest, delegate: self) else { return }
    
    if StripeAPI.canSubmitPaymentRequest(paymentRequest) {
        applePayController.presentApplePay {
            self.startApplePayCheckout()
        }
    }
}

我似乎无法弄清楚为什么 Apple Pay 表没有显示给 App 审阅者,有什么建议或需要更改的东西吗?如果没有,我只需要提交上诉。

【问题讨论】:

    标签: ios swift stripe-payments applepay passkit


    【解决方案1】:

    我已经复制了您的代码,并且运行良好; ApplePay 表为我显示。您可能需要向 Apple 确认他们正在测试的 iOS 版本并提交申诉。

    一些注意事项以防万一:

    【讨论】:

    • 太好了,感谢您的保证。 @orakaro
    猜你喜欢
    • 2012-04-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-17
    • 1970-01-01
    • 2014-11-22
    • 1970-01-01
    相关资源
    最近更新 更多