PayPal

Paypal is an American online payment provider available worldwide and one of the few that does not charge a subscription fee.

Ghi chú

While PayPal is available in over 200 countries/regions, only a selection of currencies are supported.

Configuration in PayPal

  1. Log into your PayPal Developer Dashboard.

  2. Click Apps & Credentials and click Create App.

  3. Enter an App Name and click Create App.

  4. Copy the Client ID and Secret and save them for later.

Quan trọng

Nếu bạn sử dụng tên hoặc địa chỉ khách hàng có chứa ký tự có dấu hoặc không phải Latin, bạn phải cấu hình định dạng mã hóa của yêu cầu thanh toán mà Odoo gửi đến PayPal để tránh giao dịch thất bại mà không có thông báo. Để thực hiện, hãy truy cập cài đặt mã hóa ngôn ngữ nút PayPal, nhấp Tùy chọn khác và đặt trường Mã hóa thành UTF-8.

If you are trying PayPal as a test, access your PayPal Sandbox account and configure the encoding format for your sandbox account.

Mẹo

For encrypted website payments & EWP_SETTINGS errors, please check the PayPal documentation.

Cấu hình trong Odoo

  1. Navigate to the payment provider PayPal.

  2. 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.

  3. Click Generate your webhook to create the Webhook ID.

  4. Set the State field to Enabled, and make sure the PayPal payment provider is Published.

  5. Configure the remaining options as desired.

Kiểm tra

PayPal provides two sandbox accounts that you can use to simulate live transactions:

To test the PayPal payment workflow in Odoo:

  1. Log into the Paypal Developer Site using your PayPal credentials and go to Testing Tools ‣ Sandbox Accounts.

  2. Click the (ellipsis) icon next to the sandbox business account and select View/Edit account.

  3. Copy the Email, Client ID, and Secret and save them for the next step.

  4. 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.