#lucy_api

1 messages · Page 1 of 1 (latest)

brave anvilBOT
#

đź‘‹ 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/1474391713073205250

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

stoic herald
carmine cargo
#

which toggle?

stoic herald
#

What does your integration use?

carmine cargo
#

I'm using connect

stoic herald
#

Ok, and how are you integrating with the the Stripe API? It's probably with one of the options shown above

#

Or is there a a guide you're following in order to set up your integration? If so, can you share that link here?

carmine cargo
#

I'm ngl I've been using claude

#

looks like this though

stoic herald
#

Ok, this is probably checkout, so if you click on the Checkout Sessions button above, do you see Google Pay and/or Apple Pay?

carmine cargo
#

I see google pay but not apple pqy

stoic herald
#

But if Google Pay is showing there, it should also show in your integration

carmine cargo
#

wait i mean this page you sent me doesn't check the integration on my actual account

#

i opened it in incognito and it showed the same thing

stoic herald
#

No that page checks that your device/browser is correctly set up to show the wallets (if they don't show there, they won't show in your integration, so it's a way of ruling out device issues before focusing on your integration)

#

You mentioned you're using Connect. Do you have the ID of the connected account that you're testing this with?

carmine cargo
#

ohh ok yea then my device is fine

#

platform or user id?

#

this is my platform id: acct_1BtzDCD7gq5GkHXE

stoic herald
#

And what's the connected account ID? It will also start with acct_

carmine cargo
#

for each individual account?

#

here's a connected account ID for an individual: acct_1SzVchRcthRWBUji

#

The setup is I have a platform (acct_1BtzDCD7gq5GkHXE), and then experts can join the platform with individual accounts (like acct_1SzVchRcthRWBUji) and get paid for their expertise (I am trying to integrate apple and google pay as alternatives to credit card)

#

⏺ Here's the frontend snippet — the relevant part is lines 109-122:

<PaymentElement
onReady={() => setElementReady(true)}
onLoadError={(e) => {
console.error("Stripe PaymentElement load error:", e);
setLoadError(e.error?.message || "Failed to load payment form. Please reload and try again.");
}}
options={{
layout: "tabs",
wallets: {
applePay: "auto",
googlePay: "auto",
},
}}
/>

From src/components/payment/StripePaymentForm.tsx. The config is correct — "auto" means Stripe will show the
wallet buttons when the browser/device supports them and the domain is properly registered.

And here's the backend domain registration you just deployed (from
supabase/functions/stripe-connect-account/index.ts lines 135-143):

// Register payment method domain on platform for Apple Pay / Google Pay (idempotent)
try {
const domain = new URL(SITE_URL).hostname;
if (domain !== "localhost") {
await stripeRequest("/payment_method_domains", "POST", { domain_name: domain });
}
} catch (e) {
console.log("Platform domain registration (non-fatal):", e.message);
}

stoic herald
#

Ah, so it looks like you've set up the payment method domains on the Platform account, but not on the connected account (acct_1SzVchRcthRWBUji) - You'll need to set them up there too

carmine cargo
#

Do they need to re-register?

#

and if the connected account is not made yet (I am just holding payments in the platform acount), will apple pay show up as an option

stoic herald
#

They will need to just enter the domains in the Payment Method Domains page on the dashboard

#

Yes, if the checkout session is being created directly on the platform account, this looks like it's all set up correctly already

carmine cargo
#

Hm it's still not working

carmine cargo
stoic herald
#

The connected account, although I see it's an Express account, so this may be done a bit differently. Bear with me a moment

carmine cargo
#

oh hm, how do I know if it's an express or checkout?

#

or connected?

#

I'm a bit confused about the distinction

#

I thought i was using connected

stoic herald
#

Yes, you're using Connect. There are different types of connected accounts https://docs.stripe.com/connect/accounts Yor're using Express. Just looking into the exact requirements for getting gpay/apple pay to work in this scenario

carmine cargo
#

thank you

stoic herald
#

Is there a URL I can visit to test your integration?

carmine cargo
#

yup

#
stoic herald
#

Is there a way I can get to the checkout page without signing in?

carmine cargo
#

Hmm no but lemme set that up right now

brave anvilBOT
carmine cargo
hazy coyote
#

Hi there, taking over for @stoic herald as they had to step away, getting caught up on the thread

carmine cargo
#

thank you

#

right now what I'm seeing on my end is:
if the connected account is created, the google appear options shows up, if no connected account yet, no google pay

however apple pay doesn't show up regardless

hazy coyote
#

I looked at that page and was able to see Google Pay as an option in my Chrome browser. I'm not exactly sure what you mean when you say "if no connected account yet". Is there something that changes how Google Pay shows up on this page?

carmine cargo
#

Sure - so I have experts on the website and some have created a stripe account and some have not. on /test, I show the display for someone who has set up stripe vs. hasn't and the results are different

#

wait nvm they both show google pay

#

but i am not seeing apple pay

#

on my iphone

hazy coyote
#

Right, that's what I see as well on my desktop Chrome browser

#

For Apple Pay, are you able to see it on our test page? I think earlier you mentioned that you didn't see it, so you'd need to make sure your device and browser are setup correctly before anything else
https://docs.stripe.com/testing/wallets?ui=embedded-form

If you can’t see your expected wallet in the demos, your device or browser might not meet the following Apple Pay or Google Pay conditions.
The wallet must have at least one card.
You must use a compatible Apple Pay device and Google Pay device.
You must use a supported version of a supported browser for the wallet you’re testing.
Allow applicable browsers to access your wallet.
Chrome: Settings > Autofill and passwords > Payment methods > Allow sites to check if you have payment methods saved
Safari: Settings > Advanced > Allow websites to check for Apple Pay and Apple card
Opera: Settings > Advanced > Payment methods > Allow sites to check if you have payment methods saved
Edge: Settings > Privacy, Search, and Services > Allow sites to check if you have payment methods saved
Don’t use a Chrome incognito window or Safari, Edge, or Opera private window.
Confirm you’re operating from a supported Apple Pay region and Google Pay region.
Stripe doesn’t display Apple Pay or Google Pay for IP addresses in India.
For Apple Pay, confirm your device supports biometric authentication.

carmine cargo
#

are you able to test it from your end?

#

yea this is all enabled on my iphone

#

^

hazy coyote
#

Got it, I'm not seeing Apple Pay on that page when I'm viewing in Safari, looking into it

carmine cargo
#

thanks!

#

Hey! I have to go soon

#

Could I ask what the issue is?

hazy coyote
#

Sorry, juggling a couple of threads, still looking into it

#

If you have to go soon, we can convert this into a support case for follow up. Otherwise, you can come back onto Discord later when you are available

carmine cargo
#

Ah ok, I'll hang on then

#

Could I get a time estimate>?

hazy coyote
brave anvilBOT
carmine cargo
#

ok sounds good

#

it worked!!! thank you