Welcome to Braintree's Android SDK. This library will help you accept card and alternative payments in your Android app.
📣 A new major version of the SDK is now available. See the v4.9.0+ migration guide for details.
The Braintree SDK supports Android API 21 and above.
The PayPalNativeCheckout module supports Android API 23 and above.
The Braintree SDK requires Java 8 as of version 4.24.0. See the CHANGELOG for more details. The Braintree SDK uses Kotlin 1.7.
The features of the Braintree SDK are organized into modules that can be imported as dependencies in your build.gradle
file.
See the Migration Guide for specific dependencies required for each module.
For an integration offering card payments, add the following dependency in your build.gradle
:
dependencies {
implementation 'com.braintreepayments.api:card:4.40.0'
}
To preview the latest work in progress builds, add the following SNAPSHOT dependency in your build.gradle
:
dependencies {
implementation 'com.braintreepayments.api:card:4.40.1-SNAPSHOT'
}
You will also need to add the Sonatype snapshots repo to your top-level build.gradle
to import SNAPSHOT builds:
allprojects {
repositories {
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
}
Start with 'Hello, Client!' for instructions on basic setup and usage.
Next, read the full documentation for information about integration options, such as Drop-In UI, PayPal and credit card tokenization.
This SDK abides by our Client SDK Deprecation Policy. For more information on the potential statuses of an SDK check our developer docs.
Major version number | Status | Released | Deprecated | Unsupported |
---|---|---|---|---|
4.x.x | Active | June 2021 | TBA | TBA |
3.x.x | Deprecated | February 2019 | June 2022 | June 2023 |
2.x.x | Unsupported | November 2015 | March 2020 | March 2021 |
Versions 2.7.3 and below use outdated SSL certificates and are unsupported.
- Read the docs
- Check out the reference docs
- Find a bug? Open an issue
- Want to contribute? Check out contributing guidelines and submit a pull request.
The Braintree Android SDK is in active development. We welcome your feedback!
Here are a few ways to get in touch:
- GitHub Issues - For generally applicable issues and feedback
- Braintree Support / [email protected] - for personal support at any phase of integration
The Braintree Android SDK is open source and available under the MIT license. See the LICENSE file for more info.