Home Forums Basel support forum Klarna integration

Klarna integration

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #346128

    madpeter
    Participant

    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

    #346238

    Hello,

    We do not have the instruction on where the code should be inserted, please try to find out it in the plugin support or developer who provided the code.

    If you have any questions please feel free to contact us.

    Best Regards

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)