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 Jan 27, 2025
1 parent af6d81c commit 57d84be
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 57d84be

Please sign in to comment.