#niklas_api
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/1285864929378963479
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Oops, I think Related Request ID: req_zlGChh27smyRVn
Let me take a look
Looks like your server returns a 404 on https://www.worldtennissimulationleague.com/checkout.php
oh jez, so all the files are in that folder /pages/stripe_payment/...
Do I have to update the YOUR_LOCATION and add /pages/stripe_payment/ ?
What's YOUR_LOCATION ?
sorry, I meant YOUR_DOMAIN
Yes you should change it.
It really depends on where you want to direct your customer once they complete the checkout
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Like all the files are in that folder
I mean you should ask yourself which page you want to show when your customer completes the checkout. For example, a checkout success page, or an account management page. You should decide it based on your need.
100%
But at the moment I am not getting a payment page at all. When I test https://www.worldtennissimulationleague.com/pages/stripe_payment/checkout.html
all I get is this error message
A demo of a payment on Stripe
And I have no idea why since I used 1:1 the documents from https://docs.stripe.com/checkout/embedded/quickstart
Have you fixed the 404 for https://www.worldtennissimulationleague.com/checkout.php ?
You should check your server logs and see what causes the 404 error
the checkout.php is not located in that directory.
It is located at https://www.worldtennissimulationleague.com/pages/stripe_payment/checkout.php
So your code is currently creating a request to https://www.worldtennissimulationleague.com/checkout.php, you may want to update it and make it create a request to https://www.worldtennissimulationleague.com/pages/stripe_payment/checkout.php instead.
Aight. But where do I do that?
I assume you are following the example code here https://docs.stripe.com/checkout/embedded/quickstart.
In checkout.js, update the URL that you pass to fetch
const response = await fetch("/create-checkout-session", {
method: "POST",
});
const { clientSecret } = await response.json();
return clientSecret;
};```