#kiwi_docs

1 messages · Page 1 of 1 (latest)

gray isleBOT
#

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

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

opal adder
#

hi there!

#

The documentation is completely outdated
what do you mean by this? can you share the link you are looking at, and which part is outdated?

cloud nova
#

I'm using other parts of the sdk comfortably now, so I'm quite sure the problem is with the example code.

opal adder
#

the code being suggested here is not working:
what does that mean? do you get an error message? can you share it here?

#

also you just shared your secret key. please delete your message are roll your key.

cloud nova
#

this one returns non-embedded sessions can't use the return url parameter

cloud nova
opal adder
#

don't worry, this is from the docs!
the docs automatically use your secret key in examples so you can just copy/paste them.

cloud nova
gray isleBOT
prisma patio
cloud nova
#

I also tried it like this btw: req_Q990BLKJ1YmZS1

prisma patio
#

This is a Checkout session create request

#

Not a billing portal sesison

#

you've likely accidentally imported the wrong "session" class in your code

cloud nova
#

ahh, the billing portal Session has the same name?

prisma patio
#

They're both "session" but in different namespaces

cloud nova
#

and since I had the checkout session imported, it used that one

prisma patio
#

yes

cloud nova
#

ahh! thank you for your help!

prisma patio
#

If you use both in the same file, you may need to alias the imports

cloud nova
#

exactly. Thank you!