Skip to content

Commit

Permalink
Merge pull request #20 from atolcd-contrib/payload-extender
Browse files Browse the repository at this point in the history
Add payload-extender feature to modify shipping address payload
  • Loading branch information
Fanny DECLERCK authored Jun 20, 2019
2 parents f4ee649 + fe9c022 commit 6904d52
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ define(
'Magento_Checkout/js/model/payment-service',
'Magento_Checkout/js/model/payment/method-converter',
'Magento_Checkout/js/model/error-processor',
'Magento_Checkout/js/model/full-screen-loader'
'Magento_Checkout/js/model/full-screen-loader',
'Magento_Checkout/js/model/shipping-save-processor/payload-extender'
],
function (
ko,
Expand All @@ -33,7 +34,8 @@ define(
paymentService,
methodConverter,
errorProcessor,
fullScreenLoader
fullScreenLoader,
payloadExtender
) {
'use strict';

Expand All @@ -55,6 +57,8 @@ define(
}
};

payloadExtender(payload);

fullScreenLoader.startLoader();

return storage.post(
Expand Down

0 comments on commit 6904d52

Please sign in to comment.