1.0.0 • Published 10 years ago
hapi-stripe-webhooks v1.0.0
hapi-stripe-webhooks
A Hapi plugin for receiving notifications from the Stripe webhooks API.
Installation
npm install hapi-stripe-webhooksUsage
var StripeWebhooks = require('hapi-stripe-webhooks')
server.register({
register: StripeWebhooks,
options: options,
})options Object
onNotificationFunctionThe callback to be invoked when a notification is received. The function has the signature
function (payload) {}. Required.pathStringThe path to listen on. Default
'/'.stripeSecretKeyStringThe Stripe secret key. Required.
Tests
$ npm testLicense
See LICENSE.
1.0.0
10 years ago