Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ITT-572] Banking Webhooks #1046

Merged
merged 5 commits into from
Jun 8, 2023
Merged

[ITT-572] Banking Webhooks #1046

merged 5 commits into from
Jun 8, 2023

Conversation

jillingk
Copy link
Contributor

@jillingk jillingk commented Jun 5, 2023

Description
Adding Banking Webhooks. This PR contains; a deserializer for the webhook models, added function for calculating hmac validity and unit tests.

@jillingk jillingk requested a review from a team as a code owner June 5, 2023 11:53
wboereboom
wboereboom previously approved these changes Jun 5, 2023
@jillingk jillingk requested review from a team, wboereboom and michaelpaul June 6, 2023 14:45
// Calculate HMAC for BankingWebhooks (Generic webhooks)
public boolean validateHMAC(String hmacKey, String hmacSignature, String payload) throws SignatureException {
String calculatedSign = calculateHMAC(payload, hmacSignature);
System.out.println(calculatedSign);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need to print on the console during validation ?

@jillingk jillingk merged commit ba04176 into develop Jun 8, 2023
5 checks passed
@jillingk jillingk deleted the ITT-572 branch June 8, 2023 08:12
@jillingk jillingk restored the ITT-572 branch June 8, 2023 08:21
jillingk added a commit that referenced this pull request Jun 8, 2023
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.

None yet

3 participants