Skip to content

Feat/issues950#1070

Merged
yusuftomilola merged 4 commits into
DistinctCodes:mainfrom
memplethee-lab:feat/issues950
Jun 2, 2026
Merged

Feat/issues950#1070
yusuftomilola merged 4 commits into
DistinctCodes:mainfrom
memplethee-lab:feat/issues950

Conversation

@memplethee-lab
Copy link
Copy Markdown
Contributor

Closes #950

created both files:

✅ paystack-webhook.util.ts:

verifyPaystackSignature(rawBody, signature, secret): boolean
Uses crypto.createHmac('sha512', secret).update(rawBody).digest('hex')
Compares using crypto.timingSafeEqual for constant-time comparison (prevents timing attacks)
Returns false (doesn't throw) on signature mismatch
Returns false if signature or secret is empty
Gracefully handles errors (e.g., invalid hex)
Closes #951

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 2, 2026

@memplethee-lab is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 2, 2026

@memplethee-lab Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Copy link
Copy Markdown
Collaborator

@yusuftomilola yusuftomilola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work

@yusuftomilola yusuftomilola merged commit c068ffb into DistinctCodes:main Jun 2, 2026
1 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BE-12] Add Paystack Webhook Signature Verifier utility [BE-11] Add Workspace Pricing Calculator with VAT and discount support

2 participants