#sg_api

1 messages ¡ Page 1 of 1 (latest)

grim plinthBOT
dusky glenBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

grim plinthBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1239968623104102462

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

tawdry void
#

Can you be more specific? What was the URL that gave you that error? How did you redirect?

ivory cairn
tawdry void
#

remove cs_live_ from the HREF

#

The Session ID already includes it

#

This is the actual ID --> cs_test_a1npoGbRlmZlzHJXZcfT6FgdQI2RT22DqLoMNYHuhdzxeSieJyTZ49ELUO
Not this --> cs_live_cs_test_a1npoGbRlmZlzHJXZcfT6FgdQI2RT22DqLoMNYHuhdzxeSieJyTZ49ELUO

ivory cairn
#

okey thanks ... but am I in the right way? I ask this because after we go in production I still work.

tawdry void
#

The URL should not work with a Checkout Session ID that starts with cs_live_cs_test

ivory cairn
#

window.location.href = https://checkout.stripe.com/pay/${sessionId};

tawdry void
#

I'm not sure what you're doing here. A live mode Checkout Session ID looks like this --> cs_live_abc123
A test mod Checkout Session ID looks like this --> cs_test_abc123

#

So your URL should contain an ID that looks something like those

#

Also, you don't need to build the URL yourself. The Checkout Session object contains a url attribute with the full URL already made for you

ivory cairn
#

cool...thank you two_shoes