Skip to main content

getCancelledPurchasesWithEndDate

SolvaPay SDK v1.0.0


SolvaPay SDK / react/src / getCancelledPurchasesWithEndDate

Function: getCancelledPurchasesWithEndDate()

getCancelledPurchasesWithEndDate(purchases): PurchaseInfo[]

Defined in: packages/react/src/utils/purchases.ts:40

Get cancelled purchases with valid endDate (not expired)

Returns purchases with cancelledAt set and status === 'active' that have a future endDate. Backend keeps cancelled purchases as 'active' until expiration.

Parameters

purchases

PurchaseInfo[]

Returns

PurchaseInfo[]