worldcubeassociation.org icon indicating copy to clipboard operation
worldcubeassociation.org copied to clipboard

Host the Apple Pay domain association file

Open Rubiks-boy opened this issue 1 year ago • 5 comments

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.

Rubiks-boy avatar Oct 28 '23 00:10 Rubiks-boy

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 avatar Oct 28 '23 00:10 FinnIckler

@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?

Rubiks-boy avatar Oct 28 '23 00:10 Rubiks-boy

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)

FinnIckler avatar Oct 28 '23 00:10 FinnIckler

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?

gregorbg avatar Oct 31 '23 20:10 gregorbg

yep! no rush on it, we can wait

Rubiks-boy avatar Nov 16 '23 03:11 Rubiks-boy