#numericity_applepay-expo
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1230547811804774492
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐ do you already have a card in the Apple Pay wallet of the device that you're using for your testing?
Oh I see the step you're talking about. I'm not familiar with Expo, but I do believe that step is required.
Hi @timber bay. I do have a card on my device
numericity_applepay-expo
I was hopeful that I wouldn't have to modify anything in Xcode, and that it was handled in the app.json file
@split rose are you using Expo Go?
No, I am building, and installing on a device
Ack, okay so step one, what do you see on this page in Safari: https://docs.stripe.com/stripe-js/elements/payment-request-button
that'll tell us if ApplePay works on your device
I see the ApplePay button
okay so that's step one and it does confirm your device is properly configured. You'd be surprised how often it is the real issue.
Let me think for a sec
lol I can imagine
So the only one I have not completed is the Integrate with Xcode step, as I'm a little unsure how to do that in an Expo project
okay someone on my team said: https://github.com/stripe/stripe-react-native?tab=readme-ov-file#expo
(no idea why it's not in our official docs lol I'll make sure it gets fixed)
I have those details in my app.json file ๐ฆ
[
"@stripe/stripe-react-native",
{
"merchantIdentifier": [
"merchant.co.xxxxx.client",
"merchant.co.xxxxx.client.development",
"merchant.co.xxxxx.client.staging"
],
"enableGooglePay": true
}
],
As I understand it, when you build with Expo, it pulls the capabilities from the developer console and syncs them, so I figured that meant the "Integrate with Xcode" step was not required
yeah that step is not needed for Expo, only if you build your own ReactNative project yourself, in which case you have access to the XCode project file.
In theory if you did the first 2 steps and that JSON change it's enough. I'm asking others on my team how to debug further
Thank you. Much appreciated
Just an FYI, but I have multiple users testing, and we are all having the same issue
Can you share your exact full JSON for the app? put it on gist or something similar
Might be a bit tricky, as we're overriding a bunch in app.config.js
That might be the problem then
Might be worth doing a simple app that only does Stripe and nothing else with a basic JSON and see if that works there
Oh, 1 question I have actually. when calling initPaymentSheet, is the applePay.merchantCountryCode property required?
I think so, it's covered in our docs here: https://docs.stripe.com/payments/accept-a-payment?platform=react-native&mobile-ui=payment-element#add-apple-pay
Holy shit
that was it
Sorry for wasting your time ๐คฆโโ๏ธ
Not sure how I missed it before, but it's working great now
All good, glad you got unblocked ๐
Thanks for your time