#ruben_code
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/1333753907838586900
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- ruben_php-syntax-errors, 17 hours ago, 29 messages
hi there!
Hi Soma, good afternoon ๐
If I understand correctly, your frontent makes a POST request to your server, but your server returns a 405 error?
this code redirecting to checkout on Stripe payment way was working on Localhost
but yesterday I deployed my website
and getting this
yes thats it.
got it. so next steps is to check your backend logs to understand exactly what is happening on that route.
this is my front end code:
we can't really review code, I'm sorry. you need to check your server logs to see what is happening. maybe add some logging in your code as well.
oh
I just deleted your screenshot, since it contains your secret key.
now you need to make sure to roll your secret, since this is a public chat
you can do it here: https://dashboard.stripe.com/test/apikeys
why not?
add some logs in your file, then check your backend logs to see where exactly is the issue
okay
i have already tried
but not getting anymore info about error coming than:
cart.html:816
POST https://www.dennis-snkrs.com/create-checkout-session.php 405 (Method Not Allowed)
initiateStripeCheckout @ cart.html:816
proceedToCheckout @ cart.html:871
onclick @ cart.html:772Understand this errorAI
cart.html:836 Error: SyntaxError: Unexpected token '<', "<html>
Exactly this:
cart.html:836 Error: SyntaxError: Unexpected token '<', "<html>
this means your backend code is returning an error.