我正在使用PassKit实现Apple Pay,我正在以正确的方式显示对话框并处理委托方法,但每次我使用touch Id验证购买时它都显示“付款未完成”并且从未到达我的委托方法paymentAuthorizationViewController:didAuthorizePayment:完成:.我完全完成了
these things全部设置苹果工资,但我似乎无法获得一个令牌发送到我的支付网关.
PKPaymentRequest *request = [[PKPaymentRequest alloc] init]; self.paymentRequest = request; request.countryCode = @"US"; request.currencyCode = @"USD"; request.supportedNetworks = @[PKPaymentNetworkAmex,PKPaymentNetworkMasterCard,PKPaymentNetworkVisa]; request.merchantCapabilities = PKMerchantCapabilityEMV; request.merchantIdentifier = @"merchant.com.*******"; request.requiredShippingAddressFields = PKAddressFieldPostalAddress; request.requiredBillingAddressFields = PKAddressFieldPostalAddress; request.paymentSummaryItems = [self paymentSummaryItems]; self.paymentPane = [[PKPaymentAuthorizationViewController alloc] initWithPaymentRequest:request]; self.paymentPane.delegate = self; if (self.paymentPane) { [self presentViewController:self.paymentPane animated:TRUE completion:nil]; }
这就是我所看到的,屏幕就在那里,一遍又一遍地说“再试一次”: