Hi All - as per the Alexa ISP doc turoprail I have been tryin to access the request mapped to ON_PURCHASE as below:
ON_PURCHASE() {
const name = this.$request.name;
const productId = this.$alexaSkill.$inSkillPurchase.getProductId();
const purchaseResult = this.$alexaSkill.$inSkillPurchase.getPurchaseResult();
const token = this.$request.token;
I can see all the info in the request in the terminal but when I try and console.log both the token and the name I just get “undefined” logged. I should be getting “Cancel” in the event that a refund has taken place.
Any ideas why this is happening? Why can’t I access this data
TIA