From 413fb5a5340d6d67f58c8e6c31dc23e94b3454b3 Mon Sep 17 00:00:00 2001 From: NETZKOLLEKTIV Date: Wed, 9 Oct 2024 11:54:43 +0200 Subject: [PATCH] supply numberOfInstallments as null if not set, remove webshop id from widget --- src/components/easycredit-checkout/easycredit-checkout.tsx | 2 +- src/components/easycredit-widget/easycredit-widget.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/easycredit-checkout/easycredit-checkout.tsx b/src/components/easycredit-checkout/easycredit-checkout.tsx index 4d1e266..dafbb38 100644 --- a/src/components/easycredit-checkout/easycredit-checkout.tsx +++ b/src/components/easycredit-checkout/easycredit-checkout.tsx @@ -98,7 +98,7 @@ export class EasycreditCheckout { composed: true, detail: { paymentType: this.paymentType, - ...(this.selectedInstallment?.numberOfInstallments && { numberOfInstallments: this.selectedInstallment?.numberOfInstallments }) + numberOfInstallments: this.selectedInstallment?.numberOfInstallments ?? null } })) } diff --git a/src/components/easycredit-widget/easycredit-widget.tsx b/src/components/easycredit-widget/easycredit-widget.tsx index e5a6963..f2b103c 100644 --- a/src/components/easycredit-widget/easycredit-widget.tsx +++ b/src/components/easycredit-widget/easycredit-widget.tsx @@ -192,7 +192,7 @@ export class EasycreditWidget { const params = { bestellwert: this.amount, - shopKennung: '2.de.7387.2', //this.webshopId, + shopKennung: this.webshopId, paymentSwitchPossible: this.paymentTypes.split(',').length > 1, ohneZinsflex: this.disableFlexprice }