# hapi-stripe-webhooks

> A Hapi plugin for receiving notifications from the Stripe webhooks API.

Latest version **1.0.0** (published 2015-08-05) · 0 weekly downloads

## Install

```sh
npm install hapi-stripe-webhooks
pnpm add hapi-stripe-webhooks
yarn add hapi-stripe-webhooks
bun add hapi-stripe-webhooks
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-08-05 |
| First published | 2015-08-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 0.10.x |
| Dependencies | 5 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | christophercliff |
| Keywords | hapi, stripe, webhooks |

## Links

- npm: https://www.npmjs.com/package/hapi-stripe-webhooks
- Repository: http://github.com/christophercliff/hapi-stripe-webhooks
- Homepage: https://github.com/christophercliff/hapi-stripe-webhooks
- Issues: https://github.com/christophercliff/hapi-stripe-webhooks/issues
- npm.io page: https://npm.io/package/hapi-stripe-webhooks

## Dependencies (5)

- [joi](https://npm.io/package/joi.md) ^6.6.1
- [boom](https://npm.io/package/boom.md) ^2.8.0
- [wreck](https://npm.io/package/wreck.md) ^6.1.0
- [stripe](https://npm.io/package/stripe.md) ^3.7.0
- [bluebird](https://npm.io/package/bluebird.md) ^2.9.34

## Recent versions

- 1.0.0 (latest) — 2015-08-05

## README

# hapi-stripe-webhooks

[![Build Status](https://circleci.com/gh/christophercliff/hapi-stripe-webhooks.svg?style=shield)](https://circleci.com/gh/christophercliff/hapi-stripe-webhooks) [![Coverage Status](https://coveralls.io/repos/christophercliff/hapi-stripe-webhooks/badge.svg?branch=master&service=github)](https://coveralls.io/github/christophercliff/hapi-stripe-webhooks?branch=master)

A [Hapi](http://hapijs.com/) plugin for receiving notifications from the [Stripe webhooks API](https://stripe.com/docs/webhooks).

## Installation

```
npm install hapi-stripe-webhooks
```

## Usage

```js
var StripeWebhooks = require('hapi-stripe-webhooks')

server.register({
  register: StripeWebhooks,
  options: options,
})
```

### **`options`** `Object`

- **`onNotification`** `Function`

    The callback to be invoked when a notification is received. The function has the signature `function (payload) {}`. Required.

- **`path`** `String`

    The path to listen on. Default `'/'`.

- **`stripeSecretKey`** `String`

    The [Stripe secret key](https://support.stripe.com/questions/where-do-i-find-my-api-keys). Required.

## Tests

```
$ npm test
```

## License

See [LICENSE](https://github.com/christophercliff/hapi-stripe-webhooks/blob/master/LICENSE.md).

---
_Source: https://npm.io/package/hapi-stripe-webhooks · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
