Socket
Book a DemoInstallSign in
Socket

stripe-webhook-server

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stripe-webhook-server

This is a scaffold for responding to [Stripe](https://stripe.com/docs/webhooks).

latest
npmnpm
Version
0.1.3
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

What this thing does

This is a scaffold for responding to Stripe.

By default it'll send some emails to customers for you. But you can reprogram it to do whatever, plotting world domination or something else.

There is no user interface in stripe-webhook-server - use Stripe's website.

Nickname

I get tired of typing stripe-webhook-server so it'll be referred to as SWS. It is not affiliated with the Swiss, Swiss cheese, Swiss army knives, etc. but pronouncing it 'swiss' is cool.

Assumptions

  • You have a Stripe account.
  • You're running Node.js >= 8.x.x
  • You are storing the customer's email address in the email field. Otherwise the emails won't work!
  • You are going to use one of Nodemailer's built in services.
  • You like to wear silly hats (optional).

Usage

git clone this repo.

Edit public-config.js to suit your needs and rename it to config.js.

lib/webhooks.js is a list of the webhooks you support. If you don't want to do anything with a webhook, leave the function empty or just delete the entry completely. SWS

You might want to take a look if you prefer not to send out the default at Maybe even edit lib/webhook-server.js.

You are good to go for local dev. See the /scripts/ folder for setting this thing up on a VPS.

Modules in use

For your knowledge it's using these

Bugs

Please branch, fix, and submit pull request.

Copyright 2013 Jeff Parrish

No warranty expressed or implied.

MIT License

NOT officially affiliated with Stripe.

FAQs

Package last updated on 15 Sep 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts