#kiwi_docs
1 messages · Page 1 of 1 (latest)
👋 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.
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?
on this page: https://docs.stripe.com/customer-management/integrate-customer-portal#redirect
this part: When you create a portal session, Stripe returns the portal session object, which contains the session’s short-lived URL that your customers use to access the customer portal.
I'm using other parts of the sdk comfortably now, so I'm quite sure the problem is with the example code.
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.
this one returns non-embedded sessions can't use the return url parameter
don't worry, this is from the docs!
don't worry, this is from the docs!
the docs automatically use your secret key in examples so you can just copy/paste them.
oh. thanks for warning me.
Ok, taking a look at your example request: https://dashboard.stripe.com/test/logs/req_kOt3TpAV9Gmkhl
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I also tried it like this btw: req_Q990BLKJ1YmZS1
This is a Checkout session create request
Not a billing portal sesison
you've likely accidentally imported the wrong "session" class in your code
ahh, the billing portal Session has the same name?
They're both "session" but in different namespaces
and since I had the checkout session imported, it used that one
yes
ahh! thank you for your help!
If you use both in the same file, you may need to alias the imports
exactly. Thank you!