hapi-stripe-webhooks

1.0.0 • Public • Published

hapi-stripe-webhooks

Build Status Coverage Status

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

Installation

npm install hapi-stripe-webhooks

Usage

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. Required.

Tests

$ npm test

License

See LICENSE.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i hapi-stripe-webhooks

Weekly Downloads

2

Version

1.0.0

License

none

Last publish

Collaborators

  • christophercliff