worldcubeassociation.org
worldcubeassociation.org copied to clipboard
Host the Apple Pay domain association file
This PR hosts the Apple Pay domain association file (downloaded from https://stripe.com/files/apple-pay/apple-developer-merchantid-domain-association) at the following URL: https://www.worldcubeassociation.org/.well-known/apple-developer-merchantid-domain-association
This will allow regional organizations to collect registration fees through Apple Pay after verifying the WCA domain in their Stripe Dashboard.
I manually tested the change by running the docker container and visiting http://localhost:3000/.well-known/apple-developer-merchantid-domain-association.
hey Adam, this won't work on prod, because we are blocking all URLs starting with . in the nginx config see https://github.com/thewca/worldcubeassociation.org/pull/5198#issuecomment-1772742705
@FinnIckler good catch, thanks!
I followed the approach in this stack overflow post. Do you have any advice on how to test the change in an env more similar to prod?
There is an nginx running on port 8000 in the docker-compose.php.yml
which you can use by running docker compose -f docker-compose.yml -f docker-compose.php.yml up
(wrote this from memory but I think that's how it should work)
Cool stuff, thanks for the contribution!
I'm a bit hesitant to merge as-is, because using Apple Pay could cause us to "appear more on the radar" of Stripe, and our legal foundations of using Stripe (for what they sometimes perceive to be "gambling") are fragile at best.
How urgent is this feature for you? Could you wait until early next year when we will likely onboard other payment gateways before making a big change like this?
yep! no rush on it, we can wait