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

Adds the Stripe payment gateway API for subscriptions and billing #1

Merged
merged 2 commits into from
Jun 23, 2024

Conversation

deepsingh132
Copy link
Owner

This pull request introduces the integration of the Stripe Subscriptions API to handle recurring subscription payments for the AI SaaS Podcast App OnAir.Ai. This enhancement ensures a robust and reliable payment gateway for managing user subscriptions and billing.

Changes and Implementations

1. Stripe Subscriptions API Integration:

  • Stripe SDK: Added the Stripe Node.js SDK to the project dependencies.
  • API Endpoints: Created new API endpoints to handle subscription creation, management, and webhook events from Stripe.
  • Subscription Management: Implemented functions to create, update, and cancel subscriptions through the Stripe API.
  • Webhook Handling: Added webhook endpoints to listen to and handle events such as subscription updates, payments, and cancellations from Stripe.

2. User Interface Enhancements:

  • Subscription Plans Page: Developed a new page where users can view and select subscription plans.
  • Payment Form: Implemented a secure payment form using Stripe Elements to capture payment details.
  • Subscription Management UI: Added sections in the user dashboard to view and manage current subscriptions.

3. Backend Modifications:

  • Database Schema: Updated the database schema to store subscription details such as plan type, status, and Stripe customer ID.
  • Service Layer: Added a service layer to handle business logic related to subscriptions and payments.
  • Error Handling: Improved error handling to gracefully manage payment failures and other related issues.

4. Security and Compliance:

  • Secure Payment Processing: Ensured all payment processes comply with PCI DSS standards by leveraging Stripe's secure infrastructure.
  • Data Protection: No sensitive payment data is stored on our servers; Stripe handles all sensitive data.

Copy link

vercel bot commented Jun 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
aionair ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2024 8:38pm

@deepsingh132
Copy link
Owner Author

LGTM 👍

@deepsingh132 deepsingh132 merged commit 51fb4bf into main Jun 23, 2024
4 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.

None yet

1 participant