#fengod_api

1 messages ¡ Page 1 of 1 (latest)

craggy valeBOT
#

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

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

fluid gazelle
#

req_jEwaK339MyD80D limiting CS by

{
  payment_link: "plink_1Rdx75IDEw46cJqgUySHOXjT",
}

while req_BoEi89jUoGLGYB didn't limit anything

novel remnant
#

yes it did
{
"limit":
"1",
"payment_link":
"plink_1Rdx75IDEw46cJqgUySHOXjT",
}

fluid gazelle
#

Oops sorry I overlooked. Yes it did.

#

Could you share the response? We can't see GET response from our side

novel remnant
#

you dont store the response from the dashboard

#

but i captured the id within my product as cs_live_a1SPP4m669BMmJ3apKW6AVNiS3UKiXCzAsjBAHwBhRYLqhtv919Xqio5bn

#

whereas the same request made from the dashboard returned cs_live_a1YG8vzia3aPqzzwYlOddjQ3UK7z1l9SRcAEK7Zfqhpd6acA0GWy0lSHez which is correct

fluid gazelle
#

Hmm both are related to plink_1Rdx75IDEw46cJqgUySHOXjT

#

You are limiting 1 so probably it take a first response in a non-ordered list

novel remnant
#

how can there be more than 1 checkout from this payment link?

#

im setting restrictions[completed_sessions][limit] as 1 when creating the link

fluid gazelle
#

cs_live_a1YG8vzia3aPqzzwYlOddjQ3UK7z1l9SRcAEK7Zfqhpd6acA0GWy0lSHez status is paid
cs_live_a1SPP4m669BMmJ3apKW6AVNiS3UKiXCzAsjBAHwBhRYLqhtv919Xqio5bn status is unpaid

#

Maybe you want to filter by status?

novel remnant
#

makes sense. How does a checkout session get created?

fluid gazelle
#

When a Customer click to the Payment Link

novel remnant
#

so everytime a customer opens the payment link it creates a new unpaid checkout session?

#

when i remove the limit from the dashboard, only cs_live_a1YG8vzia3aPqzzwYlOddjQ3UK7z1l9SRcAEK7Zfqhpd6acA0GWy0lSHez appears in the dashboard

#

whereas id expect both

fluid gazelle
novel remnant
#

req_jEwaK339MyD80D

#

if i expire the unpaid checkout session, will it still be returned in the list call?

#

im thinking of a hot fix to somehow delete it or hide it from the list without changing the code for now

#

ah nvm the unpaid checkout session is already expired meaning it does appear in the list

fluid gazelle
#

Yep so it is expected