How to verify stripe payment method domain in Firebase Hosting
Verify your domain for Apple Pay in Firebase Hosting.
The apple-developer-merchantid-domain-association
file should be available at the following URL.
This file is generated by Stripe and you can download it from the Stripe Dashboard.
https://YOUR_APP_NAME.firebaseapp.com/.well-known/apple-developer-merchantid-domain-association
Update the firebase.json
file to add rewrites and headers for the .well-known
directory.
{
"hosting": {
"public": "./www",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
],
"rewrites": [
{
"source": "/.well-known/*",
"destination": "/.well-known/"
}
],
"headers": [
{
"source": "**/.well-known/**",
"headers": [
{
"key": "Content-Type",
"value": "text/plain"
}
]
}
]
}
}
Deploy the changes to Firebase Hosting.
firebase deploy --only hosting
Verify the domain in Stripe Dashboard.
Settings > Payment Methods > Payment Method Domains