Packaging and Publishing
Availability
We're building functions with the same proven expertise and rock solid foundations you expect from
Braintree. Take a look at our documentation preview to get a jump start on what you'll make with
functions. Email
functions-requests@braintreepayments.com
to learn more.
Package Your Function
To package your function, define a few more pieces of metadata within you function's configuration.
Use our CLI to go through an interactive prompt to set the metadata about your package.
- bash
$ btfns package .
> Name: MyPublicFunction
> Developer Website: https://yourwebsite.com
> Support E-mail: support@yourwebsite.com
> Description: My function.
> Logo: /path/to/logo.pngNote
Publish to Braintree
- bash
$ btfns publish . -v 1.0.0
Publishing MyPublicFunction @ 1.0.0 to https://btfns.co
...
> Success .... https://btfns.co/user/MyPublicFunction