#markendaya_code

1 messages ¡ Page 1 of 1 (latest)

open gorgeBOT
#

👋 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/1348834571549937684

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

regal gyro
#

Hi! Can I have the checkout session ID?

midnight halo
#

yes, one sec

#

cs_live_b15gAZ77EKSPLOrTquevtRGk02NyIk8sgfcuO008EAc1IP3nBgXyQp19gI

regal gyro
#

I am seeing the checkout session ID being appended to your success URL correctly. Could you show where and how you're are getting that error?

midnight halo
#

sure, how would you like me to do that?

regal gyro
#

Do note that our recommendation is to listen to checkout.session.completed event in your webhook. This will let you know once a Checkout Session has been successfully completed.

#

Sometimes your customers may not be redirected to your success URL. For example if they close their browser.

midnight halo
#

I'm working through the docs, and saw that I could include the session_id in the URL to pull the checkout information. I didn't know there was a webhook for checkout

regal gyro
midnight halo
#

ok, will look into them

#

May I ask you a different question?

regal gyro
#

Sure!

midnight halo
#

thank you!

#

when I test the checkout process I end up in "live" mode for the checkout

#

which isn't that huge of a deal, as I've created $1.00 test products, but still.

#

I'm using a 'test' secret key when creating the Checkout session.

#

or

#

I just double checked. I'm not.

#

It's a live key. sigh

regal gyro
#

I checked it as well, it's the live key.

midnight halo
#

now I get to figure out how to create a test key

#

found it.

#

So the webhook thing

#

reading the docs, it looks like the code I write gets fired when the customer is redirected back to my site

#

and I can use {CHECKOUT_SESSION_ID} in the URI to identify the session_id

#

but you said that not all customers are redirected back

#

so how do I get information on them?

regal gyro
midnight halo
#

In the past I've used callbacks, where the processor posts information to an endpoint that I've specified. That post typically included a session/checkout id and some kind of status id that I could use to pull the current status of the transaction

#

is this the same sort of thing, just with different words?

regal gyro
#

Your description sounds similar to this but it would be best to go through the docs.

midnight halo
#

will do

#

thanks for your time