Affirm Payment Gateway - Affirm Payment Provider, Buy Now Pay Later (BNPL), Pay Over Time USA / Canada
by Modvanta https://modvantaapps.tech/odoo-apps/payment-affirm/$ 24.93

Affirm Payment Gateway - Buy Now Pay Later - USA and Canada
Let shoppers pay over time with Affirm, straight from your Odoo shop.
A direct Affirm integration with your own merchant keys: Affirm checkout by redirect or Affirm.js modal, authorization when the customer comes back, capture immediately, when the delivery is validated or by hand, void, partial refunds, the carrier and tracking number sent to Affirm, and "as low as" promotional messaging on product pages and in the cart. USD for the United States, CAD for Canada, sandbox and live.
What merchants ask for
Everything needed to sell with Affirm on the Odoo website, without a middleman.
| Buyers ask for | In this module |
| My own Affirm account | Public and private API keys from the Affirm merchant dashboard; sandbox in Test Mode, live when Enabled |
| United States and Canada | US market in USD; Canada in CAD through the Affirm Global integration (country-code CAN) |
| Checkout that fits the shop | Redirect to Affirm, or the Affirm.js modal on a checkout created by the server |
| Secure confirmation | The checkout token is authorized server side at once; amount and currency are checked against the order |
| Capture when I ship | Capture immediately, when the delivery is validated, or by hand from the transaction |
| Tracking for Affirm | Carrier and tracking number sent with the capture, and later updates sent to Affirm |
| Cancel and refund | Void an authorization (also when the order is cancelled); full or partial refunds |
| Show the monthly price | "As low as" messaging on product pages and in the cart; promo id and logo colour |
| Only where it works | Offered only in the right currency, for US or Canadian customers and between the minimum and maximum amount |
| Order line detail | Items with SKU, unit price, image and link, discounts, shipping and tax sent to Affirm |
| Webhook backup | Affirm checkout webhook with the HMAC-SHA512 signature check authorizes orders whose customer never came back |
| Know what happened | API log with masked keys, Affirm status, fee and authorization expiry on the transaction |
Features
Real screens of the module running on Odoo 19 (demo data, Demo Mode).
Promotional messaging on the product page
Shoppers see the monthly price under the product price.
- Product and cart messaging can be switched off separately
- Promo id and logo colour settings

Messaging in the cart
The cart total shows the Affirm monthly price too.
- Uses the order total

Affirm at checkout
Affirm is offered as a payment method when the order qualifies.
- Currency, country and minimum / maximum checked
- Redirect or modal checkout

Affirm checkout (Demo Mode)
In Demo Mode a stand-in page replaces the Affirm checkout so you can try the whole flow without keys.
- Approve or simulate a decline
- With real keys the customer goes to Affirm

Back in the shop
The customer returns to the order confirmation; the payment is authorized.
- Order confirmed

Authorized transaction
The Affirm transaction id and status are on the Odoo transaction.
- Capture or void from the transaction

Credentials
Market, public key, private key and Demo Mode.
- Test Mode uses the Affirm sandbox

Capture and messaging settings
Choose how and when the money is captured and where the messaging appears.
- Redirect or Affirm.js modal
- Capture immediately, on delivery or manually
- Minimum and maximum amount

Captured on delivery
Validating the delivery captured the Affirm payment and sent the tracking number.
- Capture child transaction confirmed
- Refund from the transaction

API log
Every call to Affirm with the request and the answer, keys masked.
- Checkout, authorize, capture, refund

How it works
From the API keys to the first Affirm order.
In the Affirm merchant dashboard open Settings -> API keys (sandbox and live keys differ).
Website -> Configuration -> Payment Providers -> Affirm: choose the market, paste the keys, choose the capture mode and the messaging.
Set the provider to Test Mode and place an order with the Affirm sandbox (or switch on Demo Mode first).
Enable the provider with your live keys. Affirm appears at checkout for qualifying orders.
Validate the delivery: the payment is captured with the tracking number (or capture by hand).
Good to know
Answers to the questions merchants ask before buying.
Yes. The module connects to your own Affirm account with your API keys; Affirm approves merchants.
United States in USD and Canada in CAD (Affirm Global integration). One provider per market.
Yes. Affirm authorizations are captured when the delivery is validated or by hand; Affirm authorizations expire after 30 days by default.
Yes, with live or sandbox keys the message is rendered by Affirm.js. In Demo Mode a local message is shown instead.
Odoo 19 Community and Enterprise. Depends on Payment, eCommerce and Inventory.
Not included
Said plainly, so you know before buying.
| Topic | Status |
| Point of Sale / in-store Affirm | Not included |
| Split capture | Full capture only (split capture needs Affirm enablement) |
| Live test | Built and tested against offline copies of the documented Affirm requests and answers; use your sandbox keys to test live |
Affirm Payment Gateway for Odoo 19
Buy now pay later for the USA and Canada. Odoo 19 Community and Enterprise.
Buy Now - $25
Support: modvantaapps@gmail.com
Affirm is a trademark of its owner. This module is not affiliated with or endorsed by Affirm.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Invoicing (account) • Discuss (mail) • Inventory (stock) • Website (website) |
| Lines of code | 1136 |
| Technical Name |
mdv_payment_affirm |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/payment-affirm/ |
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