Overview

Functions opens the Braintree API to execute code that you provide. The code could execute payment authorizations for payment methods we don't natively accept, send transactions to your accounting systems, get a fraud score from a vendor you use, or some custom workflow unique to you.

How Functions WorksAnchorIcon

We've defined triggers within the Braintree ecosystem that can execute code you've uploaded to the Braintree platform. The code you provide is responsible for interacting with partners and vendors your business works with. In some cases you'll need to map the response from a vendor to Braintree.

ExampleAnchorIcon

Fraud ServicesAnchorIcon
Use functions to run all your payments through a fraud service. functions,fraud,services

ExampleAnchorIcon

Custom PaymentsAnchorIcon
Use functions to initiate complex workflows with third-parties such as Twilio to take payment information over the phone. functions,phone,order
Works with your existing integrationAnchorIcon
With functions, you can take advantage of your existing Braintree integration.

Next StepsAnchorIcon

  1. Download Our CLI Tool
  2. Accept a New Payment Method
  3. Act on a Fraud Score From a Vendor
  4. Stream Data to Another System
  5. Import Data
  6. Advanced Topics
  7. Packaging and Publishing