#Daniel M.-redirect

1 messages · Page 1 of 1 (latest)

nova jetty
#

Hi there!

#

What do you mean by "redirect"?

frosty totem
#
.then(async (res) => {
            const { error } = await stripe.confirmPayment({
              elements,
              confirmParams: {
                // Return to checkout pending page  (fileName is used to later download the file from the server)
                return_url: `${process.env.REACT_APP_WEBSITE_DOMAIN}/createAudit/`
              }
            });
#

this one

#

is it fine to put the localhost into the .env variable?

#

or does it need to be a reachable url from outwards?

nova jetty
#

While you are testing things, it's totally fine to use a localhost URL.

frosty totem
#

building on a server rn

#

so this will be the live version

frosty totem
#

?

nova jetty
#

The return_url you set is where your customer will be redirected after their payment is completed. So you need to provide a valid URL that customer can access.
While you are building your integration, using localhost makes a lot of sense. But once you are live I would recommend using a real URL with your own domain.

frosty totem
#

well i just realized

#

yeah ofc