Checkout and orders
What your customer sees when paying with Klarna, what the shop sends to Klarna, how the OpenCart order is confirmed, and how you capture and refund.
What the customer sees
- In the payment step the method appears as Klarna, when the rules in Settings are met.
- In the confirmation step the customer clicks Pay with Klarna.
- Klarna's hosted page opens on
pay.klarna.com(pay.playground.klarna.comin test mode). The customer identifies with Klarna and chooses a payment option. - Klarna sends the customer back to your shop.
| Result at Klarna | What the customer sees |
|---|---|
| Authorisation accepted | The normal OpenCart order success page. |
| Customer cancels or goes back | The checkout page again. |
| Declined, failed or not verified yet | A plain page with the text "Your payment is being verified. Please do not pay again. Contact the store if confirmation does not arrive." and the link Return to checkout. |
The same page appears when the payment could not be opened at all. If the customer clicks Pay with Klarna again for the same order while the first Klarna page is still usable, the shop sends them to that same page instead of opening a second payment.
The shop texts follow the storefront language when it is one of the eight included languages, and English otherwise. Klarna's page uses the language of the billing country, or English when the order was placed in English.
What is sent to Klarna
Klarna receives the order as itemised lines that add up, to the cent, to the order total:
- Products. One line per product with name, quantity, unit price including tax, tax rate and tax amount. Products that require shipping are sent as physical goods, the rest as digital.
- Shipping. One line named "Shipping" with its tax.
- Discounts. Coupons, reward points, gift vouchers and store credit are spread proportionally over the lines as line discounts.
- Tax. The order's tax total. A rounding difference of one cent is assigned to a taxed line.
- Addresses. The billing address with e-mail and telephone, and the delivery address when the order has physical products.
- Reference. The OpenCart order number, to find the order in Klarna Merchant Portal.
The extension never adds an invented line to make the numbers fit. The payment is not opened, and the customer sees the verification page, when:
- the order has another order total with a value, such as a payment fee, a handling fee or a low order fee;
- a discount is combined with shipping and the products have different tax rates;
- a product of the order no longer exists in the catalogue;
- the order has no valid customer e-mail.
How the order is confirmed
When the customer returns and when the worker runs, the shop asks Klarna for the result with your credentials. It confirms the order only if the payment belongs to the same Klarna account, mode and region that opened it, the OpenCart order has not changed, Klarna's order has the same order number, amount and currency, the billing country and delivery address match, and Klarna's risk decision is accepted. Then:
- The order gets your Accepted order status.
- The order history receives the comment
Klarna authorized:followed by the Klarna order ID, orKlarna paid:if Klarna already reports the full amount as captured. - OpenCart reduces stock and sends its confirmation e-mails, with the settings of the order's own store.
This happens once per order. A repeated callback, a second worker run or a late browser return changes nothing.
| Situation | What happens to the OpenCart order |
|---|---|
| Klarna's risk decision is pending | It stays unconfirmed. The worker confirms it when Klarna accepts. Do not ship meanwhile. |
| Risk decision rejected, or Klarna order cancelled, expired or closed | It is not confirmed. |
| Customer cancels, is declined or lets the page expire | It is not confirmed and stays among OpenCart's missing orders. |
| Something does not match or the result is uncertain | Nothing is changed and the payment is marked Review in Klarna. See Payment activity. |
Capturing the payment
An authorisation reserves the payment; it does not collect it. This version has no capture button in OpenCart.
- Ship the order.
- Find it in Klarna Merchant Portal by the OpenCart order number and capture it.
- On its next run the worker sees the capture. When the full amount is captured, Payment activity changes from Authorized — not captured to Paid and confirmed.
Observing the capture only updates the payment record. The order status, stock and e-mails are not touched again, so set the order to shipped or complete yourself. A partial capture keeps the payment as Authorized — not captured.
Refunds and cancellations
Refunds and cancellations are also made in Klarna Merchant Portal; this version has no refund or void button in OpenCart.
- When Klarna reports a full or partial refund, the payment is marked Review in Klarna with the reason "The capture was refunded or partially refunded. Review the native order separately.".
- When you cancel an order in Klarna after it was confirmed, the reason is "The Klarna payment changed after confirmation. Review the order.".
In both cases the OpenCart order is not changed automatically. Update its status and stock yourself.
Still need help?
Open a support ticket from your account and our team will look at your store with you.