我们在App Store中有app。当用户付款时,付款成功但钱不从信用卡中提取。有什么问题?也许我们需要添加银行信息或类似的东西?
if PKPaymentAuthorizationViewController.canMakePayments(usingNetworks: supportedPaymentNetworks) {
let request = PKPaymentRequest(
request.merchantIdentifier = "merchant.com.my_app_identifier"
request.merchantCapabilities = .capability3DS
request.countryCode = "RU"
request.currencyCode = "RUR"
request.supportedNetworks = supportedPaymentNetworks
request.paymentSummaryItems = [PKPaymentSummaryItem(label: egrn.name, amount: NSDecimalNumber(value: price))]
let applePayController = PKPaymentAuthorizationViewController(paymentRequest: request)!
applePayController.delegate = delegate
self.present(applePayController, animated: true, completion: nil)
}