Confirming the purchase means that you have received and created an order in your system. This confirmation is needed in response to a push notification from Klarna, indicating that the customer has completed a purchase.
A customer has completed a purchase and you want to create the associated order in your system.
A customer has completed a purchase with KCO.
Once a customer has completed a purchase, KCO will notify you by sending a POST request. The POST request will be sent to the push notification URL that you provided when you created the checkout order.
There is approximately a 2 minute delay before the order-confirmation push to the merchants is attempted.
For instance with these merchant urls:
You would receive a POST request to the push
URL with the placeholder {checkout.order.id}
replaced with the correct order_id and an empty body.
For example: https://merchant.com/kco/push.php?klarna_order_id=12345
You should now use the order id found in the query parameter klarna_order_id
to fetch the order from the Order Management API.
The confirmation page might fail to load for a number of reasons, even though the purchase is confirmed by Klarna. However, once you receive a POST request at the push confirmation endpoint, you can be assured that the purchase was successful and you should make sure that you have created the order and create if it doesn’t exist. The full resource structure of an order can be found in the API Reference.
You should now send a request to KCO saying that you acknowledge the order. This will stop any further POST requests to the push notification URL from being sent.
KCO will keep sending the push notifications after 5, 15, 30, and 60 minutes and then after every 4 hours for a total of 48 hours or until you confirm that you have received the order. After 48 hours we will stop sending notifications, but the order is still open and can be captured or updated as normal.
At this point, the order has been confirmed and you can proceed with the next steps. Once you have shipped the product, you need to capture the order in order to finalize the payment. The order can be found at Klarna’s Merchant Portal or you can integrate with our Order Management platform using the APIs provided.