How to add a custom node package to Creator?
I'm attempting to call the Braintree API through Zoho creator by making a custom function in NodeJS. In order to run this code, I need to install the Braintree node package but I can't seem to figure out how to do that. I can upload files but not entire folders (which is what I would need to do). So, is there a way that I can install the Braintree package in order to use the API?
- module.exports = async function (context, basicIO )
- {
- const braintree = require('braintree');
- const gateway = new braintree.BraintreeGateway({
- environment: braintree.Environment.Sandbox,
- merchantId: 'ID',
- publicKey: 'key',
- privateKey: 'key'
- });
- }