#ruben_code

1 messages ยท Page 1 of 1 (latest)

twin mesaBOT
#

๐Ÿ‘‹ 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.

vernal slate
#

hi there!

fringe terrace
#

Hi Soma, good afternoon ๐Ÿ™‚

vernal slate
#

If I understand correctly, your frontent makes a POST request to your server, but your server returns a 405 error?

fringe terrace
#

this code redirecting to checkout on Stripe payment way was working on Localhost

#

but yesterday I deployed my website

#

and getting this

vernal slate
#

got it. so next steps is to check your backend logs to understand exactly what is happening on that route.

fringe terrace
#

this is my front end code:

vernal slate
#

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.

fringe terrace
#

oh

vernal slate
#

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

fringe terrace
#

but im not able to debug my PHP file

#

๐Ÿ˜ฆ

vernal slate
#

why not?

#

add some logs in your file, then check your backend logs to see where exactly is the issue

fringe terrace
#

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>

vernal slate
#

this means your backend code is returning an error.