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

feat(compatibility): add support for stripe compatible webhooks #1728

Merged
merged 5 commits into from
Jul 17, 2023

Conversation

Abhicodes-crypto
Copy link
Contributor

@Abhicodes-crypto Abhicodes-crypto commented Jul 17, 2023

Type of Change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates
  • Documentation
  • CI/CD

Description

Add signing support for stripe compatibility layer. So when the merchant registers the stripe compatible webhook url he would get a stripe compatible webhook.

Additional Changes

  • This PR modifies the API contract
  • This PR modifies the database schema
  • This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Registered stripe compatible webhook on stripe dashboard. Once router received the webhook from stripe it triggered another webhook to the same router , same merchant and the source got verified successfully. So outgoing and incoming stripe compatibility webhook is checked.

The webhook was received at stripe compatible endpoint webhook has been sent to merchant, but merchant wasn't able to handle it so error (because I did not provision for that)
image

On the merchant app, the webhook was received from hyperswitch and the source was verified which means the compatibility layer signed properly.
image

Checklist

  • I formatted the code cargo +nightly fmt --all
  • I addressed lints thrown by cargo clippy
  • I reviewed submitted code
  • I added unit tests for my changes where possible
  • I added a CHANGELOG entry if applicable

@Abhicodes-crypto Abhicodes-crypto added A-core Area: Core flows S-waiting-on-review Status: This PR has been implemented and needs to be reviewed A-webhooks Area: Webhook flows A-stripe-compatibility-layer Area: Stripe Compatibility Layer labels Jul 17, 2023
@Abhicodes-crypto Abhicodes-crypto requested a review from a team as a code owner July 17, 2023 11:33
@Abhicodes-crypto Abhicodes-crypto self-assigned this Jul 17, 2023
@Abhicodes-crypto Abhicodes-crypto requested review from a team as code owners July 17, 2023 11:33
dracarys18
dracarys18 previously approved these changes Jul 17, 2023
@Narayanbhat166 Narayanbhat166 changed the title feat(compatibility): add support for stripe compatibile webhooks feat(compatibility): add support for stripe compatible webhooks Jul 17, 2023
Copy link
Member

@NishantJoshi00 NishantJoshi00 left a comment

Choose a reason for hiding this comment

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

Looks good! how did you test the changes?

@inventvenkat inventvenkat added this pull request to the merge queue Jul 17, 2023
Merged via the queue into main with commit 87ae99f Jul 17, 2023
10 checks passed
@inventvenkat inventvenkat deleted the stripe-compatible-webhooks branch July 17, 2023 13:38
@SanchithHegde SanchithHegde removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-core Area: Core flows A-stripe-compatibility-layer Area: Stripe Compatibility Layer A-webhooks Area: Webhook flows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants