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; } /**