#Reformedot

1 messages · Page 1 of 1 (latest)

near plinthBOT
wooden scaffold
#

Can you share with me your merchant ID? you can find it from the Stripe Dashboard -> Settings ->Account Details

south dirge
#

acct_1GgwlvEtfggJJ5D3 this?

wooden scaffold
#

Yes, let me take look

south dirge
#

The problem is that I'm not able to serve the Apple static file in my React App

#

Tried everything

wooden scaffold
#

How do you serve the apple-developer-merchantid-domain-association file from your server?

south dirge
#

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" />

wooden scaffold
#

Can you send me the public URL where you host the file?

south dirge
#

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

wooden scaffold
#

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

south dirge
#

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}/>

wooden scaffold
#

What error do you get when registering the domain?

south dirge
#

Can't found the script in the url

#

Is not detecting the content of the file

wooden scaffold
#

OK, can you serve this file directly from you server without using React routing?

south dirge
#

Do you have an small guide to do that?

#

We are not using express in our React app

wooden scaffold
#

We don't have guide for web hosting, you might want to check with your hosting provider.

south dirge
#

Mmm okay

#

We are hosting the react app in aws