Hygglig Checkout

Quick start

How Hygglig Checkout works — and how to get started with your integration.

Create checkoutPOST to API, receive
html_snippet
Render iframeEmbed html_snippet on your
checkout page
Customer paysCard · Swish · Invoice ·
Instalment
Callback + redirectPOST to push_url · redirect to
success_url
1

Get sandbox credentials

Enter your work email — sandbox credentials arrive within minutes. The same Merchant ID and Secret work for both Hygglig Checkout and Hygglig BNPL.

Using WooCommerce, PrestaShop, or OpenCart? Go to platform modules →

2

Make your first API call

Use the credentials from your email. Replace merchantId and secret with your values.

JavaScriptC#cURL
const creds = btoa(`${merchantId}:${secret}`); const res = await fetch( 'https://sb-checkout.hygglig.com/api/checkout/', { method: 'POST', headers: { 'Authorization': `Basic ${creds}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ order_reference, currency, articles, success_url, checkout_url, push_notification_url, terms_url }) }); const { html_snippet } = await res.json(); document.getElementById('checkout').innerHTML = html_snippet;
Full API documentation
3

Activate after shipping

When you ship the goods, activate the order via the Order Management API. This triggers the invoice or payment plan for the buyer.

Go to Order management

Ready for production?

Production access requires a merchant agreement with Marginalen Bank.

Get production access