The Stripe Server Example repository serves as the starting point for the backend service mentioned in the Stripe tutorial from the Safe documentation.
pnpm install
Copy the .env.example
file and rename it .env
, adding the corresponding values to the environment variables. Get the secret key from the Stripe dashboard.
FRONTEND_ORIGIN=http://localhost:3000,http://127.0.0.1:5173
SERVER_PORT=3001
STRIPE_SERVER_SECRET_KEY=
pnpm build
To run the server locally, execute the following command:
pnpm start
To run the server in production, once the build is completed, execute the following command:
pnpm start:prod
This library is released under MIT.