In response to these questions:
Apple Pay requires to store a file in this area
Interesting, I was not aware of it. Can you please forward me to the official reference where they state this? And why do they need to store a file in this area? What do they store in it? Whatâs the purpose of it?
I have found the need to upload a file here in Shopify to allow these types of payments to be used.
Which file did you need to upload? Apple pay is built in Shopify by default. What was the purpose of the file(s) that you uploaded or had to upload?
My Response
We are also looking at a way to create a .well-known folder on Shopify specifically for Apple Pay outside of the Shopify Payments ego system.
This works if we direct the customer off of our Shopify CName for our store, but that scares customers, so weâve been trying to implement via the Shopify Proxy, which mostly works, but fails the Apple Pay authentication because the domain name is not registered with them.
One of the steps required by Apple is to temporarily place their apple-developer-merchantid-domain-association.txt in a /.well-known folder so that they can verify you own the domain. Once they verify the file is no longer needed, they donât store anything and they donât do anything with this file after verification and it could be safely deleted afterwards.
I reached out to Apple today to see if they have any alternatives to the well-known file, like a DNS text record, which personally I think would be a better solutions; however, from the screenshot below as of today, the .well-known is the only option they currently give.
Since this file is only needed to verify, one option is to change your DNS to point to a server you own with the .well-known file loaded there, verify the domain with Apple and then change the record back to the Shopify CName; however, this does take your store off-line while you are performing this task.
âŠbut it would be nice, since Iâve seen other people require this for domain validation if Shopify included it as one of the theme folders, like Assets and so on.