Wix.Billing

I have been trying to create a function to produce daily alerts when a user signs up for our market place app. This alert should send an email from the app to a specified email address. I am having difficulty working with the function though and wondered if anyone else had used this? Wix.Billing.getProducts(OnSuccess, OnError);