Hygglig Checkout
Quick start
How Hygglig Checkout works — and how to get started with your integration.
Create checkoutPOST to API, receive
html_snippet
html_snippet
Render iframeEmbed html_snippet on your
checkout page
checkout page
Customer paysCard · Swish · Invoice ·
Instalment
Instalment
Callback + redirectPOST to push_url · redirect to
success_url
success_url
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 →
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
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 managementReady for production?
Production access requires a merchant agreement with Marginalen Bank.