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
Get sandbox credentials
Enter your work email — sandbox credentials arrive by email. The same Client ID and Secret will work for the sandbox APIs.
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('/api/checkout', {
method: 'POST',
headers: { Authorization: `Basic ${creds}`, 'Content-Type': 'application/json' },
body: JSON.stringify({ amount: 240, currency: 'SEK', callbackUrl })
});
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 management