Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Payment
  3. Account Invoice NearPay Bridge v 18.0
  4. Sales Conditions FAQ

Account Invoice NearPay Bridge

by iCloud Solutions https://icloud-solutions.net
Odoo

$ 585.60

v 18.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Invoicing (account)
• Discuss (mail)
Lines of code 1838
Technical Name ics_account_nearpay_payment
LicenseOPL-1
Websitehttps://icloud-solutions.net
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Invoicing (account)
• Discuss (mail)
Lines of code 1838
Technical Name ics_account_nearpay_payment
LicenseOPL-1
Websitehttps://icloud-solutions.net
  • Description
  • License
iCloud Solutions Logo
iCS
SOLUTIONS
Nearpay Logo

NearPay Invoice Payment Integration

Seamless Flutter-based NearPay SDK Integration for Odoo 18 Invoicing

Version 18.0.1.0.0

📋
Overview

The NearPay Invoice Payment Integration module provides a complete solution for processing invoice payments through NearPay payment terminals integrated with Odoo 18 Accounting via a Flutter mobile application. This module enables seamless payment processing directly from the invoice payment wizard with comprehensive transaction tracking.

Built specifically for mobile payment ecosystems, this integration supports real-time payment processing with comprehensive transaction logging, automatic payment reconciliation, and detailed transaction metadata storage.

🚀
Key Features

💳
Invoice Payment Processing

Direct integration with NearPay SDK for secure invoice payment processing. Supports single and batch invoice payments with real-time transaction validation and automatic reconciliation.

📱
Flutter WebView Bridge

Seamless communication between Odoo Accounting and Flutter mobile app using WebView JavaScript bridge for payment commands, responses, and transaction callbacks.

🔄
Auto Reconciliation

Automatic payment creation and reconciliation with invoices. Payment records are automatically posted and reconciled with outstanding receivables.

🛡️
Pre-Flight Validation

Comprehensive validation before initiating NearPay transaction to prevent charging customers when payment cannot be processed. Includes invoice state checks and amount validation.

📊
Transaction Metadata

Complete storage of NearPay transaction data including card details (masked), approval codes, retrieval references, merchant IDs, and terminal information for audit trails.

⚡
Real-time Processing

Instant payment validation with error handling, duplicate transaction detection, timeout management, and comprehensive logging for debugging and support.

🛠️
Technical Specifications

Odoo 18.0
Flutter Framework
NearPay SDK
JavaScript ES6+
Python 3.8+
WebView Integration
OWL Framework
JSON API

Architecture Components:

  • Frontend: OWL component for payment wizard interface
  • Backend: Python wizard extension for payment registration
  • Models: Extended payment models for NearPay metadata storage
  • Bridge: Flutter WebView communication layer with callback pattern
  • API: JSON-RPC endpoints for logging and health checks
  • Validation: Pre-flight checks to prevent failed transactions

📋
Requirements

  • Odoo Community/Enterprise 18.0 - Accounting module installed and configured
  • Flutter Mobile Application - With NearPay SDK integration and WebView support
  • NearPay Terminal - Active NearPay merchant account and compatible terminal device
  • Network Connection - Stable internet connection for payment processing and API calls
  • Mobile Device - Android/iOS device running the Flutter application with terminal connectivity

⚙️
Installation & Configuration

  1. Download and install the module in your Odoo 18 installation
  2. Update the apps list and install "Account Invoice Webview NearPay Bridge"
  3. The module automatically adds NearPay payment methods to all bank journals
  4. Deploy your Flutter application with NearPay SDK integration
  5. Configure the WebView bridge settings in your mobile app to load Odoo web interface
  6. Test invoice payment processing with your NearPay terminal

Payment Method Configuration:

# Navigate to Accounting > Configuration > Journals # NearPay payment method is automatically added to all bank journals # # To use NearPay for invoice payments: 1. Open an invoice in Accounting 2. Click "Register Payment" 3. Select a bank journal with NearPay enabled 4. Choose "NearPay" as payment method 5. Confirm to launch mobile payment bridge

🧪
Testing & Development

🚨 Console Testing Instructions

For Development and Testing Purposes Only

⚠️ Important Notice

The following console testing method is intended for development, debugging, and testing purposes only. Do not use this in production environments.

How to Test Invoice Payment from Browser Console:

  1. Open an invoice in Odoo Accounting
  2. Click "Register Payment" and select NearPay payment method
  3. The payment bridge interface will open
  4. Open browser Developer Tools (F12)
  5. Go to Console tab
  6. Use the test helper function:
// Test successful payment
window.testInvoicePayment(true);

// Test declined payment
window.testInvoicePayment(false);

