Now you should complete the order in the rendered checkout on your webpage, use some fake data to complete the purchase. After completing the purchase you will be redirected to the url in the merchant_urls.confirmation provided in the create order request.
For instance with these merchant urls:
the users would be redirected to:
https://merchant.com/thankyou.php?sid=8cf27b55-53e8-6aba-9fb4-7c692e56ddeewhere 8cf27b55-53e8-6aba-9fb4-7c692e56ddee is an example of
In a live integration you should now use the checkout order id found in the query parametersidfrom the merchant-confirmation url to fetch the order from Klarna. For this guide you need to keep track on the order_id from the create order response return values.
To read the order you will use our REST API and make a HTTP GET request towards the endpoint
/checkout/v3/orders/order_id where you replace
order_id with the the
order_id from the create order response. You need to send the header
content-type: application/json and have an empty body.