Odoo Addon

The afs_payments module adds AFS Pay as a payment method in Odoo POS.

Install in Odoo

  1. Download the module and unzip it into your Odoo addons folder (Odoo.sh: commit it to your repo).
  2. Restart Odoo, turn on developer mode, then Apps → Update Apps List.
  3. Search "AFS Payments" and click Install.
  4. Point of Sale → Configuration → Payment Methods → New → choose "AFS Payments".
  5. Enter the AFS API URL, the API key from the Odoo Connection page, and the AFS terminal ID.
  6. Back here, open Devices & TPNs and click Validate.

What's included (v1)

  • POS payment method that sends sales to the mapped Dejavoo terminal through AFS
  • Status polling with automatic recovery if the terminal times out
  • Refund and void from the POS order
  • Connection test button and heartbeat to AFS
  • Request IDs on every call so a payment is never charged twice
  • Compatible with Odoo 17 and 18