punnP
Convex Community3y ago
7 replies
punn

Using Stripe module in http.ts

I was successfully able to create an action which utilized the Stripe module.

However, when trying to set up my Stripe webhooks in http.ts, there seems to be an error with resolving the Stripe module. "use node" can't be added to to http.ts so I was wondering if there was a workaround for this issue.

I've tried several methods of creating the Stripe object, and have it working on NextAPI.

The error is shown below and here is the http.ts file: https://codepaste.xyz/posts/F8qvlItqlMHDANHPEhhJ

The slug can't be deployed to dev due to the error cause by the initialization "new Stripe(...)"
image.png
Was this page helpful?