#Chance

1 messages · Page 1 of 1 (latest)

plush haloBOT
feral ridge
#

hello! you can switch the keys out and any other relevant object IDs and the example should run fine. Ultimately though, the examples are meant as a demo, i wouldn't consider them as production ready code

quick steeple
#

Ohh.

#

Im also getting a 405 error when I go to the webpage.

#

On my site. I changed out the API keys, and the Webhook secret.

#

To actual ones.

#

But when I go to my site, it gives me that error when I try to checkout.

#

Regardless if it’s production ready or not, I’d still like to at least see it working.

gloomy elk
#

Hi @quick steeple I'm taking over.

quick steeple
#

Okay sounds good.

#

So what can I do?

gloomy elk
#

Give me some time to catch up the earlier conversations

quick steeple
#

Alright! No problem!

gloomy elk
#

Can you tell me more about the error? i.e., where do you see the error, and what's the detailed error message?

quick steeple
#

Let me send you the exact example im using from Stripe and tell you everything I changed.

#

I see on my stripe dashboard that it says 2 failed Webhooks

gloomy elk
#

Can you share with me your merchant ID? you can find it from the Stripe Dashboard -> Settings ->Account Details

quick steeple
#

acct_1MC0L1EKGSujai3r

#

Oh we’re up to 5 Webhook failures.

gloomy elk
#

Thanks. From my end I can see that your server is responding 405 to the recent webhook events

quick steeple
#

Yea

#

How do I fix that

gloomy elk
#

Have you checked your webhook endpoint and see why it returns 405 instead of 200?

quick steeple
#

I’m sorry. I’m just not too much of a developer.

#

The error says “billing_portal.configuration.created”

gloomy elk
#

HTTP 405 means method not allowed. Are you handling GET or POST method in your webhook handling code?

#

Stripe sends events to your webhook endpoint through HTTP POST method, so your endpoing should handle POST requests.

quick steeple
#

Then I’d imagine it’s post? No?

gloomy elk
#

Can you share with me the code you wrote to handle webhook events?

quick steeple
#

I used the Stripe one from the link I sent above

#

So none of the code is mine

#

I just changed the keys and stuff

#

Oh I see in the code it says Post

#

It says <form action=/create-checkout-session” method=“post”

gloomy elk
#

Or you want to check with your web hosting provider? It looks like your endpoint is not accepting POST requests.

quick steeple
#

So is it because GitHub Pages is only front end

#

?

#

Idk if they are or not

#

I see people saying they’re font and back

#

But then others say it’s not

#

And I can’t reach out to their support because they just don’t answer

#

I don’t quite want to buy a server yet, for that not to be a problem. But I can if I can be confirmed by someone that GitHub is the problem.

gloomy elk
#

I'd suggest you to reach out to your current hosting provider on this problem.

quick steeple
#

Alright. Well I guess I’ll just get a server at this point because they will not answer. I really do appreciate your help though! I do have one last question.

#

Is there any possible way to incorporate booking into Stripe?

gloomy elk
#

What do you mean by incorporate booking ?

quick steeple
#

Like have booking as part of the checkout.

#

Is there a third-party app that can if it takes a lot of coding?

gloomy elk
quick steeple
#

Yes but you can’t do booking with that

gloomy elk
#

Can you describe the booking function that you wish to implement?

quick steeple
#

Actually I think I found one. It’s third-party and costs money, but it might work.