-
Notifications
You must be signed in to change notification settings - Fork 0
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
stripe subscription E2E payment integration #33
Conversation
8a326f4
to
c582970
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good and is well structured. One suggestion, to improve clarity would be to add some comments in the code, not just in the functions and structs declarations, but also around the more complex parts of the logic or third party code.
c582970
to
27a65e3
Compare
27a65e3
to
5b412b7
Compare
5b412b7
to
6b17e26
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some nits
- Add subscription checkout endpoints (/checkout, /checkout/{sessionID}) - Handle subscription lifecycle webhooks (created, updated, deleted) - Update database schema for subscription and plan models - Add Stripe client methods for checkout session management - Document new subscription API endpoints and error handling
6b17e26
to
346f7a5
Compare
This commit represents a significant integration of Stripe's subscription payment system, allowing organizations to manage their subscriptions through Stripe's checkout process while maintaining synchronization with the application's database.
Key changes
API Routes & Handlers:
POST /subscriptions/webhook
Database Schema Updates
* Added StripePriceID field
Error Handling: