•   over 1 year ago

Cannot read property 'getMonetizationServiceClient' of undefined

In my LaunchRequest handler, I am getting an error by following the instructions at https://developer.amazon.com/docs/in-skill-purchase/add-isps-to-a-skill.html#get-products

const LaunchRequestHandler = {
canHandle(handlerInput) {
return handlerInput.requestEnvelope.request.type === 'LaunchRequest';
},
handle(handlerInput) {

const locale = handlerInput.requestEnvelope.request.locale;
const ms = handlerInput.serviceClientFactory.getMonetizationServiceClient();

~~~~ Error handled: TypeError: Cannot read property 'getMonetizationServiceClient' of undefined

Comments are closed.