Skip to content

Instantly share code, notes, and snippets.

@javichur
Last active November 19, 2019 01:47
Show Gist options
  • Save javichur/4e9a9ea86419ee0f7c23aba7b87c683e to your computer and use it in GitHub Desktop.
Save javichur/4e9a9ea86419ee0f7c23aba7b87c683e to your computer and use it in GitHub Desktop.
/* in-skill purchases */
const PurchaseHandlers = require('./handlers/purchaseHandlers.js');
const initPurchaseHandlers = {
process(handlerInput) {
PurchaseHandlers.methodPostPurchase = initializeSkill; // reload session after purchase, etc.
PurchaseHandlers.methodPostRefund = initializeSkill; // reload session after refund, etc.
PurchaseHandlers.LOC = LOC; // strings
PurchaseHandlers.speakPostPurchase = LOC.t.SPEAK_POST_PURCHASE;
PurchaseHandlers.speakPostRefund = LOC.t.SPEAK_POST_REFUND;
},
};
/* end in-skill purchases */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment