1.3.0 • Published 4 years ago

@neighbourhoodie/nh-hapi-stripe-webhooks v1.3.0

Weekly downloads
20
License
ISC
Repository
github
Last release
4 years ago

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?

1.3.0

4 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago