Skip to content

Commit 413fb5a

Browse files
committed
supply numberOfInstallments as null if not set, remove webshop id from widget
1 parent f43a5db commit 413fb5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/easycredit-checkout/easycredit-checkout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class EasycreditCheckout {
9898
composed: true,
9999
detail: {
100100
paymentType: this.paymentType,
101-
...(this.selectedInstallment?.numberOfInstallments && { numberOfInstallments: this.selectedInstallment?.numberOfInstallments })
101+
numberOfInstallments: this.selectedInstallment?.numberOfInstallments ?? null
102102
}
103103
}))
104104
}

src/components/easycredit-widget/easycredit-widget.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export class EasycreditWidget {
192192

193193
const params = {
194194
bestellwert: this.amount,
195-
shopKennung: '2.de.7387.2', //this.webshopId,
195+
shopKennung: this.webshopId,
196196
paymentSwitchPossible: this.paymentTypes.split(',').length > 1,
197197
ohneZinsflex: this.disableFlexprice
198198
}

0 commit comments

Comments
 (0)