#Badr-Apple Pay
1 messages · Page 1 of 1 (latest)
👋 happy to help
how are you integrating with Apple Pay? Are you using Checkout or Elements?
Elements
For Apple Pay to work you need to verify your domain https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#verifying-your-domain-with-apple-pay
that the things . it's already verified
is it on https?
yep
I can even see the apple button , I click on it , it show for seconds and disappear with that error
if it's not verified or not https , I won';t even see the apple button
if it's not verified or not https , I won';t even see the apple button
yes I agree that's right
could you please send me the link of your hosted page?
where you have the Apple Pay button
yeah unfortunately this is because you have set this up kind of weirdly with Connect and Connect with Apple Pay is a problem
to clarify, you are a Connect platform and you want to accept Apple Pay on behalf of a connected account? Seems that way
exactly, that how we are working
we have a connect account
and sub account connected to that
so what can we do here ?
so there's a few problems so it's hard to explain
first thing to do is completely remove all the existing registrations :
- log into the dashboard of that connected account and go to their Apple Pay settings and delete the domain there.
- in the API, call https://api.stripe.com/v1/apple_pay/domains with the DELETE verb, using your platform test mode secret key and the Stripe-Account header, to delete apwc_1KyufuIzQrXzOQ2Mh3jjewJF on the connected account
after that, to make this work, the only way is :
- make the API call at https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#html-js-using-with-connect to register the domain using your platform's livemode secret key and the Stripe_Account header. You must use the livemode key. Do not register the domain directly through the connected account's dashboard or it won't work.
- then, in your code on that page, you need to use your platform's public API key(test or live depending on your environment) and pass the
stripeAccountoption set to the ID of the connected account(as mentioned in the docs above)
Thanks a lot guys , will check it now
You must use the livemode key
didn't get what you mean with livemode key ? we are on development stage, not production
can't we do that ?