https://github.com/rustyneuron01/stripe-next-test
https://github.com/rustyneuron01/stripe-next-test
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rustyneuron01/stripe-next-test
- Owner: rustyneuron01
- Created: 2022-12-12T05:32:05.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-12T05:34:48.000Z (over 3 years ago)
- Last Synced: 2025-05-14T07:51:44.532Z (about 1 year ago)
- Language: TypeScript
- Size: 527 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## How to use
```bash
npm install
npm run dev
# or
yarn
yarn dev
```
### Forward webhooks to your local dev server
First [install the CLI](https://stripe.com/docs/stripe-cli) and [link your Stripe account](https://stripe.com/docs/stripe-cli#link-account).
Next, start the webhook forwarding:
```bash
stripe listen --forward-to localhost:3000/api/webhooks
```
The CLI will print a webhook secret key to the console. Set `STRIPE_WEBHOOK_SECRET` to this value in your `.env.local` file.