This sample app shows how to create a Dwolla Webhook Subscription and verify its signature. See the Documentation for more details.
- Clone the repository and install dependencies with
- Export environment variables for your Dwolla Sandbox
WEBHOOK_SECRET. If you're not sure what these are, start here. The
WEBHOOK_SECRETis explained here.
npm run deployto create the Lambda function. After the deploy, a publicly accessible HTTP endpoint is logged to the console as
ServiceEndpoint. Copy and paste it into the
npm run setupto create your Webhook Subscription
npm run create-customerto create a customer in Dwolla's API
- Check your Lambda function's logs for
Received customer_created, body=...with
npm run logs(you may have to wait ~15 seconds). It's working!
- [Optional] To remove the resources in AWS,
npm run remove