diff --git a/packages/payments-plugin/src/mollie/mollie.helpers.ts b/packages/payments-plugin/src/mollie/mollie.helpers.ts index 8d18491dd2..321bda73ef 100644 --- a/packages/payments-plugin/src/mollie/mollie.helpers.ts +++ b/packages/payments-plugin/src/mollie/mollie.helpers.ts @@ -86,17 +86,6 @@ export function toAmount(value: number, orderCurrency: string): Amount { }; } -/** - * Checks if the Vendure order amount due is the same as the given Mollie amount. - * E.g. does '1000 EUR' equal { value: '10.00', currency: 'EUR'}? - */ -export function isAmountEqual(orderCurrency: CurrencyCode, amountDue: number, mollieAmount: Amount): boolean { - if (orderCurrency !== mollieAmount.currency) { - return false; - } - return amountToCents(mollieAmount) === amountDue; -} - /** * Return to number of cents. E.g. '10.00' => 1000 */ diff --git a/packages/payments-plugin/src/mollie/mollie.service.ts b/packages/payments-plugin/src/mollie/mollie.service.ts index ac8c3213a3..76790a761f 100644 --- a/packages/payments-plugin/src/mollie/mollie.service.ts +++ b/packages/payments-plugin/src/mollie/mollie.service.ts @@ -41,7 +41,6 @@ import { amountToCents, areOrderLinesEqual, getLocale, - isAmountEqual, toAmount, toMollieAddress, toMollieOrderLines,