A Hapi plugin for receiving notifications from the Stripe webhooks API.
npm install hapi-stripe-webhooks
var StripeWebhooks = require('hapi-stripe-webhooks')
server.register({
register: StripeWebhooks,
options: options,
})
-
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.
$ npm test
See LICENSE.