#Badr-Apple Pay

1 messages · Page 1 of 1 (latest)

indigo lantern
#

👋 happy to help

#

how are you integrating with Apple Pay? Are you using Checkout or Elements?

buoyant sinew
#

Elements

indigo lantern
buoyant sinew
#

that the things . it's already verified

indigo lantern
#

is it on https?

buoyant sinew
#

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

indigo lantern
#

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

buoyant sinew
#

sure , give me a seconds

night folio
#

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

buoyant sinew
#

exactly, that how we are working
we have a connect account
and sub account connected to that

#

so what can we do here ?

night folio
#

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 stripeAccount option set to the ID of the connected account(as mentioned in the docs above)
buoyant sinew
#

Thanks a lot guys , will check it now

buoyant sinew
#

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 ?

night folio
#

you have to register domains for Apple Pay using the livemode key

#

even if you're just going to do the payment in test mode later