text: /**
   * Copyright © 2013-2017 Magento, Inc. All rights reserved.
   * See COPYING.txt for license details.
   */
  define(
      [
          'mage/storage',
          'Magento_Checkout/js/model/error-processor',
          'Magento_Checkout/js/model/full-screen-loader'
      ],
      function (storage, errorProcessor, fullScreenLoader) {
          'use strict';
  
          return function (serviceUrl, payload, messageContainer) {
              fullScreenLoader.startLoader();
  
              return storage.post(
                  serviceUrl, JSON.stringify(payload)
              ).fail(
                  function (response) {
                      errorProcessor.process(response, messageContainer);
                      fullScreenLoader.stopLoader();
                  }
              );
          };
      }
  );
  