anchor.diff:  </script>
   
   <script type="text/javascript">
  +  window.addEventListener('load', function() {
     $.fn.klarna = function(options) {
       var settings = $.extend({
         paymentChangedElements: $('input[name="order[payments_attributes][][payment_method_id]"]'),
  
positive.code:       }
      })
  
      $('form.edit_order').on('submit', function (e) {
        var form = this;
        if (klarnaSelected()) {
          e.preventDefault();
  
negative.code:   };
  
    $(".klarna_credit_box").klarna();
    });
  </script>
  