From 16dc0c9e7523b8f5c68e4eb0662023b014e5effd Mon Sep 17 00:00:00 2001 From: Jan Paepke Date: Fri, 27 Sep 2024 13:29:56 +0200 Subject: [PATCH] fixed and deprecated payment.isRefundable --- src/data/payments/PaymentHelper.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/data/payments/PaymentHelper.ts b/src/data/payments/PaymentHelper.ts index 0e796a8c..9d7850e0 100644 --- a/src/data/payments/PaymentHelper.ts +++ b/src/data/payments/PaymentHelper.ts @@ -30,9 +30,10 @@ export default class PaymentHelper extends Helper { * Returns whether the payment is refundable. * * @since 2.0.0-rc.2 + * @deprecated Use `canBeRefunded` instead. */ public isRefundable(this: PaymentData): boolean { - return this.amountRemaining !== null; + return this.amountRemaining != undefined; } /**