Enable Dark Mode!
complete-guide-to-setting-up-braintree-payment-gateway-in-odoo-19.jpg
By: Sanjay P

Complete Guide to Setting Up Braintree Payment Gateway in Odoo 19

Technical Odoo 19 Odoo Apps

In today's competitive eCommerce market, it is vital to give your customers a safe and dependable payment option that will lead to increased conversions. Braintree, which is a PayPal product, is among the best payment gateways, which allows merchants to process credit cards, debit cards, PayPal payments, and other modern payment options on one platform.

Braintree Payment Gateway for Odoo 19 integrates Odoo and Braintree, which allows customers to make payments securely without departing from the shop where they were shopping. This plugin also provides an additional step for OTP email verification before confirmation of the payment so that even unauthorized payments are prevented.

In this tutorial, we will show the whole process of setting up the payment system, starting from acquiring API credentials on Braintree and finishing with successful payment processing on Odoo.

Key Features

  • Secure integration between Odoo 19 and Braintree.
  • Making payments by credit and debit cards instantly on the Odoo website.
  • Support for testing and real transactions in Sandbox and Production mode.
  • OTP email verification before payment authorization.
  • Customers have the option to save their payment details securely.
  • Providing an easy payment process with hosted payment fields.
  • Automatic payment confirmation in Odoo.
  • Configuring the payment solution without custom development needed.

Prerequisites

Make sure you have the following prerequisites before setting up the payment gateway:

  • The Braintree Payment Gateway module is installed.
  • A Braintree Sandbox or Production account.
  • API credentials (Merchant ID, Public Key, and Private Key).
  • Odoo is configured with an outgoing Mail server to guarantee OTP email functionality.

Step 1: Log in to Your Braintree Account

Begin by logging in to your Braintree account.

Complete Guide to Setting Up Braintree Payment Gateway in Odoo 19-cybrosys

Step 2: Open the API Settings

After logging in, click the Settings icon and navigate to API.

This page provides access to your API credentials, webhook settings, and security configuration.

Complete Guide to Setting Up Braintree Payment Gateway in Odoo 19-cybrosys

Step 3: Generate API Credentials

Open the Keys section.

If API keys do not already exist, click Generate New API Key.

These credentials will later be used inside Odoo.

Complete Guide to Setting Up Braintree Payment Gateway in Odoo 19-cybrosys

Step 4: Copy the Merchant Credentials

Once generated, copy the following information:

  • Merchant ID
  • Public Key
  • Private Key

These credentials establish secure communication between Odoo and Braintree.

Complete Guide to Setting Up Braintree Payment Gateway in Odoo 19-cybrosys

Step 5: Configure the Braintree Payment Provider in Odoo

Navigate to:

Invoicing > Configuration > Payment Providers

Open Braintree and configure the provider.

Fill in:

  • Merchant ID
  • Public Key
  • Private Key

Choose the desired provider state:

  • Disabled
  • Test Mode
  • Enabled

For testing purposes, use Test Mode.

Complete Guide to Setting Up Braintree Payment Gateway in Odoo 19-cybrosys

Step 6: Configure the SMTP Mail Server

The OTP verification feature sends a one-time verification code to the customer's email address.

Configure an outgoing mail server by navigating to:

Settings > Technical > Email > Outgoing Mail Servers

Configure:

  • SMTP Server
  • Port
  • Username
  • Password
  • Encryption

Verify the connection before continuing.

Complete Guide to Setting Up Braintree Payment Gateway in Odoo 19-cybrosys

Step 7: Proceed to Website Checkout

Add the desired products to the shopping cart, then proceed to checkout.

During payment selection, choose Braintree as the payment method.

Customers can also enable the Save my payment details option for faster future checkouts.

Complete Guide to Setting Up Braintree Payment Gateway in Odoo 19-cybrosys

Step 8: Enter Card Information

After clicking Pay Now, the secure Braintree payment pop-up appears.

Enter:

  • Card Number
  • Expiration Date

The customer is also prompted to enter a verification email address.

Click Confirm & Send OTP.

Complete Guide to Setting Up Braintree Payment Gateway in Odoo 19-cybrosys

Step 9: Receive the Verification Code

The customer will receive a six-digit verification code at their registered email address.

Retrieve the code from the email inbox.

Complete Guide to Setting Up Braintree Payment Gateway in Odoo 19-cybrosys

Step 10: Verify the OTP and Complete Payment

Go back to the payment window to insert the verification code received.

After successful verification, the gateway sends a message that the OTP has been verified.

Click on the Pay Now button in order for a secure payment.

The extra layer of confirmation reduces the chances of unauthorized payment for merchants and customers.

Complete Guide to Setting Up Braintree Payment Gateway in Odoo 19-cybrosys

Step 11: Payment Confirmation

After successful payment processing, Odoo displays an order confirmation page showing that the payment has been completed successfully.

Customers can print the order confirmation directly from the website.

Complete Guide to Setting Up Braintree Payment Gateway in Odoo 19-cybrosys

Step 12: Verify the Transaction in Odoo

Navigate to:

Website > Payment Transactions

Open the newly created transaction.

Here you can verify:

  • Transaction Status
  • Payment Method
  • Provider
  • Provider Reference
  • Customer Information
  • Amount
  • Payment State

A Confirmed transaction status indicates that the payment was processed successfully.

Complete Guide to Setting Up Braintree Payment Gateway in Odoo 19-cybrosys

Reasons to opt for Braintree Payment Gateway in Odoo 19

Using Braintree with Odoo will provide you with the safest payment system applicable to businesses of any size. The combination of Braintree with PayPal technology makes it effortless for clients to buy goods, as Braintree provides the opportunity for smooth operations while selling.

The application of the new technology of One-Time Password guarantees that all operations with money using Braintree will be safe. Moreover, the Braintree payment service allows for testing the system in sandbox mode and then using the application without worries. 

There is no need to worry about the synchronization of the transaction process anymore.

Odoo 19 Braintree Payment Gateway makes it easy to incorporate one of the best-known payment systems into your Odoo eCommerce site. From obtaining API credentials and setting up the payment service to validating transfers securely by means of email OTP, you will find the whole procedure rather simple and secure.

Using this tutorial, you will be able to set up a reliable payment service that will help you increase consumer confidence, optimize payment activities, and improve the overall shopping process. You can either test the application in the test environment or accept payments in production mode.Using this tutorial, you will be able to set up a reliable payment service that will help you increase consumer confidence, optimize payment activities, and improve the overall shopping process. You can either test the application in the test environment or accept payments in production mode.

To read more about How to Connect Nextcloud with Odoo19 Using the Nextcloud Connector V19 refer to our blog How to Connect Nextcloud with Odoo19 Using the Nextcloud Connector V19.


Frequently Asked Questions

Does this module support both Sandbox and Production environments?

Yes. The module has Sandbox (Test Mode) and Production Mode features that allow testing of the payment flow before going live with transactions.

What credentials need to be obtained to configure Braintree with Odoo?

You must obtain your Merchant ID, Public Key, and Private Key from your Braintree account.

Why is outgoing mail server configuration needed?

Because the module sends a one-time password (OTP) to the customer’s email for the purpose of further verifying the payment before finishing the transaction.

Are the customers able to save their payment details?

Customers have the option to save their payment details during checkout for easier future purchases owing to the Braintree tokenization process.

If you need any assistance in odoo, we are online, please chat with us.



0
Comments



Leave a comment



WhatsApp