How do I test Klarna Checkout on my local workstation?

Step 1

I set up an Ngrok tunnel on a custom domain (
It requires an Ngrok «Pro» plan or higher one («Business»).


Step 2

I have set up a CNAME DNS record for the domain pointing to the Ngrok subdomain provided by Ngrok on the Step 1 (

Step 3

I have pointed the to for my local worstation via the hosts file:

Step 4

I have set up a VirtualHost for Apache on my local workstation listening to the 443 port (Klarna requires HTTPS for checkout API callbacks):

	DocumentRoot "C:/work/clients/"
	SSLEngine on
	SSLCertificateFile "C:/server/nginx/conf/certs/myssl.crt"
	SSLCertificateKeyFile "C:/server/nginx/conf/private/myssl.key"

Step 5

I have changed the Magento’s base URL to

UPDATE core_config_data
SET value = ''
WHERE path LIKE 'web/%secure/base_url';

Step 6

I have run Ngrok in the following way:

C:\work\lic\ngrok http


Step 7

Now the Klarna Checkout should work.
You can use the following test bank card:

  • Number: 4111 1111 1111 1111
  • CVV: 123
  • Exp: Any valid date in the future



Step 8

Klarna Checkout’s API callbacks are redirected by Ngrok to my local workstation: