Skip to content

Instantly share code, notes, and snippets.

View javichur's full-sized avatar
🏠
Working from home

Javier Campos javichur

🏠
Working from home
View GitHub Profile
/* 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;
@javichur
javichur / apl_template_export.json
Last active February 9, 2019 23:29
apl_template_export.json --> documentAPL.json + datasourceAPL.json
{
"document": {
"type": "APL",
"version": "1.0",
"theme": "dark",
"import": [
{
"name": "alexa-layouts",
"version": "1.0.0"
}