Demo App
See https://github.com/LoopCrypto/loop-demo-app for an example of how to integrate with our webhook and perform actions accordingly using the Loop SDK.
handler.js
[handler.js](https://github.com/LoopCrypto/loop-demo-app/blob/main/src/handler.js) is the main entry point of the app, which will validate the webhook, do some basic error checks, and handles the webhook based on the different webhook types.
signup.js
[signup.js](https://github.com/LoopCrypto/loop-demo-app/blob/main/src/signup.js) handles the AgreementSignedUp webhook. The example code will send out the initial transfer request, plus 5 subsequent transfer requests based on the item's frequency configuration.
transfer-processed.js
[transfer-processed.js](https://github.com/LoopCrypto/loop-demo-app/blob/main/src/transfer-processed.js) handles the TransferProcessed webhook. The example will log the transfer if it is successful, and do one retry request if the transfer failed.Updated 2 months ago