Thanh toán online

Odoo embeds several payment providers that allow your customers to pay online, on their customer portals, or on your eCommerce website. They can pay sales orders, invoices, or subscriptions with recurring payments using their favorite payment methods, such as credit cards.

Each payment provider is linked to a list of supported payment methods that can be (de)activated based on your needs.

Online payment form

Ghi chú

Các ứng dụng Odoo ủy quyền việc xử lý thông tin nhạy cảm cho nhà cung cấp dịch vụ thanh toán đã được chứng nhận, để bạn không cần lo lắng về việc tuân thủ PCI. Không có thông tin nhạy cảm nào (như số thẻ tín dụng) được lưu trữ trên máy chủ Odoo hoặc trong cơ sở dữ liệu Odoo được lưu trữ ở nơi khác. Thay vào đó, các ứng dụng Odoo sử dụng một mã tham chiếu duy nhất cho dữ liệu được lưu trữ an toàn trong hệ thống của nhà cung cấp dịch vụ thanh toán.

Supported payment providers

To access the supported payment providers, go to Accounting ‣ Configuration ‣ Payment Providers, Website ‣ Configuration ‣ Payment Providers, or Sales ‣ Configuration ‣ Payment Providers.

Online payment providers

Payment flow from

Token hoá

Thu hồi thủ công

Hoàn tiền

Thanh toán nhanh

Adyen

Odoo

Toàn bộ và một phần

Toàn bộ và một phần

Amazon Payment Services

Trang web của nhà cung cấp

AsiaPay

Trang web của nhà cung cấp

Authorize.Net

Odoo

Full only

Full only

Buckaroo

Trang web của nhà cung cấp

Flutterwave

Trang web của nhà cung cấp

Mercado Pago

Trang web của nhà cung cấp

Mollie

Trang web của nhà cung cấp

Nuvei

Trang web của nhà cung cấp

PayPal

Trang web của nhà cung cấp

Razorpay

Odoo

Full only

Toàn bộ và một phần

Stripe

Odoo

Full only

Toàn bộ và một phần

Worldline

Trang web của nhà cung cấp

Xendit

Odoo or the provider's website

Ghi chú

  • Each provider has its own specific configuration flow, depending on which feature is available.

  • Some of these online payment providers can also be added as bank accounts, but this is not the same process as adding them as payment providers. Payment providers allow customers to pay online, and bank accounts are added and configured in the Accounting app to do a bank reconciliation.

Mẹo

In addition to the regular payment providers that integrate with an API, such as Stripe, PayPal, or Adyen, Odoo bundles the Demo payment provider. This payment provider allows you to test business flows involving online payments. No credentials are required as the demo payments are dummy payments.

Bank payments

  • When selected, Odoo displays your payment information with a payment reference. You have to approve the payment manually once you have received it in your bank account.
  • Your customers can make a bank transfer to register a SEPA Direct Debit mandate and get their bank account charged directly.

Enabling a payment provider

To add a new payment provider and make its related payment methods available to your customers, proceed as follows:

  1. Go to the payment provider's website, create an account, and make sure you have the API credentials requested for third-party use. These are necessary for Odoo to communicate with the payment provider.

  2. In Odoo, navigate to the Payment providers by going to Accounting ‣ Configuration ‣ Payment Providers, Website ‣ Configuration ‣ Payment Providers, or Sales ‣ Configuration ‣ Payment Providers.

  3. Select the provider and configure the Credentials tab.

  4. Set the State field to Enabled.

Ghi chú

  • The fields available in the Credentials tab depend on the payment provider. Refer to the related documentation for more information.

  • Once you have enabled the payment provider, it is automatically published on your website. If you wish to unpublish it, click the Published button. Customers cannot make payments through an unpublished provider, but they can still manage (delete and assign to a subscription) their existing tokens linked to such a provider.

Chế độ kiểm tử

If you wish to try the payment provider as a test, set the State field in the payment provider form to Test mode, then enter your provider's test/sandbox credentials in the Credentials tab.

Ghi chú

By default, the payment provider remains unpublished in test mode so that it's not visible to visitors.

Cảnh báo

We recommend using the test mode on a duplicate or a test database to avoid potential issues with your invoice numbering.

Phương thức thanh toán

Mỗi nhà cung cấp dịch vụ thanh toán liên quan đến một danh sách các phương thức thanh toán được hỗ trợ; các phương thức được liệt kê trong trường Phương thức thanh toán tại tab Cấu hình của biểu mẫu nhà cung cấp dịch vụ thanh toán là những phương thức đã được kích hoạt. Để kích hoạt hoặc hủy kích hoạt một phương thức thanh toán cho nhà cung cấp, nhấp Kích hoạt phương thức thanh toán, sau đó nhấp nút bật/tắt của phương thức liên quan.

Mẹo

