An open API service indexing awesome lists of open source software.

https://github.com/sodiray/exo-use-stripe-webhook

Exobase hook that will verify, validate, and parse incoming webhook request from Stripe
https://github.com/sodiray/exo-use-stripe-webhook

Last synced: 7 months ago
JSON representation

Exobase hook that will verify, validate, and parse incoming webhook request from Stripe

Awesome Lists containing this project

README

          

# `exo-use-stripe-webhook`

> Exobase hook that will verify, validate, and parse incoming webhook request from Stripe

## Install

```
yarn add exo-use-stripe-webhook
```

## Usage

```ts
import _ from 'radash'
import { useStripeWebhook, StripeWebhookArgs } from 'exo-use-stripe-webhook'
import type { Props } from '@exobase/core'

async function handleStripeEvent({ args }: Props) {
console.log('type: ', args.type)
console.log('payload: ', JSON.stringify(args.payload))
}

export default _.compose(
useLambda(),
useStripeWebhook(''),
handleStripeEvent
)
```