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
- Host: GitHub
- URL: https://github.com/sodiray/exo-use-stripe-webhook
- Owner: sodiray
- Created: 2021-12-22T09:42:43.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-22T09:43:13.000Z (almost 4 years ago)
- Last Synced: 2025-01-30T05:27:22.418Z (8 months ago)
- Language: TypeScript
- Size: 48.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
)
```