Klarna offer a few different integration types. Foxy's integration uses the Klarna Payments account type, which Klarna may also refer to as One Klarna/Klarna One - so you will need to ensure you have that account type when integrating with Foxy. If you're not sure what account type you have with Klarna, we'd recommend reaching out to the Klarna support team to confirm.
Klarna has let us know that since the Foxy integration is considered a custom integration you'll need to let them know that when you are setting up your account. There is no option to specify this in the online setup process with Klarna, so you will need to reach out to them.
Subscriptions are not supported with Klarna at this time. If you intend to sell subscriptions with your FoxyCart store, you will also need to make use of another payment gateway that does.
To connect Klarna to your Foxy store, follow these steps:
At this time, Klarna has been activated for your store!
Klarna payment options are presented to the customer based on the currency of the cart and their location. Here's an example of options presented for a Norwegian customer:
If you're selling specific product types, Klarna may require that you pass in Extra Merchant Data, as outlined in their docs: https://docs.klarna.com/klarna-checkout/popular-use-cases/extra-merchant-data/
Foxy currently supports the “event” EMD, which must be passed in as a product-specific value with the product option name of klarna_emd_event
and a JSON value. In a link (unsigned), it might look like this:
<a href="https://foxy-demo.foxycart.com/cart?name=Prod1&price=5&code=sku1&klarna_emd_event=%7B%22event_company%22%3A%22Executive%20Education%20-%20Business%20Analytics%20Program%22%2C%22start_time%22%3A%222021-11-01T09%3A00%3A00Z%22%2C%22end_time%22%3A%222022-02-01T09%3A00%3A00Z%22%7D"> Add to Cart </a>
The value of the klarna_emd_event
is URL encoded JSON that looks like this:
{ "event_company": "Executive Education - Business Analytics Program", "start_time": "2021-11-01T09:00:00Z", "end_time": "2022-02-01T09:00:00Z" }
(Note that you don't technically need to URL encode the JSON, but it is required if you use the HMAC signing functionality, and since most people and systems use double-quotes to wrap the href
value, you will actually need to URL encode it.)
You'll also need to set the klarna_emd_event
product option to hidden, in your store's template configuration, under the “Customize Cart Display” section. That will prevent the value from displaying to your customers on the cart.
Note that while in test mode, Klarna only show a restricted list of payment methods. There may be some payment methods that you expect to see based on your location, but are only available when using a live account. If you're not sure, you can contact Klarna support to see if the specific payment method you're looking for will display in test mode or not.
Follow the notes on the Klarna documentation for creating a test account: https://docs.klarna.com/resources/test-environment/
Contact klarna for info. Know more? Feel free to edit this page with info.
Contact klarna for info. Know more? Feel free to edit this page with info.
en_US
and USD, in Germany they support de-DE
and en-DE
with a currency of EUR. More details here.If you have tips, experience, or helpful notes related to this gateway that would benefit others, please add them below, including your name and the date. We reserve the right to edit or remove comments that don't add value to this page.