anchor.diff:        }
       })
   
  -    $('form.edit_order').on('submit', function (e) {
  +    $('#checkout_form_payment').on('submit', function (e) {
         var form = this;
         if (klarnaSelected()) {
           e.preventDefault();
  
positive.code:   };
  
    $(".klarna_credit_box").klarna();
  </script>
  
negative.code: </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]"]'),
  