Skip to content

Commit 57d84be

Browse files
committed
fixed and deprecated payment.isRefundable
1 parent af6d81c commit 57d84be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/data/payments/PaymentHelper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ export default class PaymentHelper extends Helper<PaymentData, Payment> {
3030
* Returns whether the payment is refundable.
3131
*
3232
* @since 2.0.0-rc.2
33+
* @deprecated Use `canBeRefunded` instead.
3334
*/
3435
public isRefundable(this: PaymentData): boolean {
35-
return this.amountRemaining !== null;
36+
return this.amountRemaining != undefined;
3637
}
3738

3839
/**

0 commit comments

Comments
 (0)