GithubHelp home page GithubHelp logo

dwolla / webhook-receiver Goto Github PK

View Code? Open in Web Editor NEW
16.0 18.0 4.0 499 KB

Sample application to receive, authenticate, and queue Dwolla webhooks, using AWS Lambda and SQS.

Home Page: https://developers.dwolla.com/

License: MIT License

JavaScript 11.67% TypeScript 84.56% Shell 3.77%
dwolla dwolla-v2 webhooks lambda serverless

webhook-receiver's Introduction

Dwolla Webhook Receiver

This sample TypeScript application demonstrates how to create a webhook subscription for Dwolla events, deployed to AWS via Lambda function.

Setup

This app deploys a webhook handler as an AWS Lambda function using the Serverless Framework. You can deploy one to your AWS account(s) as follows:

NOTE: Any pnpm command can be replaced with npm.

  1. Clone the repository and install dependencies with pnpm install
  2. Rename .env.example to .env, and update the environment variables
  3. Run pnpm sls:deploy to create the Lambda functions. After they deploy, a publicly accessible HTTP endpoint is logged to the console as endpoint. Copy and paste it into the URL variable in scripts/one-time-setup.ts
  4. Run pnpm hook:setup to create your Webhook Subscription
  5. Run pnpm hook:create-customer to create a customer in Dwolla's API
  6. Check your webhook function's logs by running pnpm sls:logs:webhook. You should see a message indicating that the webhook has been moved to your SQS queue for processing.
  7. Check your SQS function's logs by running pnpm sls:logs:queue. You should see the contents of the webhook after it has been parsed.
  8. [Optional] To remove the resources in AWS, run pnpm sls:remove

webhook-receiver's People

Contributors

dependabot[bot] avatar jcoon97 avatar lochnesh avatar tarricsookdeo avatar therockstorm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.