#tallmanpapi
1 messages · Page 1 of 1 (latest)
Hi, sorry is it related to Stripe API?
Yes, its using the Stripe API.
But its always return a 504 error code when I want to use your checkout component for my web-app.
Do you observe a redirection happen in browser?
And do you observe you created a Checkout Session successfully from your Dashboard log https://dashboard.stripe.com/test/logs ?
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I do get redirected to /api/stripe/checkout, I just don't observe the created checkout session in the stripe dashboard.. So that means it's somewhere going wrong in sending "server-side", I think.
let me check the logs to be sure
hmm, nope.
If you insert some log after lineItems and before the call to stripe.checkout.sessions.create, would you see it?
Ooh, thats a good one, I always forget to do those tricks, sorry.
Let me see!
ooh, I think I found something useful @nimble moat , It only logs outside the
export async function handler(req: NextApiRequest, res: NextApiResponse) {
So that means the function is being called.
Only log outside, means the function is not being called?
Yes, exactly. Do you know why, do I have to specify that in a onClick in the button tag or?