Skip to content

Commit f3dbcd3

Browse files
Merge pull request #8 from seamapi/fix-readme-code-snippet
Fix usage code snippet in readme
2 parents b930ba0 + c84b3ee commit f3dbcd3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ app.post(
9595
'/webhook',
9696
bodyParser.raw({ type: 'application/json' }),
9797
(req, res) => {
98+
const payload = req.body
99+
const headers = req.headers
98100
let data
101+
99102
try {
100103
data = webhook.verify(payload, headers)
101104
} catch {

0 commit comments

Comments
 (0)