Welcome to Braintree's iOS SDK. This library will help you accept card and alternative payments in your iOS app.
The Braintree iOS SDK requires Xcode 10+. It permits a Deployment Target of iOS 8.0 or higher.
We recommend using either CocoaPods or Carthage to integrate the Braintree SDK with your project.
# Includes Cards and PayPal
pod 'Braintree'
# Optionally include additional Pods
pod 'Braintree/DataCollector'
pod 'Braintree/Venmo'
Note: If you are using version 4.x.x of the Braintree iOS SDK in Xcode 12, you may see the warning The iOS Simulator deployment target is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99
. This will not prevent your app from compiling. This is a CocoaPods issue with a known workaround.
Add github "braintree/braintree_ios"
to your Cartfile
, and add the frameworks to your project.
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.
A demo app is included in the project. To run it, run pod install
and then open Braintree.xcworkspace
in Xcode.
The Braintree iOS 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
- Read the headers
- Read the Braintree 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 iOS SDK is open source and available under the MIT license. See the LICENSE file for more info.