Search⌘ K

Server Setup for Braintree

Explore the process of setting up the Braintree server by installing and configuring server-side SDKs. Understand how to generate client tokens, handle payment method nonces, and create transactions securely using API credentials. This lesson helps you build the server workflow essential for accepting online payments.

Braintree provides us with server-side SDKs in different languages such as Java, PHP, Python, Ruby, etc. These SDKs allow us to integrate Braintree functionality at our back-end.

Setup

The first step of integrating Braintree at our server is to install and configure the Braintree server-side SDK. In this lesson, we will be looking into examples of Python, Node, and Ruby SDKs.

Installation

First of all, we need to install the Braintree server-side SDK. The installation commands for different SDKs are given below.

Note: For Ruby, add the braintree gem to the project’s Gemfile and run bundle install to install it.

Python
Node
Ruby
pip install braintree
Installing Braintree

Configuration

...