PayPal¶
Paypal is an American online payment provider available worldwide and one of the few that does not charge a subscription fee.
Nota
Aunque PayPal está disponible en más de 200 países y regiones, solo unas cuantas divisas son compatibles.
Configuration in PayPal¶
Click Apps & Credentials and click Create App.
Enter an App Name and click Create App.
Copy the Client ID and Secret and save them for later.
Importante
If you use customer names or addresses that include accented or non-Latin characters, you must configure the encoding format of the payment request sent by Odoo to PayPal to avoid transaction failures without notice. To do so, access the PayPal button language encoding setting, click More Options, and set the Encoding field to UTF-8.
If you are trying PayPal as a test, access your PayPal Sandbox account and configure the encoding format for your sandbox account.
Truco
For encrypted website payments & EWP_SETTINGS errors, please check the PayPal documentation.
Configuración en Odoo¶
In the Credentials tab, enter the Email linked to your PayPal account, then fill in the Client ID and Client Secret fields with the values you saved at the step Configuration in PayPal.
Click Generate your webhook to create the Webhook ID.
Set the State field to Enabled, and make sure the PayPal payment provider is Published.
Configure the remaining options as desired.
Prueba¶
PayPal provides two sandbox accounts that you can use to simulate live transactions:
A business account (to use as the merchant account, e.g.,
ab-1abc12345678@business.example.com
);A default personal account (to use as the shopper account, e.g.,
ba-9cba87654321@personal.example.com
).
To test the PayPal payment workflow in Odoo:
Log into the Paypal Developer Site using your PayPal credentials and go to .
Click the (ellipsis) icon next to the sandbox business account and select View/Edit account.
Copy the Email, Client ID, and Secret and save them for the next step.
In Odoo, configure the PayPal payment provider with the values saved at the previous step and set the State field to Test Mode.
You can then run a test transaction from Odoo using the sandbox personal account.
Ver también