Skip to content

Commit

Permalink
fixed and deprecated payment.isRefundable
Browse files Browse the repository at this point in the history
  • Loading branch information
janpaepke committed Sep 27, 2024
1 parent 812130a commit 16dc0c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/data/payments/PaymentHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ export default class PaymentHelper extends Helper<PaymentData, Payment> {
* 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;
}

/**
Expand Down

0 comments on commit 16dc0c9

Please sign in to comment.