#nishp77
1 messages · Page 1 of 1 (latest)
https://stripe.com/docs/apple-pay?platform=ios#accept have you completed all these pre-requisites ?
Yes
I was also following https://stripe.com/docs/payments/accept-a-payment?platform=ios&ui=payment-sheet&uikit-swiftui=swiftui
https://stripe.com/docs/payments/accept-a-payment?platform=ios&ui=payment-sheet&uikit-swiftui=swiftui#ios-apple-pay have you completed this step?
Yes i did add this to code
configuration.applePay = .init(
merchantId: "merchant.com.your_app_name",
merchantCountryCode: "US"
)
the payment button does show up but after that it does not show the cards I have with apple pay?
Did you also configure the Apple Pay certificate?
Yes everything else is done
OK. Can you share with me a video recording and the relevant PaymentIntent ID?
Can you take a video recording?
Just wait
pi_3NR5pyKb7Q4MOzOo1BFNZJku
Is there anything else that I have to do for apple pay?
I just added the above 2 lines to configuration
So PaymentSheet dismissed when you click on Apple Pay button?
Did you see any error in your react native dev console?
2023-07-06 23:06:17.649531-0500 client-ios[11893:2261481] [General] Payment request is invalid: Error Domain=PKPassKitErrorDomain Code=1 "Invalid in-app payment request" UserInfo={NSLocalizedDescription=Invalid in-app payment request, NSUnderlyingError=0x2813e5470 {Error Domain=PKPassKitErrorDomain Code=1 "PKPaymentRequest must contain a property 'countryCode' of type 'NSString' within '(
country code for canada is CAD?
or CA?
configuration.applePay = .init(merchantId: "merchant.com.example.client-ios", merchantCountryCode: "CAD")
Thank you jack
It was CA no CAD my bad
Issue resolved
I have another question, can I use my personal card for testing apple pay?