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
braintreegem to the project’s Gemfile and runbundle installto install it.