It’s now time to render the checkout snippet.
From the create order call response, get the
html_snippet property and embed it into your page where you would like the Klarna Checkout to be rendered at.
There are two recommended ways of embedding the HTML snippet, server side or client side.
Embed the HTML snippet in your page served by your backend.
Make sure to keep the script tags within the snippet as you receive them.
The snippet will render the checkout iframe so this is what you should see in your browser:
Make sure to inject the snippet as-is in your main page/frame instead of inside an iframe, object or similar HTML tag since this would causes UI/UX and functionalities issues.