Klarna Add -on for LearnPress

Final Steps

1. Go Live

Once you have successfully tested the payment gateway in the Sandbox environment, you can switch to the Production environment to start accepting real customer payments.

To go live:

  1. Disable Enable Test Mode in the Klarna settings.
  2. Generate or obtain your Production API Credentials from the Klarna Merchant Portal.
  3. Replace the Sandbox API Username and API Password with your Production credentials.
  4. Save your settings and perform a small real payment to verify that everything is working correctly.

Note

Sandbox and Production use separate API credentials. Make sure you are using the correct credentials for the selected environment.

2. Troubleshooting

If you encounter any issues while configuring or using the Klarna payment gateway, refer to the common solutions below.

IssueSolution
Klarna does not appear on the Checkout page.Ensure that the payment gateway is enabled and that both the API Username and API Password have been entered correctly.
Invalid Credentials or 401 Unauthorized errors.Verify that your Region, Test Mode, and API credentials all belong to the same environment (Sandbox or Production).
The order remains in the Processing status.Wait for Klarna to complete the payment verification, or verify that your webhook is configured correctly.
Webhook notifications are not working.Ensure your website is using HTTPS and that the WordPress REST API is accessible.
Unable to connect to Klarna services.Check your server’s internet connection, firewall settings, and confirm that it can access Klarna’s API endpoints.

Tip

If the issue persists after verifying the above settings, review your server error logs or contact the LearnPress support team for further assistance.