Skip to content

Commit

Permalink
chore: avoid send 403 in new account without verify body
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis authored Feb 7, 2024
1 parent f911331 commit 89f1e14
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) || (storeId != 1123)) && verifyBody && signature) {
if (!pagarme.postback.verifySignature(apiKey, verifyBody, signature) && ((storeId != 51372) && (storeId != 1123)) && verifyBody && signature) {
return res.sendStatus(403)
}

Expand Down

0 comments on commit 89f1e14

Please sign in to comment.