What’s supported

Supported actions

This connector supports:

  • Proxy Actions, using the base URL https://payments.sandbox.braintree-api.com/graphql.

Example integration

To define an integration for Braintree, create a manifest file that looks like this:

# amp.yaml
specVersion: 1.0.0
integrations:
  - name: braintree-integration
    displayName: My Braintree Integration
    provider: braintree
    proxy:
      enabled: true

Before you get started

Click here for detailed information about finding and generating your API credentials (Public Key, Private Key, and Merchant ID) in Braintree.

Note: Make sure you’re using the correct environment (Sandbox or Production) credentials.

Using the connector

This connector uses Basic Auth, which means that you do not need to set up a Provider App before getting started. (Provider apps are only required for providers that use OAuth2 Authorization Code grant type.)

To start integrating with Braintree:

  • Create a manifest file like the example above.
  • Deploy it using the amp CLI.
  • Embed the InstallIntegration UI component. The UI component will prompt the customer for their API credentials.
  • Start making Proxy Calls, and Ampersand will automatically attach the correct Basic Auth headers to your requests.

For detailed information about available GraphQL queries and mutations, refer to the Braintree API Reference.