#learner
1 messages · Page 1 of 1 (latest)
Hi there!
Can you console log the value of checkoutSession.data.id, just before making the redirect?
yes i did that
got a log
cs_test_b1v06mHbjDXs5BnQHhvEpCV5CXfr4lFpPWbLH35V5VoXgweoPzMHduXBOH
Can you try to do the redirect by hand to see if it works? Get the url on the frontend, and then update the window.location property with the url.
Hi there 👋 taking over for my teammate. I'm happy to help if there are still questions or concerns that you're trying to address, but I do want to point out that the function you're referencing has been tagged as deprecated:
https://stripe.com/docs/js/deprecated/redirect_to_checkout