Affirm Payment Integration
Offer Affirm’s Buy now, pay later on your Odoo website. Customers choose Affirm at checkout, get an instant decision on Affirm, and come back to Odoo with the order paid; the charge is authorised and captured automatically.
|
2 keys
Public + private, that’s all
|
1 click
Switch sandbox ↔ live
|
0 code
Standard Odoo payment provider
|
4
Odoo versions supported
|
Pay-over-time checkout, the Odoo way
Native payment provider
Affirm appears under Payment Providers like Stripe or PayPal: publish it, restrict it by company, website, currency or country.
Sandbox and production
Test Mode talks to sandbox.affirm.com, Enabled to api.affirm.com. Same keys screen, no code changes.
Instant confirmation
When the customer confirms on Affirm, Odoo authorises and captures the charge and marks the transaction done.
Address hand-off
Billing and shipping details are sent to Affirm from the customer’s contact, so they don’t retype them.
Clean accounting
Payments post to the journal you choose on the provider; use a dedicated bank journal to reconcile Affirm settlements.
Safe by default
API keys are hidden in the form, and database neutralisation wipes them so test copies never charge real customers.
From cart to captured payment in five steps
Checkout
The customer selects Affirm Payment and clicks Pay now.
Affirm checkout
Odoo creates a direct checkout with the order total and addresses.
Decision
The customer signs in on Affirm and picks a payment plan.
Confirm
Affirm posts back to /payment/affirm/confirm.
Paid
Odoo authorises, captures and confirms the order.
Get your API keys from Affirm
Sign in to the Affirm merchant dashboard, open API Keys and copy the public and private keys. Use the sandbox keys while testing and the live keys in production.
Paste the keys into the Affirm provider
- Go to Invoicing / Website › Configuration › Payment Providers.
- Open Payment with Affirm and paste the Public Key and Private Key.
- Choose Test Mode to use the Affirm sandbox, or Enabled for live payments.
- Click Published to show Affirm on your website.
Choose the journal and where Affirm is offered
On the Configuration tab set the payment journal and, if you wish, a maximum amount, currencies and countries. Tip: create a separate bank journal for Affirm for cleaner reports and reconciliation.
One module, every supported Odoo version
Each version lives on its own branch and is installed and tested on that Odoo release. Works on Community & Enterprise, on-premise and Odoo.sh.
|
Odoo
16
✔ Available
|
Odoo
17
✔ Available
|
Odoo
18
✔ Available
|
Odoo
19
✔ Available
|
Technical notes
- Depends only on
paymentandaccount; installwebsite_saleto offer Affirm in the shop. - Provider code
affirm; routes/payment/affirm/confirm(POST) and/payment/affirm/cancel(GET). - Charges are captured immediately; manual capture, refunds from Odoo and tokenisation are not used.
- Amounts are sent in the order currency, in cents, as Affirm expects.
- The
neutralize.sqlscript clears the API keys when a database is neutralised. - Odoo 19 uses the new payment API (
_search_by_reference,_apply_updates); 16–18 use the classic notification flow.
Need more than this module? We build the rest.
Innovative solutions, sustainable growth. From one add-on to a full Odoo rollout, our team designs, builds and supports it.
Odoo Services
Implementation, customisation, migration and training for Odoo Community and Enterprise.
Integrations
Payment gateways, marketplaces, logistics and third-party APIs connected to your Odoo.
ERP Solutions
Tailored ERP for inventory, finance and operations, with real-time reporting.
Process Automation
Automate repetitive work so your team can focus on what grows the business.
Cloud & Security
Hosting, monitoring, backups and hardening for your business systems.
Web & Mobile Apps
Responsive web and mobile apps that work hand in hand with your ERP.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 263 |
| Technical Name |
ms_affirm_integration |
| License | OPL-1 |
| Website | https://www.mindsynthtech.com |
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