#bks_error
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/1376911237710876846
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hey there, how exactly are you creating and redirecting to checkout sessions?
It is using the same code that Stripe provides for the self hosted checkout.
let me find the link for tit
Here is the code that I am using for the checkout
It looks like you're returning the client secret from your back end
So i infer that you're using redirectToCheckout() in your client app
This is a deprecated pattern, and you can encounter the error you see for example with mismatched Connect configurations.
Instead of using the client secret, you can return the session url and just redirect to that without using Stripe.js
No I am using the checkout.html on the self hosted checkout like stripe has in their documentation
But if you can share an example sesison ID and your client side initialization/redirect code i can also try to help debug that
It uses checkout.js to enable the checkout
here is the js file that checkout uses.
Let me do that.
That code appears to be unrelated, or possible from a status/success page.
It's also possible you're referring to some outdated samples. The docs I see describe and show using the url as i mentioned. If you still see redirectToCheckout in a doc please share a link to that so i can see about getting it updated.
Sure.
This is the example that started with and updated to include the DB calls and my application specific integrations. It is functioning as expected on my local environment but after I migrated it to the servers, I am getting that error.
https://docs.stripe.com/checkout/embedded/quickstart
Oh, this is embedded. I see. There's no redirect in that case. I missed that line in your snippet before.
OK, can you share an example session ID and how you're initializing Stripe.js and the embedded checkout in your client code?
The app is hosted at https://demo-co.digitallabsllc.com/checkout.html and this URL is embeded in the app via an iframe call to enable the checkout functionality.
A demo of a payment on Stripe
Sorry I am new to this so not sure how to generate the example session id. Are there any instruction that I can follow to genrate that?
That's the result of your call to session = stripe.checkout.Session.create( ...)
That's creating a session, which would have an ID
Or you can share the API request id from your Dashboard logs: https://dashboard.stripe.com/test/logs/
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
It seems like it is not even hitting the stripe endpoint as I can't find any API requests from today. So the issue might be that it is failing before even hitting the endpoint.
and I do not have erros being logged in the error log either
so it is making it difficult for me to see where the issue might be.
but when I make the call using curl, it renders the HTML like I would expect it to be.
The issue seems to be with the call on checkout session failiing with 500 error code