= Braintree Component
:doctitle: Braintree
:shortname: braintree
:artifactid: camel-braintree
:description: Process payments using Braintree Payments.
:since: 2.17
:supportlevel: Stable
:tabs-sync-option:
:component-header: Only producer is supported
//Manually maintained attributes
:camel-spring-boot-name: braintree

*Since Camel {since}*

*{component-header}*

The Braintree component provides access to
https://www.braintreepayments.com/[Braintree Payments] through their https://developers.braintreepayments.com/start/hello-server/java[Java SDK].

All client applications need API credential to process payments.
To use camel-braintree with your account, you'll need to create a new https://www.braintreepayments.com/get-started[Sandbox] or https://www.braintreepayments.com/signup[Production]
account.


Maven users will need to add the following dependency to their pom.xml
for this component:

[source,xml]
--------------------------------------------
<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-braintree</artifactId>
    <version>${camel-version}</version>
</dependency>
--------------------------------------------


// component options: START
include::partial$component-configure-options.adoc[]
include::partial$component-endpoint-options.adoc[]
include::partial$component-endpoint-headers.adoc[]
// component options: END

[NOTE]
====
This is an API-based component, so per-call parameters can be supplied through `Camel`-prefixed
exchange headers in addition to the endpoint options. If the route consumes messages from untrusted
producers, strip these internal headers at the trust boundary -- for example with
`removeHeaders("Camel*")` -- before the message reaches this component, so that a sender cannot
override the API call. See xref:manual::security-model.adoc[the Camel security model] for details.
====

== Examples

[source,java]
----
from("direct://GENERATE")
    .to("braintree://sclientToken/generate");
----

== More Information

For more information on the endpoints and options see Braintree
references at https://developers.braintreepayments.com/reference/overview[https://developers.braintreepayments.com/reference/overview]



include::spring-boot:partial$starter.adoc[]
