Skip to content
Recued
Menu
← Back to recipes

Create a Klarna payment session

by recued-core v1

Approval-gated Klarna payment-session creator. It opens one Klarna Payments API session with cart details, returns session_id, client_token, and available payment methods, and does not place an order, capture funds, cancel authorizations, generate customer tokens, or call arbitrary endpoints.

How it works 7 steps

Inspect the data fetches, transforms, gates, and output this recipe runs.

Process (7 steps)
callback_url trim
Trim whitespace from setting authorization callback url
merchant_reference trim
Trim whitespace from setting merchant reference1
has_callback_url compare
Check if callback url has data
session ?
skip: step.has_callback_url not_equal true
categories default
Apply default
category_table to_table
Format results as a data table
card to_summary
Format results as a summary card
Settings 9 configurable

Configurable at install. Defaults shown — change them anytime in Recued.

klarna setting =
locale setting = en-SE
order lines setting = [object Object]
order amount setting = 9500
order tax amount setting = 1900
purchase country setting = SE
purchase currency setting = SEK
merchant reference1 setting =
authorization callback url setting =

Trust & control

What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.

Where it runs

Device + server Runs on your device (browser) or your server.

Permissions it requires

Read your Klarna connection
Declared by the recipe — Recued grants these at install, where you review them before approving.

About

Tags

klarna klarnapaymentscheckoutsessioncreateapprovalpack:klarna

Details

7 steps 9 configurable settings recipe_id: create-klarna-payment-session