-
Notifications
You must be signed in to change notification settings - Fork 0
Testing Plaid Webhooks
tom meagher edited this page May 2, 2019
·
2 revisions
Install and run ngrok:
> brew cask install ngrok
> ngrok http 8000
ngrok by @inconshreveable (Ctrl+C to quit)
Session Status online
Account tom (Plan: Free)
Version 2.2.8
Region United States (us)
Web Interface <http://127.0.0.1:4040>
Forwarding <http://ea1774d9.ngrok.io> -> localhost:8000
Forwarding <https://ea1774d9.ngrok.io> -> localhost:8000
Add the ngrok id to the REACT_APP_NGROK_ID environment variable in docker-compose.yml (in this case ea1774d9). Kill and restart docker containers.
Start a local django server running on port 8000 to receive requests from ngrok. Now any webhook coming from Plaid will forward through ngrok (http://ea1774d9.ngrok.io) to localhost:8000.
> cd api
> pyenv activate budget
(budget) > python manage.py runserver
Performing system checks...
System check identified no issues (0 silenced).
March 24, 2019 - 16:41:51
Django version 2.0.10, using settings 'server.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
curl \
-H "Content-Type: application/json" \
-d '{"access_token":"access-sandbox-015cc319-d6aa-4b8b-b7d7-ac3021e10b12","client_id":"5b9b1df23753c200123c462c","secret":"5ea62a857d2361935813250eb7ed3c"}' \
https://sandbox.plaid.com/sandbox/item/reset_login