how can i perform a function when a paid plan renews?

The onPlanPurchased() event is only triggered on initial purchase - not on renew.