#Thomas-react-applepay
1 messages ยท Page 1 of 1 (latest)
Hello @plucky turtle and thank you for the thread, I'm gonna post the screenshots right now ๐
Could not create Apple Pay session. Please make sure you have registered this Stripe account. For more information, see https://stripe.com/docs/apple-pay#web.
My domain and sub domain are registered correctly (green)
Can you give me your PaymentIntent id?
@plucky turtle "id": "pi_3LIZptDFpQbzMrga1I57RL5K"
Thanks Thomas! Taking a look now.
You're using Connect and making a direct charge on the connected account (Tom Test), correct?
Okay, this is going to be a bit complicated, but bear with me. Apple Pay needs to be activated in livemode, so we'll need to change a few things about your setup:
- Your current account is connected in testmode; you'll have to create a live mode connection.
- Next, you'll want to add the Apple Pay domain using the platform's live API key and Stripe-Account header like this: https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#html-js-using-with-connect
- However, because you've already added a livemode domain via the Dashboard on your connected account, you'll have to delete that first.
You can delete the domain in the Dashboard here: https://dashboard.stripe.com/settings/payments/apple_pay
First of all thank you for your reply and your time,
I see, so i'll need to deploy directly on production with live api key, its not gonna cause some real transactions to occurred and be paid ?
No, it's just that the domain registration has to happen in live mode.
Once you finish those steps, you can still use Stripe.js in testmode.
So if i understood correctly, we will connect the Apple pay domain directly from our server (Node.js) ?
You only need to do it once, so you can run a Node.js script to do so!
Or you can even use curl ๐ -- there is a snippet here: https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#html-js-using-with-connect
I see, I'm gonne transfer your answer to the devs backend ๐ we are a platform Saas (like ubereat-like) where restaurants/chains can have their own portal (through our web-app) with menu, delivery, payments etc... they can have a custom sub-domain and their own PK stripe, do you think it will be possible to make this Apple pay's setup for every single different restaurants/entities easily?
Yep it all works fine, it's really just that Connect makes testing hard, you always have to do this registration in Live mode
But other than that it mostly just works! So when a new account connects to your platform you register their domain(s) on their account properly
Thanks a lot for those infos ๐ , we gonna probably try tomorrow since its almost 8pm in France ๐ I'll let you know ๐