I added example yoyo.txt file at the root of my theme folder and it works:
https://uklad.vc/yoyo.txt
But Apple Pay requires me to put the file into uklad.vc/.well-known
I created “.well-known” directory in the root of my theme folder but it doesn’t work.
Also I tried make routing in routes.yaml such as
routes:
/signup/: members/signup
/signin/: members/signin
/account/: members/account
/.well-known: apple
and put the file into “apple” folder inside the theme folder. It also doesn’t work.
I couldn’t find any topic in this forum regarding Apple Pay integration issue.
Please advise
I just did exactly that and it didn’t work.
For example I also added “Almas.txt” file there and it doesn’t work by calling https://uklad.vc/.well-known/almas.txt
Are you uploading your theme to Ghost or editing it manually on the server? If you’re editing it, you’ll likely need to restart Ghost for it to pickup the new directory.
If you’re uploading it via the zip, can you confirm that the hidden dot directory is in the zip file? You can easily view whats in a file by vim’ing it and it gives you a directory listing.
@jloh, interesting thing.
I’ve just added another directory “well-known” without the dots in the theme root. And copied same files as in “.well-known” directory.
Hey @aabulkhairov, I have a feeling the hidden directory isn’t being included in your theme zip.
Just to confirm, the .well-known directory should be in your theme root, not the Ghost root. So /var/www/ghost/content/themes/<active theme>/.well-known
You can read about including hidden directories in zip files here or move that directories to the one I mentioned above.
Sorry to interrupt but you don’t actually need this at all. The guide you’re following is for people who are trying to add an Apple Pay button to their domain. Ghost Memberships works with Stripe’s hosted checkout pages, where Apple Pay is already automatically included.
If you click on a plan here: Rediverge in Safari - you’ll see the Apple Pay button loads in after a couple of seconds, for example. If you do it in Chrome, the Google Pay button will load in - it’s all managed by Stripe, no .well-known files or verification needed.
Wow, @John, nice to meet you! Great job pulling this all with the team, I looked at ghost since you announced it.
Well, when people try to subscribe, there’s no Apple Pay, not Google pay option on my blog stripe subscription page for some reason.
So I thought I need to go through additional config.
P.S. clicked on your link. it indeed has Apple Pay option.
But I don’t have it
Again this procedure is needed only to handle a special Stripe checkout with Apple Pay. It’s not needed for the Ghost membership feature as described above.
Anyways, to make it works with Stripe:
I have created a .well-known folder into the /var/www/[mydomain]/system/nginx-root/ and put the apple-developer… file there.
By visiting the url https://[mydomain]/.well-known/apple-developer… the file is automatically downloaded.
Then Stripe can validate the domain.
I have tried before to upload Lyra theme including the .well-known folder as mentioned above but without success.