Flexible payment solutions and shopping services.
## Klarna MCP Server: Flexible Payments The **Klarna MCP Server** integrates Klarna's flexible payment solutions into Google Antigravity, enabling developers to offer pay-later options and financing through AI-assisted checkout workflows. ### Why Klarna MCP? - **Pay in 4**: Split purchases into 4 interest-free payments - **Pay Later**: Defer payment for 30 days - **Financing**: Long-term financing for larger purchases - **One-Click Checkout**: Streamlined checkout experience - **Global Reach**: Available in 45+ countries ### Key Features #### 1. Payment Sessions ```javascript // Create payment session const session = await klarna.createSession({ purchase_country: "US", purchase_currency: "USD", locale: "en-US", order_amount: 10000, order_lines: [ { name: "Premium Product", quantity: 1, unit_price: 10000, total_amount: 10000 } ] }); // Authorize payment const authorization = await klarna.authorizePayment({ session_id: session.session_id, authorization_token: authToken }); // Capture order const order = await klarna.captureOrder({ order_id: authorization.order_id, captured_amount: 10000 }); ``` #### 2. Order Management ```javascript // Get order const orderDetails = await klarna.getOrder({ order_id: "order_123" }); // Refund order await klarna.refundOrder({ order_id: "order_123", refunded_amount: 5000, description: "Partial refund" }); // Cancel order await klarna.cancelOrder({ order_id: "order_123" }); // Update order await klarna.updateOrder({ order_id: "order_123", order_lines: updatedOrderLines }); ``` ### Configuration ```json { "mcpServers": { "klarna": { "command": "npx", "args": ["-y", "@anthropic/mcp-klarna"], "env": { "KLARNA_USERNAME": "your-username", "KLARNA_PASSWORD": "your-password", "KLARNA_ENVIRONMENT": "production" } } } } ``` ### Use Cases **Flexible Checkout**: Offer multiple payment options at checkout. **Higher Conversion**: Increase conversion with buy-now-pay-later. **Financing**: Provide financing for high-ticket items. The Klarna MCP Server brings flexible payments to your e-commerce workflow.
{
"mcpServers": {
"klarna": {}
}
}