#Daniele
1 messages · Page 1 of 1 (latest)
Practical case:
We have 4.5k connected accounts
We want apple pay to work at https://daniele.sellix-staging.io
https://daniele.sellix-staging.io/.well-known/apple-developer-merchantid-domain-association returns the correct domain association file
Apple Pay, however, returns this error
{
"error": {
"message": "Before you can start using Apple Pay on the Web, you need to first register your domain. For more information, see https://stripe.com/docs/stripe-js/elements/payment-request-button#verifying-your-domain-with-apple-pay.",
"request_log_url": "https://dashboard.stripe.com/acct_1HoyqhDQ1vYID78v/logs/req_Drs6RjZMoiEutR?t=1666735563",
"type": "invalid_request_error"
}
}
daniele.sellix-staging.io is the domain of a merchant (client) of ours, connected account to our Stripe platform
You'll need to make sure that Apple Pay is enabled for your Connect accounts. When you click on Edit settings for your connect accounts in that Dashboard view, do you see Apple Pay enabled?
Well it appears automatically when using the Stripe Element
see here
the error is returned only after i try to pay with apple pay
Okay, that makes sense. How old is the error?
Just received it if that's what you mean
Is it coming from the Connect account? Or the platform? When you visit that URL, does it show you logged in as the platform or the connected account?
Got it. Is Apple Pay working when you go through the payment flow?
For some reason I cannot get the URL https://stripe.com/docs/api/versioning to load on Safari, so i'm a bit limited about what I can advise
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
yep same thing
i click apple pay -> click pay
the payment popup appears, but immediately closes
not sure what you mean?
Woops, wrong URL.
I meant I cannot get https://daniele.sellix-staging.io/ to load on Safari
Ah, okay that works.
Hi 👋
I'm stepping in for @native vessel Give me a sec to get caught up
Okay so that is the domain this is running on?
this one
^, yep
That is the domain you have registered for Apple Pay?
yes
The whole thing? Including the /invoice/xxxxxxx?
what?
Okay perfect, thanks
that's not needed
Okay so you are hosting the domain association file. Can I get your account ID?
Wait, NVM.
Okay I see that domain registered but as a Platform. The only merchant registration is for cheatarmy.com
Yes, that’s what we were told to do since we can’t somehow force stores to register their apple pay domain on our site as i’d imagine the verification file would change and we can’t automate that
Okay and how are you initializing Stripe.js?
We are doing everything through the connected account
we pass the stripe_account as the connected account
but the API credentials are the platform’s
we opened a ticket for this in march and we were told to do this
The code snippet is what I'm looking for here. That's the next step in tracking down the error
which we did, now it’s not working anymore
Ok, one moment
setStripePromise(loadStripe(config.STRIPE_PUBLIC_KEY, { stripeAccount: stripe_user_id }))
And you are using Direct Charges? Are you using cloned payment methods?
standard payment intents
Sorry that isn't an answer to my question. Of the three charge types used for Connect integration https://stripe.com/docs/connect/charges are you using Direct Charges. Do you clone payment methods to your Connect Accounts or not?
Okay, thanks.
Okay so this domain you are using is for a Connect Account? And you made the registration with the Stripe header?
Yep, correct
mh actually, let me double check please
damn
so that was a staging domain, and usually registration through the stripe header is automated
however, since it was a staging domain it was manually configured and no domain registration through the stripe header was done
i've added it again now and it's working as expected, sorry for wasting your time
all good now, thank you