Commit 9e11446 1 parent eab7a76 commit 9e11446 Copy full SHA for 9e11446
File tree 2 files changed +12
-0
lines changed
donation-api/src/donation_api
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ class Constants:
22
22
merchantid_domain_association : str = (
23
23
os .getenv ("MERCHANTID_DOMAIN_ASSOCIATION" ) or ""
24
24
)
25
+ merchantid_domain_association_txt : str = (
26
+ os .getenv ("MERCHANTID_DOMAIN_ASSOCIATION_TXT" ) or ""
27
+ )
25
28
26
29
stripe_minimal_amount : int = int (os .getenv ("STRIPE_MINIMAL_AMOUNT" ) or "5" )
27
30
stripe_maximum_amount : int = int (os .getenv ("STRIPE_MAXIMUM_AMOUNT" ) or "999999" )
Original file line number Diff line number Diff line change @@ -33,6 +33,15 @@ async def _():
33
33
conf .merchantid_domain_association , status_code = HTTPStatus .OK
34
34
)
35
35
36
+ if conf .merchantid_domain_association_txt :
37
+
38
+ @app .get ("/.well-known/apple-developer-merchantid-domain-association.txt" )
39
+ async def _ ():
40
+ """Used to validate domain ownership with apple"""
41
+ return PlainTextResponse (
42
+ conf .merchantid_domain_association_txt , status_code = HTTPStatus .OK
43
+ )
44
+
36
45
api = FastAPI (
37
46
title = __title__ ,
38
47
description = __description__ ,
You can’t perform that action at this time.
0 commit comments