#Reformedot
1 messages · Page 1 of 1 (latest)
Can you share with me your merchant ID? you can find it from the Stripe Dashboard -> Settings ->Account Details
acct_1GgwlvEtfggJJ5D3 this?
Yes, let me take look
The problem is that I'm not able to serve the Apple static file in my React App
Tried everything
How do you serve the apple-developer-merchantid-domain-association file from your server?
I tried to add it to the public/.well-known/apple-developer-merchantid-domain-association file, and I added a reference to the file inside the index.html
<link rel="apple-developer-merchantid-domain-association file" href="%PUBLIC_URL%/.well-known/apple-developer-merchantid-domain-association" />
Can you send me the public URL where you host the file?
Works in local but not in prod
I tried a something
Now im reading the file and showing the content
cause that didnt worked, and this idea dont work
is not able to detect it
Ok, this file is accessible from this URL, the next step is to register this domain with Apple, You can do this by either going to the Apple Pay tab in the Account Settings of your Dashboard, or by directly using the API
Tried but is not working
Cause I'm doing this now:
export const AppleVerification = () => {
const [content, setContent] = useState("")
useEffect(() => {
fetch(raw)
.then(r => r.text())
.then(text => {
setContent(text)
console.log(text)
});
}, [])
return (
<pre>{content}</pre>
)
};
And I'm serving it on that route
<Route exact path="/.well-known/apple-developer-merchantid-domain-association" component={AppleVerification}/>
What error do you get when registering the domain?
OK, can you serve this file directly from you server without using React routing?
We don't have guide for web hosting, you might want to check with your hosting provider.