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
    • Artificial Intelligence
    • 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
    • Property 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
    • Affiliate Program
    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 Providers
  3. Test Card Payment Provider: simulated card payments and card terminal v 20.0
  4. Sales Conditions FAQ

Test Card Payment Provider: simulated card payments and card terminal

by Aerya IT Solutions https://aerya.net
Odoo

$ 49.31

v 20.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 17.0 18.0 19.0 20.0
You bought this module and need support? Click here!
Versions 17.0 18.0 19.0 20.0
  • Description
  • Manifest
  • License
Aerya Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions

Test Card Payment Provider: simulated card payments and card terminal

Test your shop, portal and subscription flows with card numbers that decide the outcome: approved, declined, insufficient funds, expired, 3-D Secure, pending with a notification that arrives later. A terminal mode records card payments taken on a separate terminal.

Hosted payment page like a real provider, 3-D Secure step
Pending payments confirmed by a delayed notification
Saved cards, manual capture, void, partial refunds
Terminal mode for staff, may be enabled

Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.

The hosted payment page with the test cards

Screenshot of Odoo 17 Enterprise with the data of a fictitious company.

19 automated tests
on Odoo 20
Code checked with flake8 and pylint-odoo
no warnings

The problem

Before a shop, a customer portal or a subscription goes live, someone has to pay with it. The real provider needs an account, keys and a sandbox, and its test cards are in a document nobody finds. Odoo's own demo provider lets the payer pick the outcome from a list and can never be enabled, so the flow tested is not the flow of a card payment.

A demo for a prospect has the same problem: a payment that behaves like a real one, with a card page, a 3-D Secure step and a bank that answers later, without any keys.

What the module does

It adds a payment provider called Test card. In Test mode it works as a redirect provider with its own hosted payment page, like a real card provider, and the card number decides the outcome. It supports saved cards, manual capture and void, and full and partial refunds. A second mode, the external card terminal, records card payments taken on a separate terminal by the staff.

How it works, step by step

  • Install. The module depends on Payment only. No keys.
  • Open the provider. Accounting > Configuration > Payment Providers > Test card, and set it to Test mode.
  • Choose the mode. Test card simulator, or External card terminal.
  • Pay. Pay a quotation, an invoice or a shop order. The hosted page asks for a card: type a test card.
  • Check. Look at the order, the invoice and the state of the transaction.

The card number decides

A hosted page with the test cards on it

4242 4242 4242 4242 (and 5555 5555 5555 4444 and 3782 822463 10005) is approved, 4000 0000 0000 0002 declined, 4000 0000 0000 9995 insufficient funds, 4000 0000 0000 0069 expired, 4000 0000 0000 0119 a processing error. Any other valid number (Luhn check) is approved.

The list is on the page, so testers never need a document. Expiry and security code are checked like a real form: a month and year in the future, 3 digits (4 for American Express). An invalid card number is refused and the page asks again.

The hosted payment page with the test cards

3-D Secure

The bank's confirmation page

Card 4000 0000 0000 3220 opens a 3-D Secure page: code 123456 approves, another code fails, Cancel cancels.

The 3-D Secure step

Pending, then confirmed later

A delayed notification

Card 4000 0000 0000 0077 leaves the payment pending, like a bank transfer or a slow provider. Its notification arrives after the delay you set (2 minutes by default), through a scheduled action, or right away with the buttons "Deliver approved notification" and "Deliver declined notification" of the transaction.

A pending payment with its delayed notification

Configured in a minute

A few settings, no keys

"Decline amounts above" declines every payment over an amount whatever the card, to test the declined flow with a normal card. "Delayed notification (minutes)" sets the delay. Saved cards keep their outcome for later charges, which is what a subscription needs. Capture can be manual, and refunds can be partial.

The Test card provider

Terminal mode

For card payments taken on a separate terminal

Only internal users see the method. On the payment link of an invoice or order they type the authorization code (6 characters) and the last 4 digits of the card from the receipt, and the payment is recorded with that code as its reference. This mode may be enabled.

Customers (public and portal users) never see the terminal mode.

Recording a terminal payment

Every outcome in one list

Transactions

The transactions list shows each test payment with its state, so a tester sees every outcome side by side.

Transactions with every outcome

What it does not do

  • The simulator works in Test mode only. It cannot be enabled, so no real payment goes through it.
  • Negative limits or delays are refused.
  • Real card data is never handled: the full card number is never stored, only the last 4 digits.
  • Terminal mode is not offered to customers.
  • It does not charge any card: it is a test and demo tool.

Requirements

Odoo versions17, 18, 19 and 20
EditionsCommunity and Enterprise
Odoo appsPayment
Modules of oursNone
Where it runsOdoo.sh and on-premise (Python module)
LanguagesEnglish, Spanish and Romanian

Questions

Can I use it for real payments?

No. The simulator works in Test mode only. The terminal mode only records a payment taken on a separate terminal.

Do I need an account or keys?

No. There is nothing to sign up for.

What is the difference with Odoo's demo provider?

The demo provider lets the payer pick the outcome from a list and can never be enabled. This module adds test card numbers, a hosted page with 3-D Secure, delayed notifications and the terminal mode.

Can I test a subscription renewal?

Yes. A saved card keeps its outcome for later charges.

Is the card number stored?

No. Only the last 4 digits.

Can I test refunds and manual capture?

Yes: full and partial refunds, manual capture and void.

Explore our other apps

More modules by Aerya IT Solutions for Odoo 20, built to work together.

Paybox et Up2pay e-Transactions

Payez par carte sur Odoo avec Verifone Paybox System et Crédit Agricole Up2pay e-Transactions

80 EUR · View on the store →

Swish Payment Provider

Take Swish payments on the Odoo shop and invoices: app link or QR code

55 EUR · View on the store →

Paytrail Payment Provider

Paytrail payment with MobilePay, Finnish bank payments (verkkomaksu) and cards

50 EUR · View on the store →

Payment Surcharge & Provider Fees

Surcharge per payment provider (fixed plus percentage, by country

42 EUR · View on the store →

2C2P Payments

Take payments with 2C2P on the Odoo shop and invoices: hosted payment page with cards

50 EUR · View on the store →

PayU Europe Payments

Take payments with PayU on the Odoo shop and invoices: hosted checkout for cards and BLIK

50 EUR · View on the store →

Questions or a custom quote?

Write to info@aerya.ro for questions about the module, its installation or custom development.

Aerya Aerya IT Solutions · Developed in the European Union · aerya.net
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 781
Technical Name aerya_payment_test_card
LicenseOPL-1
Websitehttps://aerya.net
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