Payment methods are displayed on your website based on their sequence order. To reorder them, click Enable Payment Methods in the payment provider form, then, in the Payment Methods list, drag and drop the payment methods in the desired order.

Icons and brands

Các biểu tượng hiển thị bên cạnh phương thức thanh toán trên trang web của bạn là biểu tượng của các thương hiệu đã được kích hoạt cho phương thức thanh toán hoặc, nếu không có, là biểu tượng của chính phương thức thanh toán đó. Để chỉnh sửa chúng, hãy vào Kế toán ‣ Cấu hình ‣ Phương thức thanh toán, Trang web ‣ Cấu hình ‣ Phương thức thanh toán hoặc Bán hàng ‣ Cấu hình ‣ Phương thức thanh toán, sau đó nhấp vào phương thức thanh toán bạn muốn chỉnh sửa.

To modify a payment method's icon, hover your mouse over the image in the upper-right corner of the payment method's form and click the (pencil) icon.

Chọn tab Thương hiệu để xem các thương hiệu đã được kích hoạt cho phương thức thanh toán. Các thương hiệu và biểu tượng liên quan của chúng được hiển thị theo thứ tự sắp xếp; để thay đổi thứ tự, hãy kéo và thả chúng vào vị trí mong muốn. Để chỉnh sửa biểu tượng của một thương hiệu, chọn thương hiệu đó, sau đó, trong cửa sổ bật lên mở ra, di chuột qua hình ảnh ở góc trên bên phải và nhấp vào biểu tượng (bút chì).

Advanced configuration

To configure payment methods further, go to Accounting ‣ Configuration ‣ Payment Methods, Website ‣ Configuration ‣ Payment Methods or Sales ‣ Configuration ‣ Payment Methods. Click on the payment method, then activate the developer mode. Click the Configuration tab to adapt the features.

Nguy hiểm

  • Each payment method is preconfigured in a way that aligns with the payment providers' behavior and their integration with Odoo. Any change to this configuration may result in errors and should be tested on a duplicate or test database first.

  • Modifications to the payment method's configuration only work to the extent of the method's and provider's capabilities. For example, adding countries for a payment method only supported in one country or enabling tokenization for a method linked to a provider that does not support it will not produce the intended results.

Token hoá

If the payment provider supports this feature, customers can save their payment method details for later. To enable this feature, go to the Configuration tab of the selected payment provider and enable Allow Saving Payment Methods.

In this case, a payment token is created in Odoo to be used as a payment method for subsequent payments without the customer having to enter their payment method details again. This is particularly useful for the eCommerce conversion rate and subscriptions that use recurring payments.

Mẹo

To add or delete their saved payment method details, customers can click Manage payment methods in the customer portal.

PCI DSS and Attestation of Compliance

Odoo không được PCI chứng nhận DSS vì Odoo không lưu trữ dữ liệu chủ thẻ hoặc xử lý thanh toán. Thay vào đó, Odoo thuê các nhà cung cấp dịch vụ thanh toán bên ngoài để token hóa và thực hiện thanh toán. Điều này có nghĩa là nếu bạn là khách hàng của Odoo, bạn chỉ cần hoàn thành Bảng câu hỏi tự đánh giá (SAQ) tối thiểu với nhà cung cấp để có được Chứng nhận tuân thủ (AoC) và đạt tuân thủ PCI. Odoo không nên được đề cập là bên xử lý thanh toán hoặc nhà cung cấp dịch vụ bên thứ ba trong SAQ.

Manual capture

If the payment provider supports this feature, you can authorize and capture payments in two steps instead of one. To enable this feature, go to the Configuration tab of the selected payment provider and enable Capture Amount Manually.

When you authorize a payment, the funds are reserved on the customer's payment method but not immediately charged. They are charged when you manually capture the payment later on. You can also void the authorization to cancel it and release the reserved funds. Capturing payments manually is helpful in many situations:

  • Receive the payment confirmation and wait until the order is shipped to capture the payment.

  • Review and verify that orders are legitimate before the payment is completed and the fulfillment process starts.

  • Avoid potentially high refund fees for refunded payments: payment providers will not charge you for voiding an authorization.

  • Hold a security deposit to return later, minus any deductions (e.g., in case of damages).

To capture the payment after it was authorized, go to the related sales order or invoice and click the Capture Transaction button. To release the funds, click the Void Transaction button.

Ghi chú

  • Some payment providers support capturing only part of the authorized amount. The remaining amount can then be either captured or voided. These providers have the value Full and partial in the table above. The providers that only support capturing or voiding the total amount have the value Full only.

  • The funds are likely not reserved forever. After a certain time, they may be automatically released back to the customer's payment method. Refer to your payment provider's documentation for the exact reservation duration.

  • Odoo does not support this feature for all payment providers, but some allow the manual capture from their website interface.

Hoàn tiền

If your payment provider supports this feature, you can refund payments directly from Odoo. It does not need to be enabled first. To refund a customer payment, navigate to it and click the Refund button.

