Last active
November 19, 2019 01:47
-
-
Save javichur/4e9a9ea86419ee0f7c23aba7b87c683e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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