Demo App

See https://github.com/LoopCrypto/loop-demo-apparrow-up-right for an example of how to integrate with our webhook and perform actions accordingly using the Loop SDK.

handler.js

handler.jsarrow-up-right 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.jsarrow-up-right 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.jsarrow-up-right handles the TransferProcessed webhook. The example will log the transfer if it is successful, and do one retry request if the transfer failed.

Last updated