#noroup_code
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/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.
- noroup_code, 12 hours ago, 16 messages
- noroup_code, 1 day ago, 13 messages
- noroup_api, 1 day ago, 90 messages
- noroup_api, 2 days ago, 22 messages
- noroup_webhooks, 2 days ago, 17 messages
- noroup_webhooks, 2 days ago, 4 messages
Hello there
Hmm and you are creating a Development build here as opposed to using an Expo Go build?
Correct, yes
Do you have a live card in the wallet on the device you are testing with?
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?
No you should set your merchantID via your StripeProvider
Can you show me that component as well?
<StripeProvider
publishableKey="XXX"
merchantIdentifier="merchant.com.arthurhakobyandev.verca"
>
yes, here
Okay can you provide me the PaymentIntent ID that you test with on your actual phone ?
Sure, one second
pi_3ReIrVLbE4j2Km3D2VLFx89H
Here you go sir
Hmm okay yeah looks fine and Apple Pay is enabled so it is something with your device/integration. On that same device do you see the Apple Pay button if you go to https://docs.stripe.com/elements/express-checkout-element/accept-a-payment in Safari?
Different one
Want me to try on the simulator and send you the new payment intent ID?
And you can compare both
Sure
pi_3ReIzbLbE4j2Km3D0J9fQwL6
Yeah that looks fine too. The PaymentIntent isn't the issue.
You are using eas build here for your development build?
Hmm can you build without the --local flag?
Nope, didn't work
π
I can just delete the certificate and run through the steps again
If it is working on your simulator then I don't think the cert is the issue
Should I try to unlink my merchant ID from XCode and run the simulator again?
Let me ask a teammate if they have any ideas...
OK, I can try this in the meantime
No if it works on your simulator then it most likely is something with the build/device
Sorry, this is such a niche issue
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!
Maybe there is something I need to configure in the app.json or eas.json?
That I am missing
it's not ur fault at all
I assumed you set your merchantIdentifier in the expo app.json?
Yep
Happy to help
Still not showing up
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
Darn
If I uncheck the merchant identifier in xcode, it still works in the iOS simulator
My. bundle identifier in Xcode doesnt match the bundle identifier in my VS
β Synced capabilities: Disabled: Apple Pay Payment Processing
That is checked?
That seems potentially relevant but have never heard of anyone running into issues with that before...
this is when i run the eas build
Hrmmmmm
I had to go into the apple developer portal and enable this com.arthurhakobyandev.StreamChatDev to process apple pay
I am at a loss...
OK
Asking a teammate for any thoughts
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?
Oh!
why is my Merchant ID red?
You need to be assigned to a dev team I think
lol yeah
We did it!
Glad it got figured out!