Skip to content

Instantly share code, notes, and snippets.

View scottdixon's full-sized avatar

Scott Dixon scottdixon

  • Shopify
  • Gold Coast, Australia
View GitHub Profile
const express = require('express')
const app = express()
const crypto = require('crypto')
const secretKey = '<your secret key>'
const bodyParser = require('body-parser')
app.use('/webhooks', bodyParser.raw({ type: 'application/json' }))
app.use(bodyParser.json())
app.post('/webhooks/orders/create', async (req, res) => {