anchor.diff:          submitButton: null,
           orderId: null,
           sessionUrl: "/checkout/state/klarna_order_status",
  -        updateSessionUrl: "/checkout/state/klarna_update_session"
  +        updateSessionUrl: "/checkout/state/klarna_update_session",
  +        loader: $('<div class="loader"></div>')
         }, options);
   
         if (!settings.orderId && this.data('orderId') !== undefined) {
           settings.orderId = this.data('orderId');
  -        settings.paymentUrl = "/checkout/payment"
  +        settings.paymentUrl = "/checkout/payment";
         }
   
         if (settings.submitButton) {
           settings.submitButton.attr('disabled', true).removeClass('primary').addClass('gray');
  +        settings.submitButton.after(settings.loader);
         }
   
  -      var updateSession= function (response) {
  +      var updateSession = function(response) {
           return $.ajax({
             method: 'POST',
             url: settings.updateSessionUrl,
  
positive.code: 
      .hiddden {
        display: none;
      }
    </style>
  
  
negative.code:         }).done(function() {
            if (response.approved) {
              settings.submitButton.attr('disabled', false).addClass('primary').removeClass('gray');
              settings.loader.hide();
            } else {
              window.location.assign(settings.paymentUrl)
            }
  