diff --git a/functions/index.js b/functions/index.js index 0b23b0d..ba7496f 100644 --- a/functions/index.js +++ b/functions/index.js @@ -50,6 +50,9 @@ exports.shopdmPayWebhook = onRequest( if (!isValid) { console.error("Invalid webhook signature"); + console.error("Received signature:", signature); + console.error("Payload keys:", Object.keys(payload).sort().join(", ")); + console.error("Secrets tried:", secrets.length); res.status(401).send("Unauthorized"); return; }