Ghi chú

  • Some payment providers support refunding only part of the amount. The remaining amount can then optionally be refunded, too. These providers have the value Full and partial in the table above. The providers that only support refunding the total amount have the value Full only.

  • Odoo does not support this feature for all payment providers, but some allow to refund payments from their website interface.

Thanh toán nhanh

Nếu nhà cung cấp dịch vụ thanh toán hỗ trợ tính năng này, bạn có thể cho phép khách hàng sử dụng các nút Google PayApple Pay để thanh toán đơn hàng Thương mại điện tử của họ chỉ với một cú nhấp chuột. Khi sử dụng một trong các nút này, khách hàng sẽ đi trực tiếp từ giỏ hàng đến trang xác nhận mà không cần điền thông tin liên hệ. Họ chỉ cần xác nhận thanh toán trên mẫu thanh toán của Google hoặc Apple.

To enable this feature, go to the Configuration tab of the selected payment provider and enable Allow Express Checkout.

Ghi chú

All prices shown on the express checkout payment form always include taxes.

Tình trạng còn hàng

You can adapt the payment provider's availability by specifying the Maximum amount allowed and modifying the Currencies and Countries in the Configuration tab.

Mẹo

Để hiển thị báo cáo về tính khả dụng của các nhà cung cấp dịch vụ thanh toán và phương thức thanh toán, và để giúp chẩn đoán các vấn đề về tính khả dụng tiềm ẩn trên biểu mẫu thanh toán, hãy bật chế độ lập trình viên, sau đó nhấp vào biểu tượng (bug) bên cạnh tiêu đề Chọn phương thức thanh toán trên biểu mẫu thanh toán. Báo cáo này bao gồm danh sách các nhà cung cấp dịch vụ thanh toán và phương thức thanh toán đã bật, lý do tại sao nhà cung cấp hoặc phương thức thanh toán nhất định không khả dụng, nếu có, và danh sách các nhà cung cấp được hỗ trợ cho từng phương thức thanh toán.

Tiền tệ và quốc gia

Tất cả nhà cung cấp dịch vụ thanh toán đều có danh sách các loại tiền tệ và quốc gia khả dụng khác nhau. Chúng đóng vai trò là bộ lọc đầu tiên trong quá trình thanh toán, tức là các phương thức thanh toán được liên kết với nhà cung cấp dịch vụ thanh toán sẽ không khả dụng để lựa chọn nếu loại tiền tệ hoặc quốc gia của khách hàng không nằm trong danh sách được hỗ trợ. Vì có thể có lỗi, cập nhật và thông tin chưa biết trong danh sách các loại tiền tệ và quốc gia khả dụng, nên bạn có thể thêm hoặc xóa các loại tiền tệ hoặc quốc gia được hỗ trợ của nhà cung cấp dịch vụ thanh toán.

Ghi chú

  • Payment methods also have their own list of available currencies and countries that serves as another filter during payment operations.

  • Nếu danh sách các loại tiền tệ hoặc quốc gia được hỗ trợ trống, điều đó có nghĩa là danh sách quá dài để hiển thị hoặc Odoo không có thông tin về nhà cung cấp dịch vụ thanh toán đó. Nhà cung cấp dịch vụ thanh toán vẫn khả dụng, mặc dù có khả năng giao dịch sẽ bị từ chối ở bước sau nếu quốc gia hoặc tiền tệ không được hỗ trợ.

Maximum amount

You can restrict the Maximum Amount that can be paid with the selected provider. Leave the field to 0.00 to make the payment provider available regardless of the payment amount.

Quan trọng

This feature is not intended to work on pages that allow the customer to update the payment amount, e.g., the Donation snippet and the Checkout page when paid shipping methods are enabled.

Payment journal

A payment journal must be defined for the payment provider to record the payments on an outstanding account. By default, the Bank journal is added as the payment journal for all payment providers. To modify it, go to the Configuration tab of the selected payment provider and select another Payment journal.

Ghi chú

  • The payment journal must be a Bank journal.

  • The same journal can be used for several payment providers.

  • Payment journals must only be configured if the Invoicing or Accounting app is installed.

Accounting perspective

Từ góc độ kế toán, có hai loại quy trình thanh toán online: các khoản thanh toán được chuyển trực tiếp vào tài khoản ngân hàng của bạn và tuân theo quy trình đối chiếu thông thường, và các khoản thanh toán từ nhà cung cấp dịch vụ thanh toán online bên thứ ba yêu cầu bạn tuân theo một quy trình kế toán khác. Đối với các khoản thanh toán này, bạn cần xem xét cách ghi nhận bút toán sổ nhật ký. Chúng tôi khuyên bạn nên tham khảo ý kiến kế toán viên.

By default, the Bank Account defined for the payment journal is used, but you can also specify an outstanding account for each payment provider to separate the provider's payments from other payments.

Define an outstanding account for a payment provider.