diff --git a/facia/app/controllers/FaciaController.scala b/facia/app/controllers/FaciaController.scala index 191ce1786a6..53c2748f40b 100644 --- a/facia/app/controllers/FaciaController.scala +++ b/facia/app/controllers/FaciaController.scala @@ -67,6 +67,13 @@ trait FaciaController ) } + //ApplePay MerchantId + def appleDeveloperMerchantId(): Action[AnyContent] = + if (Configuration.environment.isProd) + assets.at(path = "/public", file = "apple-developer-merchantid-domain-association-prod.txt") + else + assets.at(path = "/public", file = "apple-developer-merchantid-domain-association-code.txt") + //Only used by dev-build for rending special urls such as lifeandstyle/home-and-garden def renderFrontPressSpecial(path: String): Action[AnyContent] = Action.async { implicit request => renderFrontPressResult(path) } diff --git a/facia/conf/routes b/facia/conf/routes index 4096a6b2ec0..22d16eda78d 100644 --- a/facia/conf/routes +++ b/facia/conf/routes @@ -16,8 +16,6 @@ GET /humans.txt GET /.well-known/security.txt controllers.Assets.at(path="/public", file="security.txt") GET /.well-known/security.txt.asc controllers.Assets.at(path="/public", file="security.txt.asc") -GET /.well-known/apple-developer-merchantid-domain-association.txt controllers.Assets.at(path="/public", file="apple-developer-merchantid-domain-association.txt") - GET /.well-known/amphtml/apikey.pub controllers.FaciaController.ampRsaPublicKey() # AMP @@ -29,6 +27,7 @@ GET /collection/*id/rss GET /container/use-layout/*id.json controllers.FaciaController.renderContainerJsonWithFrontsLayout(id) GET /container/data/*id.json controllers.FaciaController.renderContainerDataJson(id) GET /container/*id.json controllers.FaciaController.renderContainerJson(id) +GET /.well-known/apple-developer-merchantid-domain-association.txt controllers.FaciaController.appleDeveloperMerchantId() # Editionalised pages GET /*path/show-more/*id.json controllers.FaciaController.renderShowMore(path, id) diff --git a/facia/public/apple-developer-merchantid-domain-association.txt b/facia/public/apple-developer-merchantid-domain-association-code.txt similarity index 100% rename from facia/public/apple-developer-merchantid-domain-association.txt rename to facia/public/apple-developer-merchantid-domain-association-code.txt diff --git a/facia/public/apple-developer-merchantid-domain-association-prod.txt b/facia/public/apple-developer-merchantid-domain-association-prod.txt new file mode 100644 index 00000000000..aeefec553c8 --- /dev/null +++ b/facia/public/apple-developer-merchantid-domain-association-prod.txt @@ -0,0 +1,74 @@ +MIIQZgYJKoZIhvcNAQcCoIIQVzCCEFMCAQExCzAJBgUrDgMCGgUAMHUGCSqGSIb3DQEHAaBoBGZ7 +InRlYW1JZCI6Ijk5OFA5VTVOR0oiLCJkb21haW4iOiJ3d3cudGhlZ3VhcmRpYW4uY29tIiwiZGF0 +ZUNyZWF0ZWQiOiIyMDIzLTExLTAxLDEwOjI1OjQxIiwidmVyc2lvbiI6MX2ggg0_MIIENDCCAxyg +AwIBAgIIRzxMYfKZiNQwDQYJKoZIhvcNAQELBQAwczEtMCsGA1UEAwwkQXBwbGUgaVBob25lIENl +cnRpZmljYXRpb24gQXV0aG9yaXR5MSAwHgYDVQQLDBdDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTET +MBEGA1UECgwKQXBwbGUgSW5jLjELMAkGA1UEBhMCVVMwHhcNMjMwNDExMjIyMzU5WhcNMjgwNDA5 +MjIyMzU4WjBZMTUwMwYDVQQDDCxBcHBsZSBpUGhvbmUgT1MgUHJvdmlzaW9uaW5nIFByb2ZpbGUg +U2lnbmluZzETMBEGA1UECgwKQXBwbGUgSW5jLjELMAkGA1UEBhMCVVMwggEiMA0GCSqGSIb3DQEB +AQUAA4IBDwAwggEKAoIBAQDqQ-T801OftoAP_MZtborJ1sPSjvvdm_fAS-H7SOnN8ywYMsbuLNMx +MBfRqETC-alko-KO66ung4IsLcGGAq8EV1OZTQw3kEN2dntunBtrFbHkAf2dnBWbd3_A9CPRrqCy +RPohS9JNiLxqmAPRUaV08l_u-75ZgUfjT2J7uWOlT9KOyhBOMVWN7VyRR7b2N9PfNt8sW88XTk3D +BVE9_BlwnwD4tYnX18swFeu51u1Ne5LMXYDLDDsrRw3IW3F7tMHbxtdn0NdThpCXAd7_Br0dmYWk +18_u6kHkXv4KZ3AgFR2U7jRm7kJqz9-j9RBKxJiy1VxoSO37mqdw_haZsx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