#mpare-Apple-pay-ios
1 messages ยท Page 1 of 1 (latest)
Thanks! Working with @remote path on this
Alright I'm not too familiar with this so asking a colleague who is more familiar with iOS. Give us a few minutes
Can you provide a request ID for the error, and can you also log out paymentRequest.merchantCapabilities in your code?
Are you able to reproduce this consistently? I know you said a quarter of your requests are hitting it....
PKMerchantCapability(rawValue: 11) is the log out. We are seeing about a quarter of users hit this error but the others seem to be able to proceed with Apple Pay just fine. I have not been able to reproduce it myself. @bleak mango Could you provide a request ID for one of the errors?
๐ bismark had to head out, but I'm hopping in - let us know as soon as you have the reqeust IDs
Hey! Sorry jumping back in
Let me grab them from the account
req_g9q0nxGzssut2w
req_qvvvSEtLb4O2bK
Heres a couple!
Let me know of you need anymore
๐ let me take a look!
Can you log the capabilities too @bleak mango ?
Also logging the whole paymentRequest object would be helpful
@remote path is our iOS engineer who has this setup locally and I don't have the emulator/certs setup to rebuild
He just went offline but can give you more context tomorrow - sorry for the delay on that
all good!
I can just post our whole code snippet if that helps
private func applePayRequest(forAmount amount: Int? = nil) -> PKPaymentRequest {
let merchantIdentifier = settings.merchantID
let paymentRequest = StripeAPI.paymentRequest(
withMerchantIdentifier: merchantIdentifier,
country: Strings.Stripe.defaultCountry,
currency: Strings.Stripe.defaultCurrency
)
paymentRequest.merchantCapabilities = [
PKMerchantCapability.capabilityDebit,
PKMerchantCapability.capabilityEMV,
PKMerchantCapability.capability3DS
]
let displayedAmount: NSDecimalNumber = amount.map { NSDecimalNumber(value: $0) } ?? 0
let type: PKPaymentSummaryItemType = amount == nil ? .pending : .final
paymentRequest.paymentSummaryItems = [
PKPaymentSummaryItem(label: Strings.Stripe.applePayTitle, amount: displayedAmount, type: type)
]
return paymentRequest
}