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.
Install the CLI globally using npm:
npm install -g @ktmcp-cli/klarna # Configure API credentials
klarna auth login \
--username YOUR_USERNAME \
--password YOUR_PASSWORD \
--region EU
# Test connection
klarna auth status # Create new payment session
klarna sessions create \
--amount 10000 \
--currency EUR \
--purchase-country SE \
--order-lines '[{"name":"Product","quantity":1,"unit_price":10000}]' # Get order details
klarna orders get ORDER_ID
# Capture an order
klarna orders capture ORDER_ID --amount 10000 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.