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

@bigimatt14 You could keep current status in a DB collection, and base the checking of the new status based on the stored status.