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: add stripe webhook integration for subscriptions #74

Merged
merged 3 commits into from Dec 21, 2022

Conversation

brandonroberts
Copy link
Contributor

What type of PR is this? (check all applicable)

  • πŸ• Feature
  • πŸ› Bug Fix
  • πŸ“ Documentation Update
  • 🎨 Style
  • πŸ§‘β€πŸ’» Code Refactor
  • πŸ”₯ Performance Improvements
  • βœ… Test
  • πŸ€– Build
  • πŸ” CI
  • πŸ“¦ Chore (Release)
  • ⏩ Revert

Description

This PR:

  • Adds a stripe/webhooks endpoint to listen for Stripe webhooks
  • Adds the STRIPE_WEBHOOK_SECRET to the .envrc template
  • Adds an entity for managing subscriptions

Related Tickets & Documents

Mobile & Desktop Screenshots/Recordings

Added tests?

  • πŸ‘ yes
  • πŸ™… no, because they aren't needed
  • πŸ™‹ no, because I need help

Added to documentation?

  • πŸ“œ README.md
  • πŸ““ docs.opensauced.pizza
  • πŸ• dev.to/opensauced
  • πŸ“• storybook
  • πŸ™… no documentation needed

[optional] Are there any post-deployment tasks we need to perform?

[optional] What gif best describes this PR or how it makes you feel?

@brandonroberts brandonroberts changed the title feat: add Stripe webhook integration for subscriptions feat: add stripe webhook integration for subscriptions Dec 20, 2022
Copy link
Contributor

@0-vortex 0-vortex left a comment

Choose a reason for hiding this comment

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

LGTM! πŸ‘

Are there any steps needed to support thisp like migrations or adding secrets?

src/stripe-webhook/stripe-webhook.controller.ts Outdated Show resolved Hide resolved
@brandonroberts
Copy link
Contributor Author

Yes, we'll need to add the STRIPE_WEBHOOK_SECRET and I'll also add the DB migration files

@brandonroberts brandonroberts marked this pull request as ready for review December 21, 2022 18:50
@brandonroberts brandonroberts merged commit b9d5a6e into beta Dec 21, 2022
@brandonroberts brandonroberts deleted the feat-stripe-webhooks branch December 21, 2022 20:21
github-actions bot pushed a commit that referenced this pull request Dec 21, 2022
## [1.21.0-beta.1](v1.20.0...v1.21.0-beta.1) (2022-12-21)

### πŸ• Features

* add stripe webhook integration for subscriptions ([#74](#74)) ([b9d5a6e](b9d5a6e))
@github-actions
Copy link

πŸŽ‰ This PR is included in version 1.21.0-beta.1 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

github-actions bot pushed a commit that referenced this pull request Dec 22, 2022
## [1.21.0](v1.20.0...v1.21.0) (2022-12-22)

### πŸ• Features

* add stripe webhook integration for subscriptions ([#74](#74)) ([b9d5a6e](b9d5a6e))
@github-actions
Copy link

πŸŽ‰ This PR is included in version 1.21.0 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants