Build with
GraphQL
Resources and tools to integrate with Braintree’s GraphQL API.
Start here
These guides cover some of the core concepts and tools you'll need to begin building your integration.
GraphQL & Relay
Quick dive into how the GraphQL API works
Payment API concepts
How our API models payments
Making API calls
Build and authenticate requests
Create a sandbox account
Get API keys and start using the Explorer
Explore the API
Integration guides provide more domain context and should be used along with the API Reference and the API Explorer to implement your solution.
See all the guidesSet up your client
Get authorization for the client SDK to collect payment info
See the guide
mutation ExampleClientToken {
createClientToken {
clientToken
}
}
PreviewCreate a transaction
Charge a payment method to create a transaction
See the guide
mutation ExampleCharge($input: ChargePaymentMethodInput!) {
chargePaymentMethod(input: $input) {
transaction {
id
status
}
}
}
PreviewVault a payment method
Store a payment method for future use
See the guide
mutation ExampleVaultWithTypeFragment($input: VaultPaymentMethodInput!) {
vaultPaymentMethod(input: $input) {
paymentMethod {
id
usage
details {
__typename
... on CreditCardDetails {
cardholderName
}
... on PayPalAccountDetails {
payerId
}
... on VenmoAccountDetails {
username
}
... on UsBankAccountDetails {
accountholderName
}
}
}
verification {
status
}
}
}
PreviewStart with an example
We've created an application with an end-to-end Braintree integration using the GraphQL API and the Drop-in UI.
Braintree GraphQL Example in RailsLooking for more developer documentation?
These docs are specifically for our GraphQL API. You can find information about our client and server SDKs as well as other products and features in our SDK docs.
SDK documentation