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
const verifyWebhook = async event => { | |
const keys = []; | |
keys.push(event.headers['X-DocuSign-Signature-1']); | |
keys.push(event.headers['X-DocuSign-Signature-2']); | |
const crypto = require('crypto'); | |
const hmac = crypto.createHmac('sha256', DOCUSIGN_SECRET_KEY); | |
hmac.write(event.body); | |
hmac.end(); | |
const computedKey = hmac.read().toString('base64'); |
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
'use strict'; | |
var AWS = require('aws-sdk'); | |
console.log('Loading function'); | |
exports.handler = (event, context, callback) => { | |
var parseString = require('xml2js').parseString; | |
//slice date from Date and Time object | |
var today = new Date().toISOString().slice(0, 10); |
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
package com.max.Actions; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import org.apache.struts.action.Action; | |
import org.apache.struts.action.ActionForm; | |
import org.apache.struts.action.ActionForward; | |
import org.apache.struts.action.ActionMapping; |