#elswift

1 messages · Page 1 of 1 (latest)

tacit oxideBOT
lapis moon
#

Some informations of my code :

#

(in app.mjs : )

digital salmon
#

At what point do you run into this error?

lapis moon
#

when i click on "buy" on my frontend, i am supposed to be redirected to the checkout (which is what happens on the local web/back version).

#

Also :

#

this is the network log

lapis moon
digital salmon
#

Hm, are you sure you've saved this and restarted your server? If you hard code your secret key (don't share it here), does the redirect work?

lapis moon
#

yep doesn't work 😦

digital salmon
#

Wait, hold on. I missed this from earlier but Checkout Sessions can only be created server side, not client side

#

How are you handling the redirect?

lapis moon
digital salmon
#

Do you get a different error if you hard code your secret key?

lapis moon
#

this is how the web front redirects :

digital salmon
#

oh, I see you're using the deprecated redirectToCheckout

lapis moon
#

Oh okay thank you ! Can this post not be archived while i fix that ? Do you think it is the source of my issue ?

digital salmon
#

No, we don't keep long-running threads. Our channel is now closed but will reopen later (see #dev-help for hours). I'll close our thread but please return if you still need help.