Or manually trigger with complete transaction data:

window.paymentComplete({
  "receipts": [{
    "receipt_id": "907c9378-3d04-4518-8256-b891d8f1d408",
    "transaction_uuid": "e310f010-2d0f-4908-8625-07c336107942",
    "merchant": {
      "id": "100000000000001",
      "name": { "english": "Test Merchant" }
    },
    "tid": "0209476200094762",
    "retrieval_reference_number": "579690000000",
    "card_scheme": {
      "name": { "english": "mada" }
    },
    "pan": "4323 28** **** 2272",
    "card_expiration": "26/06",
    "amount_authorized": {
      "value": "190.50"
    },
    "currency": { "english": "SAR" },
    "status_message": { "english": "Approved" },
    "is_approved": true,
    "is_refunded": false,
    "is_reversed": false,
    "approval_code": { "value": "181422" },
    "verification_method": { "english": "NO VERIFICATION REQUIRED" },
    "entry_mode": "CONTACTLESS",
    "qr_code": "https://sandbox-api.nearpay.io/ui/receipt/907c9378-3d04-4518-8256-b891d8f1d408"
  }]
});

📚 NearPay Transaction Receipt Documentation

The transaction receipt format follows NearPay's official SDK models specification. For complete documentation on transaction receipt structure and all available fields, visit:

Official Documentation: https://docs.nearpay.io/en/guides/sdk-models#transaction-receipt

🔄
Workflow Process

1. Invoice Selection

User opens invoice(s) and clicks "Register Payment" from Odoo Accounting interface.

2. Payment Method Selection

User selects bank journal and chooses "NearPay" as the payment method in the payment wizard.

3. Pre-Flight Validation

System validates invoice status, amount, and payment configuration before initiating NearPay transaction.

4. Mobile Payment Bridge

JavaScript bridge sends payment request to Flutter app via WebView handler with invoice details.

5. NearPay Processing

Flutter app communicates with NearPay SDK for terminal processing and customer card interaction.

6. Transaction Callback

Payment result returned to Odoo via window.paymentComplete() callback with complete transaction data.

7. Payment Recording

Backend creates account.payment record, stores NearPay metadata, posts entry, and reconciles with invoice.

8. Completion

User is redirected to invoice list, payment is marked as completed, and transaction is logged for audit.

🔍
Transaction Data Storage

Every NearPay payment stores comprehensive transaction metadata on the account.payment record:

  • Transaction Identifiers: UUID, receipt ID, retrieval reference number, reversal reference
  • Amount Information: Authorized amount, currency with multi-language support
  • Card Details: Masked card number, expiry date, card scheme (mada/Visa/Mastercard), entry mode
  • Transaction Status: Approval code, verification method, status flags (approved/refunded/reversed)
  • Merchant Data: Merchant ID, terminal ID (TID), system trace audit number
  • Receipt Information: QR code URL for digital receipt access
  • Raw Payload: Complete JSON transaction data for audit and debugging purposes

🛡️
Safety Features

Duplicate Prevention

Transaction UUIDs are checked to prevent duplicate payment recording. The system detects and rejects already-processed transactions.

Invoice State Validation

Pre-flight and post-transaction validation ensures invoices are in valid state (posted, unpaid) before processing.

Amount Verification

Payment amount is validated against invoice amount due to prevent overpayment or incorrect amounts.

Error Recovery

If payment fails after customer charge, system provides refund instructions with transaction ID for manual reversal.

Health Monitoring

Periodic health checks during payment to detect wizard deletion or invoice status changes.

Comprehensive Logging

All events logged to server and console for debugging, audit trails, and technical support.

📞
Support & Documentation

For technical support, customization requests, or additional features, please contact our development team. We provide comprehensive support for installation, configuration, and customization of the NearPay invoice payment integration.

What's Included:

  • Complete module source code with detailed comments
  • Installation and configuration guide
  • Flutter app integration documentation
  • API and callback documentation
  • Console testing utilities for development
  • Technical support via email and phone
  • Updates and bug fixes for Odoo 18.x versions
  • Integration with custom Flutter applications

Module Details:

Module Name: ics_account_nearpay_payment Technical Name: ics_account_nearpay_payment License: OPL-1 Category: Accounting/Payment Depends: account Author: iCloud Solutions
iCloud Solutions
iCS

Developed by iCloud Solutions

Professional Odoo development and integration services

🌐
icloud-solutions.net
📱
+216 50 271 737
📧
contact@icloud-solutions.net

© 2025 iCloud Solutions. All rights reserved. | Specialized in Odoo ERP solutions and mobile integrations.

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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with