Backend event.js OnPlanPurchased function not firing when plan is purchased

Hi,

I am having the same issue as above.

I have my onPlanPurchased set up in the “events.js” in the backend but it’s not firing.

I know it’s not firing because I have tested the code inside the event and it works.

Am I missing something?