Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

hapi-stripe-webhooks

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

hapi-stripe-webhooks

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

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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.

Keywords

hapi

FAQs

Package last updated on 05 Aug 2015

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