Paypal is an American online payment provider available worldwide, and one of the few that does not charge a subscription fee.
Settings in PayPal¶
To access your PayPal account settings, log into PayPal, open the Account Settings, and open the Website payments menu.
The Auto Return feature automatically redirects customers to Odoo once the payment is processed.
From Website payments, go to and select On. Enter the address of your
Odoo database (e.g.,
https://yourcompany.odoo.com) in the Return URL field, and
Any URL does the job. Odoo only needs the setting to be enabled since it uses another URL.
Payment Data Transfer (PDT)¶
PDT allows to receive payment confirmations, displays the payment status to the customers, and verifies the authenticity of the payments. From Payment data transfer and select On., scroll down to
Instant Payment Notification (IPN)¶
IPN is similar to PDT, but allows for more notifications, such as chargeback notifications. To enable IPN, go to Choose IPN settings. Enter a Notification URL, select Receive IPN messages (Enabled), and Save.and click
PayPal Account Optional¶
We advise not to prompt customers to log in with a PayPal account upon payment. It is better and more accessible for customers to pay with a debit/credit card. To disable that prompt, go to On for PayPal account optional.and select
Payment Messages Format¶
If you use accented characters (or anything other than primary Latin characters) for customer names or addresses, then you must configure the encoding format of the payment request sent by Odoo to PayPal. If you do not, some transactions fail without notice.
To do so, go to your production account. Then, click More Options and set the two default encoding formats as UTF-8.
Settings in Odoo¶
Odoo needs your API Credentials to connect with your PayPal account. To do so, go to Activate PayPal. Then, enter your PayPal account credentials in the Credentials tab:and
Email: the login email address in Paypal;
PDT Identity Token: the key used to verify the authenticity of transactions;
Use IPN: enable for PayPal to work properly in Odoo.
Save the PDT Identity Token for later use.
The PayPal Merchant ID is not required in Odoo.
If you are trying PayPal as a test, using a PayPal Sandbox account, change the State to Test Mode. We recommend doing this on a test Odoo database rather than on your main database.
You can charge extra fees to customers choosing to pay with PayPal in order to cover the transaction fees PayPal charges you.
Thanks to PayPal sandbox accounts, you can test the entire payment flow in Odoo.
Log into the Paypal Developer Site using your PayPal credentials, which creates two sandbox accounts:
A business account (to use as merchants, e.g., email@example.com);
A default personal account (to use as shoppers, e.g., firstname.lastname@example.org).
Log into PayPal sandbox using the merchant account and follow the same configuration instructions. Enter your sandbox credentials in Odoo (Credentials tab, and make sure the status is set on Test Mode. We recommend doing this on a test Odoo database rather than your main database.in the
Run a test transaction from Odoo using the sandbox personal account.