#numericity_applepay-expo

1 messages ยท Page 1 of 1 (latest)

blissful vaultBOT
#

๐Ÿ‘‹ 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.

primal sphinxBOT
timber bay
#

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.

primal sphinxBOT
split rose
#

Hi @timber bay. I do have a card on my device

maiden rover
#

numericity_applepay-expo

split rose
#

I was hopeful that I wouldn't have to modify anything in Xcode, and that it was handled in the app.json file

maiden rover
#

@split rose are you using Expo Go?

split rose
#

No, I am building, and installing on a device

maiden rover
split rose
#

I see the ApplePay button

maiden rover
#

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

split rose
#

lol I can imagine

split rose
#

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

maiden rover
#

(no idea why it's not in our official docs lol I'll make sure it gets fixed)

split rose
#

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

maiden rover
#

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

split rose
#

Thank you. Much appreciated

#

Just an FYI, but I have multiple users testing, and we are all having the same issue

maiden rover
#

Can you share your exact full JSON for the app? put it on gist or something similar

split rose
#

Might be a bit tricky, as we're overriding a bunch in app.config.js

maiden rover
#

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

split rose
#

Oh, 1 question I have actually. when calling initPaymentSheet, is the applePay.merchantCountryCode property required?

maiden rover
split rose
#

Holy shit

#

that was it

#

Sorry for wasting your time ๐Ÿคฆโ€โ™‚๏ธ

#

Not sure how I missed it before, but it's working great now

maiden rover
#

All good, glad you got unblocked ๐Ÿ™‚

split rose
#

Thanks for your time