#gellert01_embedded-checkout
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/1303741207326756965
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐ your error returning a 500 doesn't tell us very much, as the errors leading to that will be in your server logs that we don't have insight to. What errors do you see on your server?
hi the problem solved, my actual problem is my client secret is null
Awesome, glad to hear you were able to get to the bottom of it!
I can try, what's the problem?
first time i begin with a simple question: with test keys is the API works?
Yes. Test keys are designed to work with our API. They let you create objects in testmode rather than in livemode.
so i create a checkout session via 'clientSecret'
and the response is null
Only Embedded Checkout Sessions return a client secret. Hosted ones return a URL that you direct your customers to. If you don't pass a value for ui_mode it defaults to hosted:
https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-ui_mode
You need to set ui_mode to embedded then in your session creation request.
I believe you also need to swap the return_url and success_url parameters for a return_url.
This guide walks through setting up an integration using Embedded Checkout Sessions:
https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=embedded-form
gellert01_embedded-checkout
thats works thank you for the help