#noroup_code

1 messages Β· Page 1 of 1 (latest)

warm houndBOT
#

πŸ‘‹ 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/1387829363902255215

πŸ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

lime root
#

Hello there

dusty bane
#

Hi there!

lime root
#

Hmm and you are creating a Development build here as opposed to using an Expo Go build?

dusty bane
#

Correct, yes

lime root
#

Do you have a live card in the wallet on the device you are testing with?

dusty bane
#

yes sir

#

Works in the iOS simulator

#

Not on my actual phone 😦

lime root
#

πŸ€”

#

Can you show me your initPaymentSheet() code?

dusty bane
#

yes of course

#

      const { error } = await initPaymentSheet({
        merchantDisplayName: "Verca",
        customerId: customer,
        customerEphemeralKeySecret: ephemeralKey,
        paymentIntentClientSecret: paymentIntent,
        allowsDelayedPaymentMethods: true,
        applePay: {
          merchantCountryCode: 'US',
        },
        defaultBillingDetails: {
          email: user.email
        }
      });
#

Am I supposed to provide my merchantID here or something?

lime root
#

No you should set your merchantID via your StripeProvider

#

Can you show me that component as well?

dusty bane
#
      <StripeProvider
      publishableKey="XXX"
      merchantIdentifier="merchant.com.arthurhakobyandev.verca"
      >
#

yes, here

lime root
#

Okay can you provide me the PaymentIntent ID that you test with on your actual phone ?

dusty bane
#

Sure, one second

dusty bane
lime root
dusty bane
#

I’m not sure it’s with my device…

lime root
#

Are you using the same PaymentIntent ID on your simulator?

#

Or a different one?

dusty bane
#

Different one

#

Want me to try on the simulator and send you the new payment intent ID?

#

And you can compare both

lime root
#

Sure

dusty bane
lime root
#

Yeah that looks fine too. The PaymentIntent isn't the issue.

dusty bane
#

😭

#

should I just delete everything and run through the process again?

lime root
#

You are using eas build here for your development build?

dusty bane
#

Correct

#
eas build --profile development --platform ios --local
lime root
#

Hmm can you build without the --local flag?

dusty bane
#

yes, let me do tha tnow

#

I'll delete my .ipa file from my phone as well

dusty bane
#

😭

#

I can just delete the certificate and run through the steps again

lime root
#

If it is working on your simulator then I don't think the cert is the issue

dusty bane
#

Should I try to unlink my merchant ID from XCode and run the simulator again?

lime root
#

Let me ask a teammate if they have any ideas...

dusty bane
lime root
#

No if it works on your simulator then it most likely is something with the build/device

dusty bane
#

Sorry, this is such a niche issue

lime root
#

But if you want to try that then feel free

#

No need to apologize!

#

I'm sorry that this is a hassle to get working!

dusty bane
#

Maybe there is something I need to configure in the app.json or eas.json?

#

That I am missing

lime root
dusty bane
lime root
#

I assumed you set your merchantIdentifier in the expo app.json?

dusty bane
#

ooooo

#

I don't think so one second

#

I just added it, should I do a rebuild?

lime root
#

Yep

dusty bane
#

okay, one second

#

Thank you so much for your time

#

btw

lime root
#

Happy to help

warm houndBOT
dusty bane
#

I can try one more thing

#
      "plugins": [
        [
          "@stripe/stripe-react-native",
          {
            "merchantIdentifier": "merchant.com.arthurhakobyandev.verca",
            "enableGooglePay": false
          }
        ],
        "expo-font",
        "react-native-compressor"
      ],
#

nvm ugh

#

Didnt work

lime root
#

Darn

dusty bane
#

If I uncheck the merchant identifier in xcode, it still works in the iOS simulator

lime root
#

Hmm with a fresh/cleaned build?

#

I don't think that should be the case...

dusty bane
#

My. bundle identifier in Xcode doesnt match the bundle identifier in my VS

#

βœ” Synced capabilities: Disabled: Apple Pay Payment Processing

lime root
#

That is checked?

#

That seems potentially relevant but have never heard of anyone running into issues with that before...

dusty bane
#

this is when i run the eas build

lime root
#

Hrmmmmm

dusty bane
#

I had to go into the apple developer portal and enable this com.arthurhakobyandev.StreamChatDev to process apple pay

lime root
#

I am at a loss...

dusty bane
#

OK

lime root
#

Asking a teammate for any thoughts

dusty bane
#

wait

#

I think I got it

#

I did npx expo prebuild --platform ios

#

That generated an xcode workspace

#

I opened the xcode workspace

#

and I do not see an Apple Pay merchant identifier field here

#

So I think I had the wrong xcode workspace open?

lime root
#

Oh!

dusty bane
#

why is my Merchant ID red?

lime root
#

You need to be assigned to a dev team I think

dusty bane
#

yep yep on it

#

Pardon my French

#

but what a fucking headache

lime root
#

lol yeah

dusty bane
#

@lime root

#

IT WORKED

lime root
#

πŸŽ‰

#

Yay!

dusty bane
#

We did it!

lime root
#

Glad it got figured out!