Skip to content

Commit

Permalink
Update postback.js
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis committed Jan 29, 2024
1 parent 6ceac44 commit 862ca70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/routes/pagarme/postback.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exports.post = ({ appSdk }, req, res) => {
console.log('checking pagarme', pagarme.postback.verifySignature(apiKey, verifyBody, signature))
}

if (!pagarme.postback.verifySignature(apiKey, verifyBody, signature) && (storeId != 51372)) {
if (!pagarme.postback.verifySignature(apiKey, verifyBody, signature) && (storeId != 51372) && verifyBody && signature) {
return res.sendStatus(403)
}

Expand Down

0 comments on commit 862ca70

Please sign in to comment.