I'm having trouble implementing the functions from: https://developer.amazon.com/docs/in-skill-purchase/add-isps-to-a-skill.html
Specifically, I am trying to use the getProductsAndEntitlements. I put the functions in my lambda function, and when I call the function, I get this error:
Cannot read property 'areProductsLoaded' of undefined
Also, are there any templates of full skills with In skill purchases?