The Stripe Server Example repository serves as the starting point for the backend service mentioned in the Stripe tutorial from the Safe documentation.
pnpm installCopy 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 buildTo run the server locally, execute the following command:
pnpm startTo run the server in production, once the build is completed, execute the following command:
pnpm start:prodThis library is released under MIT.