@neighbourhoodie/nh-hapi-stripe-webhooks

1.3.0 • Public • Published

The Neighbourhoodie Hapi Stripe webhooks

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

Stripe can send webhook events that notify your application any time an event happens on your account. The webhooks endpoint will need to authenticate webhooks as per stripe docs.

Installation

npm install @neighbourhoodie/nh-hapi-stripe-webhooks

Usage

server.register({
  register: plugin('@neighbourhoodie/nh-hapi-stripe-webhooks'),
  options: {
    stripeApiKey: 'i_like_broccoli',
    stripeWebhookSecret: 'and_i_dont_lie',
    endpoint: '/webhook',
    webhookHandlers: {
      'stripe.event': callBack
    },
    auth: { strategy: 'session', scope: ['ADMIN'] } // optional, default: false
})

Where Do I find my Stripe API key?

How do I add the webhook endpoint to my stripe dashboard?

Which available stripe events are there?

Readme

Keywords

none

Package Sidebar

Install

npm i @neighbourhoodie/nh-hapi-stripe-webhooks

Weekly Downloads

6

Version

1.3.0

License

ISC

Unpacked Size

10.8 kB

Total Files

5

Last publish

Collaborators

  • jcoglan
  • albaherreriasdev
  • jan
  • realtin
  • espy
  • hulkoba
  • wohali
  • ayhamthemayhem
  • mokou
  • ninette