Wednesday, November 4, 2026
HomeiOS Developmentios - Apple Pay canMakePayments return flawed outcome

ios – Apple Pay canMakePayments return flawed outcome

[ad_1]

I had bind a sandbox debit card 5204 2477 5000 1489 and capabilities cross [.capability3DS, .capabilityDebit]
however the canMakePayments returns false
Then if the capabilities solely cross .capability3DS canMakePayments returns true

anybody know why this occurs? and the way can I repair this query

 static let supportedNetworks: [PKPaymentNetwork] = [
    .masterCard,
    .visa
  ]
class func canMakePayments(with capabilities: PKMerchantCapability) -> Bool {
return  PKPaymentAuthorizationController.canMakePayments(usingNetworks: supportedNetworks, capabilities: capabilities)
  }
 static func functionality(from string: String) -> PKMerchantCapability {
    swap string {
    case "credit score":
      return [.capability3DS, .capabilityCredit]
    case "debit":
      return [.capability3DS, .capabilityDebit]
    default:
      return .capability3DS
    }
  }

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments