Finance

Klarna

@ktmcp-cli/klarna

Klarna is a leading buy now, pay later service. This CLI provides access to the Klarna Payments API for creating payment sessions, managing orders, and handling customer transactions.

Quick Start

Install the CLI globally using npm:

npm install -g @ktmcp-cli/klarna

Features

Create payment sessions
Manage customer orders
Handle refunds and captures
Payment method configuration
Customer credit checks
Order management

Usage Examples

Authentication

# Configure API credentials
klarna auth login \
  --username YOUR_USERNAME \
  --password YOUR_PASSWORD \
  --region EU

# Test connection
klarna auth status

Create a payment session

# Create new payment session
klarna sessions create \
  --amount 10000 \
  --currency EUR \
  --purchase-country SE \
  --order-lines '[{"name":"Product","quantity":1,"unit_price":10000}]'

Manage orders

# Get order details
klarna orders get ORDER_ID

# Capture an order
klarna orders capture ORDER_ID --amount 10000

Documentation

For complete documentation, API reference, and advanced usage examples, visit the GitHub repository. Each CLI includes comprehensive README.md, AGENT.md for AI integration, and OPENCLAW.md for tool definitions.