#danielncr-applepay
1 messages · Page 1 of 1 (latest)
Should I ask my question again? I guess I don't know how this works. We just went live with our app today and Apple Pay isn't working.
I know you already posted your question somewhere, but would you mind summarizing or copy/pasting in this thread for brevity?
On desktop Safari the Apple Pay button isn't showing. On Safari on iOS the Apple Pay button shows but when clicked the dialog appears but immediately disappears.
I've done the domain association and registered the domain.
Is the URL live? In other words, can I navigate to it and see if the button works for me?
Yes
Ah, okay. That doesn't work for me either. What are product are you using? Payment Element?
Payment Request Button Element
Ahhh, okay. That's odd, because Google Pay shows up in Chrome for me
yes, google pay works fine for me too
What's your account ID? Should look like acct_abc123
just a sec
acct_1ASCSHBMAMOLTEak
Note that this is using Connect, if that matters.
If you need the account number for the actual Stripe account receiving the funds I can provide that too.
(The above account # is the Connect acct)
Okay, thanks. Taking a look now
Very strange. Let me flag internally and see if one of my colleagues has a good idea about troubleshooting further
okay. Thanks
Ah! Okay, so I think I know what is going on. I did a cURL request to the url where you hosted your domain association file and it looks like you have the right file but you have incorrectly added a new empty line at the end of the file. You need to edit the file to be exactly like ours with no empty line at the end.
oh, wow
ha, our pre-commit hook has an end-of-file fixer that was automatically adding the newline
deploying that fixed file now
Amazing! I love when it's that simple
Well, the new file is deployed but Apple Pay still isn't working. Not sure if it checks for that periodically and we just have to wait or something
Hi 👋 @atomic arrow had to go so I'm stepping in. Let me confirm the problem is you are using the Payment Request Button to render both Apple & Google Pay (when applicable) and on Safari in Desktop you do not see Apple Pay?
On desktop I don’t see the button. On iOS safari I see the button but when clicked the dialog that pops up immediately disappears
Okay so there is no situation (regardless of whether the button is visible or not) where you can actually use Apple Pay?
Standard account. With elements.
Direct charges? Are you cloning payment methods or not?
Not cloning. Direct charges.
The Connect Account was created in Live mode using your live API key?
And you added the the domain to the Connect account via the API?
I added the domain in the Stripe Dashboard.
That won't work I'm sorry to say.
The domain must be added to the Connect Account via the API, using the Platform's live API key
So the dashboard lets me do it but it won’t actually work?
Correct.
Our doc shows this right at the bottom here: https://stripe.com/docs/stripe-js/elements/payment-request-button?html-or-react=html#html-js-using-with-connect
Ok. I’ll check that.