Odoo Addon
The afs_payments module adds AFS Pay as a payment method in Odoo POS.
Install in Odoo
- Download the module and unzip it into your Odoo addons folder (Odoo.sh: commit it to your repo).
- Restart Odoo, turn on developer mode, then Apps → Update Apps List.
- Search "AFS Payments" and click Install.
- Point of Sale → Configuration → Payment Methods → New → choose "AFS Payments".
- Enter the AFS API URL, the API key from the Odoo Connection page, and the AFS terminal ID.
- 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