#Chance
1 messages · Page 1 of 1 (latest)
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
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.
Hi @quick steeple I'm taking over.
Give me some time to catch up the earlier conversations
Alright! No problem!
Can you tell me more about the error? i.e., where do you see the error, and what's the detailed error message?
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
Can you share with me your merchant ID? you can find it from the Stripe Dashboard -> Settings ->Account Details
Thanks. From my end I can see that your server is responding 405 to the recent webhook events
Have you checked your webhook endpoint and see why it returns 405 instead of 200?
I’m sorry. I’m just not too much of a developer.
The error says “billing_portal.configuration.created”
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.
Then I’d imagine it’s post? No?
Can you share with me the code you wrote to handle webhook events?
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”
Or you want to check with your web hosting provider? It looks like your endpoint is not accepting POST requests.
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.
I'd suggest you to reach out to your current hosting provider on this problem.
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?
What do you mean by incorporate booking ?
Like have booking as part of the checkout.
Is there a third-party app that can if it takes a lot of coding?
https://stripe.com/docs/payments/payment-links I think you'll be interested in PaymentLink, it's our no-code solution for payments.
Yes but you can’t do booking with that
Can you describe the booking function that you wish to implement?