Enable Dark Mode!
paypal-configuration-in-odoo.jpg
By: Ajmal JK

Paypal Configuration in Odoo

Technical Accounting

Odoo ERP encompasses the numerous number of built-in payment acquirers like Paypal, Buckaroo, Ingenico, Adyen and more. To use these acquirers,  firstly one needs to set some configurations in the Odoo ERP and also some settings within the acquirer.


In this session, one can see how to configure Paypal in Odoo.

 

Firstly,  create a business account in Paypal (https://www.paypal.com/)

 

Before the end user proceeds to configure the original Paypal account, he can check whether the payment flow is in the correct way via configuring a test Paypal account.

 

Before we proceed with the main, let me introduce you on how to configure a test Paypal account.

 

The configuration of Test (Sandbox) Paypal account :

 

We already created an account in PayPal.Using this details Login to the Developer Site (https://developer.paypal.com/) of Paypal. Go to Sandbox -> Accounts.


paypal configuration in odoo-cybrosys

Here we will get two sandbox accounts.

One Business or Merchant account.
Eg: my.account-facilitator@mymail.com

One personal account.
Eg: my.account-buyer@maymail.com

We can use the business account to configure in Odoo and the personal account can be used to make the payments.

To connect with Paypal, the end user has to set three details in the Odoo configuration form.
a) Paypal Email Id
b) Paypal Merchant Id
c) Paypal PDT Token

Under Odoo, Go to Invoicing -> Payments -> Payment Acquirers -> Paypal

paypal configuration in odoo-cybrosys

We have to set the ‘Environment’ to ‘Test’ to use the Sandbox account of Paypal. Also, click the ‘Publish’ button to avail Paypal on the website.

To get the three configuration details mentioned earlier login to the Paypal Sandbox by using the business account (Here it is my.account-facilitator@mymail.com).

Go to My Profile -> Business Information to get the Paypal Email Id and Paypal Merchant Id.

paypal configuration in odoo-cybrosys

Go to Selling Tools -> Website Preferences and Turn on the Auto return option and give the return URL.

paypal configuration in odoo-cybrosys

The return URL should use the correct protocol (HTTP/HTTPS). It is given to return the browser control to a specific page of our Odoo instance,  after successful payment from the Paypal. It should be like,

https://<your_odoo_instance_url>/shop/confirmation

paypal configuration in odoo-cybrosys

While turning on the Payment data transfer option, the end user will get the Paypal PDT Token. The Return URL should be turned on to active for the payment data transfer getting the access token.

paypal configuration in odoo-cybrosys

We get all the details to configure the Paypal. Now get back to the profile and go to the Instant payment notifications option in the Selling Tools menu.

paypal configuration in odoo-cybrosys

Give the Notification URL and check the ‘Receive IPN messages’ option. The notification URL should be like,

https://<your_odoo_instance_url>/payment/paypal/ipn


paypal configuration in odoo-cybrosys

Turning on this notification will allow integrating the payment notifications of Paypal with our odoo website after the payment. 

At last, we have to change the encoding format of the payment.G et back to Selling tools and select the Paypal button language encoding. Set the encoding type UTF-8.

paypal configuration in odoo-cybrosys

After successful testing one can configure the original Paypal account like this. Also, set the Environment to ‘Production’ in odoo Paypal settings. 


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



3
Comments

Fabrone

is this method still okay on odoo 16?

28/05/2023

-

3:15PM

Shivam D Sah

Follow all the above steps but when I redirect to the payment page is is showing "Things don't appear to be working at the moment. Please try again later."

27/03/2019

-

12:54AM

RSoft Technologies

That was an insanely valuable blog post! Please keep and continue your good work ,Keep posting these type of interesting articles.This post is very helpful.I have been examinating out some of your articles and it’s pretty clever stuff.I need to thank you for this wonderful Article and aslo Thanks for this valuable information and all the guidelines you provided.

13/02/2019

-

12:37AM



Leave a comment



whatsapp
location

Calicut

Cybrosys Technologies Pvt. Ltd.
Neospace, Kinfra Techno Park
Kakkancherry, Calicut
Kerala, India - 673635

location

Kochi

Cybrosys Technologies Pvt. Ltd.
1st Floor, Thapasya Building,
Infopark, Kakkanad,
Kochi, India - 682030.

location

Bangalore

Cybrosys Techno Solutions
The Estate, 8th Floor,
Dickenson Road,
Bangalore, India - 560042

Send Us A Message