Hi
In order to integrate our website with Klarna payments, we need to add two pieces of code to our website. One piece goes right after opening the <body> tag, so there is no issue with it, but we are not sure where we should place another piece.
Let me quote Klarna installation manual:
Refresh placements (optional)
In case the user changes the purchase amount for example by selecting a different size, you will need to refresh the placement. The refresh placement function should be triggered in the code after a change.
<script>
window.KlarnaOnsiteService = window.KlarnaOnsiteService || [];
window.KlarnaOnsiteService.push({ eventName: 'refresh-placements' });
</script>
Can you tell us where that code needs to be placed?
Thanks with advance
Peter