getCancelledSubscriptionsWithEndDate
SolvaPay SDK / react/src / getCancelledSubscriptionsWithEndDate
Function: getCancelledSubscriptionsWithEndDate()
getCancelledSubscriptionsWithEndDate(
subscriptions):SubscriptionInfo[]
Defined in: packages/react/src/utils/subscriptions.ts:40
Get cancelled subscriptions with valid endDate (not expired)
Returns subscriptions with cancelledAt set and status === 'active' that have a future endDate. Backend keeps cancelled subscriptions as 'active' until expiration.