From b6847976737e118728047014c370a05507736978 Mon Sep 17 00:00:00 2001 From: Michiel Gerritsen Date: Mon, 19 Aug 2024 15:00:29 +0200 Subject: [PATCH] Bugfix: Prevent multiple customer addresses #800 --- view/frontend/web/js/view/checkout/save-payment-method.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/view/frontend/web/js/view/checkout/save-payment-method.js b/view/frontend/web/js/view/checkout/save-payment-method.js index 63562310f97..5bd1bc0208f 100644 --- a/view/frontend/web/js/view/checkout/save-payment-method.js +++ b/view/frontend/web/js/view/checkout/save-payment-method.js @@ -1,3 +1,8 @@ +/* + * Copyright Magmodules.eu. All rights reserved. + * See COPYING.txt for license details. + */ + define([ 'ko', 'uiComponent', @@ -64,7 +69,8 @@ define([ extension_attributes: {} }; - payload.billingAddress = quote.billingAddress(); + // Do not send the billing address, this is saved by Magento itself + // payload.billingAddress = quote.billingAddress(); /** * Problem: We need to set the payment method, therefor we created this function. The api call requires