| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Invoicing (account) • Discuss (mail) • Website (website) |
| Lines of code | 1261 |
| Technical Name |
cap_payment_klarna |
| License | OPL-1 |
| Website | https://www.captivea.com/ |
Klarna Payment Provider for Odoo 19 — Accept flexible Klarna payments on your website, sales orders, and customer invoices with inline checkout and Order Management API support.
Overview
This module integrates Klarna Payments with Odoo's native payment framework. Customers can pay with Klarna directly from eCommerce checkout, the customer portal on sales orders, and open invoices. Payments are authorized through the Klarna inline widget, orders are created through the Klarna Payments API, and captures or refunds are handled through the Klarna Order Management API.
The connector supports Europe, North America, and Oceania merchant regions, stores the Klarna order reference on payment transactions, and lets your team process full or partial refunds from the standard Odoo payment screen.
Key Features
- Klarna Payments inline widget integration (Pay Now, Pay Later, Slice It, and regional methods).
- Multi-region support: Europe (EU), North America (NA), and Oceania (OC).
- Website eCommerce checkout through website_sale.
- Customer portal payments on sales orders and invoices.
- Automatic order creation after Klarna authorization.
- Auto-capture support when manual capture is disabled on the provider.
- Manual capture and void support through Odoo's payment capture wizard.
- Full and partial refunds from linked accounting payments.
- Klarna order ID and Klarna reference stored on payment transactions.
- Region-aware countries, currencies, and payment methods synchronization.
Configuration
01 — Install the module
Install Payment Provider: Klarna from Apps. The module depends on payment, account_payment, sale, and website_sale.
02 — Configure the Klarna payment provider
Go to Accounting > Configuration > Payment Providers, open Klarna, and enter your credentials from the Klarna Merchant Portal:
- API Username — Klarna merchant ID / API username.
- API Password — Klarna API password linked to the username.
- Region — Select Europe, North America, or Oceania to match your Klarna account.
Set the provider state to Test Mode for playground credentials or Enabled for production. When the region is saved, supported countries, currencies, and Klarna payment methods are synchronized automatically.
03 — Payment messages and capture options
Under the Messages tab, configure the payment provider messages shown to customers during checkout.
04 — Activate Klarna payment methods
Open Accounting > Configuration > Payment Methods and activate the Klarna methods enabled for your region (for example Pay Now, Pay Later, or Slice It). Publish the Klarna provider on the website if you want it available in eCommerce checkout.
Klarna Checkout Flow
05 — Customer selects Klarna at checkout
On the website checkout, customer portal sales order payment page, or invoice payment page, the customer selects Klarna as the payment method and clicks Pay now.
06 — Klarna inline payment widget
The Klarna Payments widget loads inline on the payment page. The customer chooses how to pay (Pay Now, Pay Later, Slice It, etc.), completes Klarna authorization, and confirms the payment.
07 — Payment confirmed in Odoo
After Klarna accepts the payment, Odoo creates the Klarna order, captures it when auto-capture is enabled, stores the Klarna order ID and Klarna reference, and marks the payment transaction as Done. The linked invoice or sales order is reconciled through the standard Odoo payment flow.
Payment Transactions
08 — View Klarna transactions
Successful Klarna payments appear in Accounting > Configuration > Payment Transactions. Each transaction shows the Odoo reference, payment method, provider, amount, and status.
09 — Transaction details and linked payment
Open a Klarna transaction to view the provider reference (Klarna order ID), Klarna reference, session ID, partner details, and linked documents. From the related accounting payment, your team can review the reconciliation and initiate a refund when needed.
Refunds
10 — Refund from the payment
Open the linked customer payment and click Refund. Enter the refund amount (full or partial) and confirm. Odoo sends the refund request to Klarna and creates a child refund payment transaction.
11 — Refund transaction completed
After Klarna processes the refund, the refund transaction is marked Done, the Klarna refund ID is stored on the transaction, and a Refunds smart button appears on the original payment transaction.
Need Help?
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