#amy_code

1 messages · Page 1 of 1 (latest)

boreal gyroBOT
#

👋 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/1351140147504087050

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

near smelt
#

Hi hi

#

Each 3d print is a different price, unique price

Can’t get stripe to show up on my vercel deployment

I think it’s webhook issue

misty nexus
#

👋
Can you share more details please ?

#

What product are you integrating and what error or issue you are facing exactly ?

near smelt
#

hi hi

#

here is my product

#

its volume based pricing

#

the button in the bottom right hand

#

im trying to create a stripe checkout for!

#

but trouble getting it to work

#

wehnever i deploy it to vercel, im just having trouble making it work. nothing happens when i click the button.

i put all the appropriate api keys and stripe keys

boreal gyroBOT
wintry whale
#

Did you check your server logs for errors? Does this work locally when you test it?

near smelt
#

it doesnt work locally

#

but local is so annoying

#

because of the ports mismatch

#

when i deploy to vercel i get no logs

wintry whale
#

No logs where? There must be something happening in the browser console and/or your Vercel fucntion logs

#

You really need to get this working locally first it'll be way easier for you to debug, or find an error and we can go from there

near smelt
#

ok so should i use test keys instead

#

no lgs when i deploy to vercel and i do inspect element console

#

ill check vercel

#

anywhere else i should check?

wintry whale
#

Not really because if it was a client-side issue then the logs would be in Chrome, otherwise server logs in Vercel. What code do you all when you click the button?

near smelt
#

Server-Side Processing (in server/simple-checkout.cjs):
When the request reaches the server, it:
Creates a Stripe product for the 3D print order
Creates a Stripe price entry with the calculated price
Creates a Stripe checkout session with metadata about the order
Returns the session URL to the client
Redirect to Stripe:
If successful, the browser is redirected to the Stripe checkout page:

wintry whale
#

OK< and none of that happens when you click? Some of it? Check your Stripe account

wintry whale
near smelt
#

Server-Side Checkout Code
Main Checkout Server:
server/simple-checkout.cjs - This file contains:
Express server setup (lines 1-30)
Stripe initialization (around line 12)
Webhook handling (lines 45-104)
Main checkout endpoint (lines 106-200) which:

#

Checkout Processing Function:
Also in Print3DTab.tsx (around line 770), there's the handleCheckout function, which:
Validates the model and filament selections
Prepares the STL file data
Attempts to contact various checkout endpoints

wintry whale
#

I didn't download the whole file, just what Discord expanded

#

But anyway, you need to find an error really

near smelt
#

yes

#

i think

#

so i should try to test with test keys first