Socket
Socket
Sign inDemoInstall

@neighbourhoodie/nh-hapi-stripe-webhooks

Package Overview
Dependencies
21
Maintainers
12
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @neighbourhoodie/nh-hapi-stripe-webhooks

A stripe webhooks endpoint


Version published
Weekly downloads
1
decreased by-92.86%
Maintainers
12
Install size
1.02 MB
Created
Weekly downloads
 

Readme

Source

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?

FAQs

Last updated on 07 Sep 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc