Tích hợp thanh toán PayOS VietQR Trong Odoo POS - POS Online Payment QR - PayOS
by ndd https://duong-odoo-apps.odoo.com$ 68.72
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Point of Sale (point_of_sale)
• Invoicing (account) • Discuss (mail) • Inventory (stock) |
Community Apps Dependencies | Show |
Lines of code | 889 |
Technical Name |
pos_online_payment_qr_payos |
License | OPL-1 |
Website | https://duong-odoo-apps.odoo.com |
Versions | 17.0 18.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Odoo Apps Dependencies |
•
Point of Sale (point_of_sale)
• Invoicing (account) • Discuss (mail) • Inventory (stock) |
Community Apps Dependencies | Show |
Lines of code | 889 |
Technical Name |
pos_online_payment_qr_payos |
License | OPL-1 |
Website | https://duong-odoo-apps.odoo.com |
Versions | 17.0 18.0 |
TÃch hợp thanh toán PayOS VietQR Trong Odoo POS
TÃch hợp thanh toán QR PayOS cho Äiá»m bán hà ng Odoo
Module nà y tÃch hợp thanh toán QR PayOS và o Äiá»m bán hà ng (POS) cá»§a Odoo, cho phép khách hà ng thanh toán bằng cách quét mã QR vá»i ứng dụng ngân hà ng hoặc và Äiá»n tá».
Há» thá»ng tá»± Äá»ng tạo mã QR cho từng ÄÆ¡n hà ng và cáºp nháºt trạng thái thanh toán theo thá»i gian thá»±c thông qua webhook.
TÃnh nÄng chÃnh
- TÃch hợp thanh toán QR PayOS và o Äiá»m bán hà ng Odoo
- Tá»± Äá»ng tạo mã QR cho từng ÄÆ¡n hà ng
- Tá»± Äá»ng cáºp nháºt trạng thái thanh toán qua webhook
- Xác nháºn thanh toán theo thá»i gian thá»±c
- Há» trợ thanh toán không tiá»n mặt tại cá»a hà ng
- Tương thÃch vá»i các ngân hà ng tại Viá»t Nam




Quy trình thanh toán
Quy trình thanh toán QR PayOS tại Äiá»m bán hà ng:
- Nhân viên tạo ÄÆ¡n hà ng trên POS
- Chá»n phương thức thanh toán QR PayOS
- Há» thá»ng tá»± Äá»ng tạo và hiá»n thá» mã QR
- Khách hà ng quét mã QR bằng ứng dụng ngân hà ng/và Äiá»n tá»
- Thanh toán ÄÆ°á»£c xác nháºn tá»± Äá»ng qua webhook
- ÄÆ¡n hà ng ÄÆ°á»£c hoà n tất
TÃnh nÄng webhook
Module tÃch hợp webhook PayOS cho phép:
- Xác thá»±c thanh toán tá»± Äá»ng
- Cáºp nháºt trạng thái ÄÆ¡n hà ng theo thá»i gian thá»±c
- Xá» lý các trưá»ng hợp thanh toán thà nh công/thất bại
- Äảm bảo an toà n vá»i xác thá»±c chữ ký sá»
- Tá»± Äá»ng ÄÄng ký webhook URL vá»i PayOS
HỠTRỢ KỸ THUẬT
Liên hỠhỠtrợ: duongodooapps@gmail.com
Hưá»ng dẫn sá» dụng
Vui lòng ghé và o tab Documentation bên phải tab nà y Äá» xem hưá»ng dẫn sá» dụng

PayOS QR Payment for Point of Sale

PayOS QR Payment Integration for Odoo Point of Sale
This module integrates PayOS QR payment into Odoo Point of Sale (POS), allowing customers to pay by scanning QR codes with banking apps or e-wallets.
The system automatically generates QR codes for each order and updates payment status in real-time through webhooks.
Key Features
- Integration of PayOS QR payment into Odoo Point of Sale
- Automatic QR code generation for each order
- Automatic payment status updates via webhook
- Real-time payment confirmation
- Support for cashless payments in-store
- Compatible with Vietnamese banks and e-wallets
Requirements
- payment_payos module installed and configured
- pos_online_payment module installed
- PayOS account registered and activated
Configuration
- Go to Point of Sale > Configuration > Payment Methods
- Create a new payment method with type "Online Payment"
- Select the configured PayOS payment provider
- Enable the "Use QR Payment" option
- Register PayOS webhook to receive automatic payment status updates
- Save and use
Payment Process
The PayOS QR payment process at the point of sale:
- Staff creates an order on POS
- Selects PayOS QR payment method
- System automatically generates and displays QR code
- Customer scans QR code with banking app/e-wallet
- Payment is automatically confirmed via webhook
- Order is completed
Webhook Features
The module integrates PayOS webhooks allowing:
- Automatic payment verification
- Real-time order status updates
- Handling of successful/failed payment cases
- Security with digital signature verification
- Automatic webhook URL registration with PayOS
TECHNICAL SUPPORT
Contact for support: duongodooapps@gmail.com
PayOS QR Payment for Point of Sale Usage Guide
Hướng dẫn này sẽ giúp bạn thiết lập và sử dụng module pos_online_payment_qr_payos trong Odoo để tích hợp thanh toán QR PayOS vào điểm bán hàng.
Để thiết lập tài khoản PayOS, bạn cần đăng ký tài khoản tại: PayOS: https://my.payos.vn/login
1. Tổng quan về module
Module pos_online_payment_qr_payos tích hợp thanh toán QR PayOS vào điểm bán hàng (POS) của Odoo, cho phép bạn:
- Tạo mã QR thanh toán tự động cho từng đơn hàng POS
- Nhận thông báo thanh toán thông qua webhook
- Xác nhận thanh toán theo thời gian thực
- Hoàn tất đơn hàng tự động khi thanh toán thành công
- Tương thích với hầu hết các ngân hàng tại Việt Nam
2. Yêu cầu trước khi cài đặt
Trước khi cài đặt module này, bạn cần:
- Đã cài đặt module payment_payos và cấu hình thông tin PayOS
- Đã cài đặt module pos_online_payment (được cài đặt tự động khi cài pos_online_payment_qr_payos)
- Có tài khoản PayOS đã được xác thực và kích hoạt
3. Cài đặt và Cấu hình
3.1. Cài đặt module
- Cài đặt module pos_online_payment_qr_payos
- Đảm bảo rằng các module phụ thuộc đã được cài đặt: - payment_payos - pos_online_payment
3.2. Cấu hình PayOS
Nếu bạn chưa cấu hình PayOS, hãy làm theo các bước sau, có thể tham khảo link của PayOS https://payos.vn/docs/huong-dan-su-dung/tao-tai-khoan-payos/:
- Đăng ký tài khoản PayOS tại https://my.payos.vn/login

- Sau khi đăng nhập, tạo kênh thanh toán và lấy thông tin: - Client ID - API Key - Checksum Key
- Trong Odoo, đi tới Website -> Cấu hình -> Phương thức thanh toán
- Kích hoạt cổng thanh toán PayOS và nhập thông tin từ bước 2

3.3. Cấu hình phương thức thanh toán POS
- Đi tới Điểm bán hàng -> Cấu hình -> Phương thức thanh toán
- Tạo phương thức thanh toán mới
- Cấu hình như sau: - Tên: PayOS QR Payment (hoặc tên tùy chọn) - Loại phương thức: Online Payment - Nhà cung cấp thanh toán: PayOS - Sử dụng thanh toán QR: Bật - Tự động xác nhận đơn hàng: Bật (tùy chọn)

4. Cấu hình điểm bán hàng 4. Đi tới Điểm bán hàng -> Cấu hình -> Điểm bán hàng 5. Chọn điểm bán hàng cần cấu hình 6. Trong tab Phương thức thanh toán, thêm phương thức thanh toán PayOS QR đã tạo

3.4. Cấu hình Webhook
Để nhận thông báo thanh toán tự động từ PayOS:
- Trong cấu hình PayOS, bạn sẽ thấy URL webhook được tạo tự động
- Nhấn nút Đăng ký Webhook PayOS để đăng ký webhook với PayOS
- Webhook sẽ giúp cập nhật trạng thái thanh toán tự động khi khách hàng hoàn tất giao dịch

4. Sử dụng trong điểm bán hàng
4.1. Quy trình thanh toán
Khi khách hàng thanh toán tại điểm bán hàng:
- Nhân viên tạo đơn hàng trên POS
- Chọn phương thức thanh toán PayOS QR
- Hệ thống tự động tạo và hiển thị mã QR
- Khách hàng quét mã QR bằng ứng dụng ngân hàng/ví điện tử
- Sau khi thanh toán thành công: - PayOS gửi thông báo qua webhook - Trạng thái thanh toán được cập nhật trên màn hình POS - Đơn hàng được hoàn tất tự động
4.2. Màn hình thanh toán QR
Khi chọn phương thức thanh toán PayOS QR, màn hình sẽ hiển thị:
- Mã QR thanh toán
- Số tiền cần thanh toán
- Mã đơn

4.3. Xử lý trạng thái thanh toán
Hệ thống tự động xử lý các trạng thái thanh toán:
- Đang chờ: Khách hàng chưa thanh toán
- Đã thanh toán: Thanh toán thành công, đơn hàng được hoàn tất
- Hết hạn: Mã QR đã hết hạn, cần tạo mã mới
- Lỗi: Có lỗi xảy ra trong quá trình thanh toán
Nếu webhook được cấu hình đúng, trạng thái thanh toán sẽ được cập nhật tự động trong thời gian thực.
5. Quản lý giao dịch
5.1. Xem lịch sử giao dịch
- Đi tới Điểm bán hàng -> Đơn hàng
- Lọc theo phương thức thanh toán "PayOS QR"
- Mở đơn hàng để xem chi tiết giao dịch

6. Xử lý lỗi và khắc phục sự cố
6.1. Lỗi hiển thị mã QR
Vấn đề: Mã QR không hiển thị hoặc hiển thị lỗi
Giải pháp: - Kiểm tra kết nối internet - Kiểm tra cấu hình PayOS - Kiểm tra log lỗi trong Odoo - Làm mới mã QR
6.2. Lỗi webhook
Vấn đề: Trạng thái thanh toán không được cập nhật tự động
Giải pháp: - Kiểm tra cấu hình webhook - Đảm bảo URL webhook có thể truy cập từ internet - Kiểm tra xem webhook đã được đăng ký thành công với PayOS chưa - Kiểm tra log lỗi trong Odoo
6.3. Lỗi thanh toán
Vấn đề: Khách hàng không thể thanh toán
Giải pháp: - Kiểm tra kết nối internet của khách hàng - Đảm bảo mã QR được hiển thị đúng - Kiểm tra xem tài khoản PayOS có đang hoạt động không - Kiểm tra giới hạn giao dịch của PayOS
7. Hỗ trợ bổ sung
Để được hỗ trợ thêm:
- Email: duongodooapps@gmail.com
- Tham khảo tài liệu API của PayOS: https://payos.vn/docs
- Liên hệ hỗ trợ kỹ thuật của PayOS: https://payos.vn/contact
8. Lưu ý về bảo mật
- Giữ thông tin xác thực API an toàn
- Thường xuyên kiểm tra quyền ứng dụng
- Giám sát giới hạn sử dụng API
- Tuân thủ điều khoản dịch vụ và hướng dẫn nội dung của PayOS
9. Phiên bản tiếng Anh (English Version)
PayOS QR Payment for Point of Sale Usage Guide
This guide will help you set up and use the pos_online_payment_qr_payos module in Odoo to integrate PayOS QR payment into the point of sale.
To set up your PayOS account, you need to register at: PayOS: https://my.payos.vn/login
1. Module Overview
The pos_online_payment_qr_payos module integrates PayOS QR payment into the Odoo Point of Sale (POS), allowing you to:
- Automatically generate payment QR codes for each POS order
- Receive payment notifications through webhooks
- Confirm payments in real-time
- Automatically complete orders when payment is successful
- Compatible with most banks in Vietnam
2. Prerequisites
Before installing this module, you need:
- The payment_payos module installed and configured with PayOS information
- The pos_online_payment module installed (automatically installed when installing pos_online_payment_qr_payos)
- A verified and activated PayOS account
3. Installation and Configuration
3.1. Install Module
- Install the pos_online_payment_qr_payos module
- Ensure that the dependent modules are installed: - payment_payos - pos_online_payment
3.2. Configure PayOS
If you haven't configured PayOS yet, follow these steps:
- Register a PayOS account at https://my.payos.vn/login
- After logging in, create a payment channel and obtain: - Client ID - API Key - Checksum Key
- In Odoo, go to Website -> Configuration -> Payment Methods
- Activate the PayOS payment gateway and enter the information from step 2
3.3. Configure POS Payment Method
- Go to Point of Sale -> Configuration -> Payment Methods
- Create a new payment method
- Configure as follows: - Name: PayOS QR Payment (or a name of your choice) - Method Type: Online Payment - Payment Provider: PayOS - Use QR Payment: Enabled - Automatically validate order: Enabled (optional)
- Go to Point of Sale -> Configuration -> Point of Sale
- Select the point of sale to configure
- In the Payment Methods tab, add the PayOS QR payment method you created
3.4. Configure Webhook
To receive automatic payment notifications from PayOS:
- In the PayOS configuration, you will see the automatically generated webhook URL
- Click the Register PayOS Webhook button to register the webhook with PayOS
- The webhook will help update payment status automatically when customers complete transactions
4. Using in Point of Sale
4.1. Payment Process
When customers pay at the point of sale:
- Staff creates an order on POS
- Selects the PayOS QR payment method
- The system automatically generates and displays the QR code
- Customer scans the QR code with a banking app/e-wallet
- After successful payment: - PayOS sends notification via webhook - Payment status is updated on the POS screen - The order is automatically completed
4.2. QR Payment Screen
When selecting the PayOS QR payment method, the screen will display:
- Payment QR code
- Amount to be paid
- Remaining time for payment
- Payment status (Waiting, Paid, Expired)
- Button to refresh the QR code if needed
4.3. Payment Status Handling
The system automatically handles payment statuses:
- Waiting: Customer has not yet paid
- Paid: Payment successful, order is completed
- Expired: QR code has expired, need to create a new one
- Error: An error occurred during the payment process
If the webhook is configured correctly, the payment status will be updated automatically in real-time.
5. Transaction Management
5.1. View Transaction History
- Go to Point of Sale -> Orders
- Filter by payment method "PayOS QR"
- Open an order to view transaction details
5.2. Reconcile Transactions
To reconcile transactions between Odoo and PayOS:
- Go to Accounting -> Customers -> Payments
- Filter by payment method "PayOS"
- Compare with transaction reports from PayOS
6. Troubleshooting
6.1. QR Display Errors
Issue: QR code does not display or displays with errors
Solution: - Check internet connection - Check PayOS configuration - Check error logs in Odoo - Refresh the QR code
6.2. Webhook Errors
Issue: Payment status is not updated automatically
Solution: - Check webhook configuration - Ensure webhook URL is accessible from the internet - Check if the webhook has been successfully registered with PayOS - Check error logs in Odoo
6.3. Payment Errors
Issue: Customers cannot pay
Solution: - Check customer's internet connection - Ensure QR code is displayed correctly - Check if PayOS account is active - Check PayOS transaction limits
7. Additional Support
For additional support:
- Email: duongodooapps@gmail.com
- Refer to PayOS API documentation: https://payos.vn/docs
- Contact PayOS technical support: https://payos.vn/contact
8. Security Notes
- Keep API credentials secure
- Regularly review app permissions
- Monitor API usage limits
- Comply with PayOS terms of service and content guidelines
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module