We recently completed a project for a customer processing distributions from Braintree using Node.js on the IBM i.
This application is available as open source at www.bvstools.com through bitbucket.
This application right now is only set up to process distributions and write information to Physical Files on the IBM i. A save file with the library/objects/source for the files is also included in the open source repository.
There is also a shell for a Subscription Charged Normally webhook.
All webhooks will be logged in a Physical File, and any data pertinent to the webhook will be logged in the appropriate files.
For distributions, all transactions for the distribution are logged first, and lastly a distribution record is written to a Physical File. This is done last so that you can add a trigger to the file to signal the start of processing for the set of records.
Any questions, don't hesitate to contact us. Thanks!