JamalJ
Convex Community3y ago
14 replies
Jamal

Stripe and Convex HTTP Help

Im trying to setup my react app with convex and stripe. Currently im trying to use convex http route to handle stripe webhooks but its not working. i have stripe setup in my local host. And i modeled my code after this - https://www.convex.dev/templates/stripe but im still having problems.

So my code:

1. https://github.com/neura-labs-ai/web/blob/dev/website/convex/stripe.ts (Stripe convex functions)
2. https://github.com/neura-labs-ai/web/blob/dev/website/convex/payments.ts (Payment functions)
3. https://github.com/neura-labs-ai/web/blob/dev/website/convex/http.ts (Stipe http webhook handler)
3. https://github.com/neura-labs-ai/web/blob/dev/website/app/(console)/console/billing/page.tsx (Jsx to render and call the payment api)

heres the files used to run my code. So far all my code does is when the buttons are clicked for payment, it sends me to stripe. and after auth, i get the paymentId like normal but the webhook to validate if the user payment is complete does not run and im not sure why its not working...
image.png
Was this page helpful?