An open API service indexing awesome lists of open source software.

https://github.com/rustyneuron01/stripe-next-test


https://github.com/rustyneuron01/stripe-next-test

Last synced: 8 days ago
JSON representation

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.