Skip to content

Commit

Permalink
supply numberOfInstallments as null if not set, remove webshop id fro…
Browse files Browse the repository at this point in the history
…m widget
  • Loading branch information
netzkollektiv committed Oct 9, 2024
1 parent f43a5db commit 413fb5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/easycredit-checkout/easycredit-checkout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}))
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/easycredit-widget/easycredit-widget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 413fb5a

Please sign in to comment.