This file contains hidden or 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
exports.handler = function(context, event, callback) { | |
var SquareConnect = require('square-connect'); | |
var Twilio = require('twilio'); | |
var accessToken = context.accessToken; | |
var locationId = context.locationId; | |
var messageBody = event.message; | |
var number = event.number; | |
This file contains hidden or 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
const STRIPE_SECRET = 'STRIPE_SECRET'; | |
// const keyPublishable = 'pk_test_19ahJzPH2xE2Dd9zhqv6R6fR'; | |
const STRIPE_SECRET = 'sk_test_ZqMsK6wX4raLqGcICamzZiP9'; | |
const express = require('express'); | |
const bodyParser = require('body-parser'); | |
const path = require('path'); | |
const stripe = require('stripe')(STRIPE_SECRET); |
OlderNewer