-
Notifications
You must be signed in to change notification settings - Fork 0
Implement Stripe Payment Flow #8
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
Open
google-labs-jules
wants to merge
8
commits into
main
Choose a base branch
from
feature/stripe-payment-flow
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This change introduces a complete payment flow using Stripe. - Adds a 'Pay with Stripe' button to the order details page. - Creates a new API endpoint to generate a Stripe Checkout session. - Implements a Stripe webhook handler to securely confirm payments. - Updates the order status in Firestore upon successful payment, enabling 'autoRenew' and 'hasSupport' flags. - Gates the SSL certificate issuance process, requiring a successful payment before proceeding with ACME operations. - Adds all necessary environment variables to a `.env.local` file for the build process to succeed.
✅ Deploy Preview for securedot ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This commit adds a note about Stripe integration to the README.md file. This minor change is intended to trigger a new preview deployment to showcase the recently implemented payment flow.
This feature removes the entire Stripe implementation and replaces it with a new payment flow using the PayPack API. - Removes all Stripe-related components, API routes, dependencies, and environment variables. - Adds a new PayPack payment UI to the order page, allowing users to pay with their mobile money phone number. - Implements a new API route to initiate payments via the PayPack REST API. - Implements a new webhook handler to securely process payment confirmations from PayPack. - Includes a helper for managing PayPack API authentication and token caching. - The SSL issuance flow is gated and only proceeds after a successful payment is confirmed via webhook.
This commit introduces three new features and improvements to the application:
1. **Domain Name Validation:**
- A new utility function `sanitizeAndValidateDomain` is added to sanitize and validate domain name inputs.
- This validation is applied on the frontend in the Hero section to provide immediate user feedback.
- It is also applied on the backend in the `/api/ssl/check` route for server-side security and data integrity.
2. **Email Verification Flow:**
- New user registration now automatically sends a Firebase verification email.
- A new page is created at `/auth/verify-email` to instruct users on how to verify their account.
- The client dashboard is now a protected route. Logged-in users with unverified emails are redirected to the verification page, preventing access until their email is confirmed.
3. **SEO Improvements:**
- The semantic HTML of the main page has been improved. The root component now uses a `<main>` tag, and the `HeroSection` has been corrected to use a `<section>` tag, improving the page structure for search engines.
This commit introduces three new features and improvements to the application:
1. **Domain Name Validation:**
- A new utility function `sanitizeAndValidateDomain` is added to sanitize and validate domain name inputs.
- This validation is applied on the frontend in the Hero section to provide immediate user feedback.
- It is also applied on the backend in the `/api/ssl/check` route for server-side security and data integrity.
2. **Email Verification Flow:**
- New user registration now automatically sends a Firebase verification email.
- A new page is created at `/auth/verify-email` to instruct users on how to verify their account.
- The client dashboard is now a protected route. Logged-in users with unverified emails are redirected to the verification page, preventing access until their email is confirmed.
3. **SEO Improvements:**
- The semantic HTML of the main page has been improved. The root component now uses a `<main>` tag, and the `HeroSection` has been corrected to use a `<section>` tag, improving the page structure for search engines.
This commit introduces several new features and improvements to the application:
1. **New Documentation:**
- Added several new articles to the documentation section (`/docs`) covering topics such as "What is SSL?", "How the DNS Challenge Works", "Issuing Your First Certificate", and "Billing and Payments".
- Updated the main documentation index page to link to these new articles.
2. **Domain Name Validation:**
- A new utility function `sanitizeAndValidateDomain` is added to sanitize and validate domain name inputs.
- This validation is applied on the frontend in the Hero section to provide immediate user feedback.
- It is also applied on the backend in the `/api/ssl/check` route for server-side security and data integrity.
3. **Email Verification Flow:**
- New user registration now automatically sends a Firebase verification email.
- A new page is created at `/auth/verify-email` to instruct users on how to verify their account.
- The client dashboard is now a protected route. Logged-in users with unverified emails are redirected to the verification page, preventing access until their email is confirmed.
4. **SEO Improvements:**
- The semantic HTML of the main page has been improved. The root component now uses a `<main>` tag, and the `HeroSection` has been corrected to use a `<section>` tag, improving the page structure for search engines.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds a new feature to allow users to pay for SSL certificates using Stripe. It includes frontend UI changes, backend API routes for Stripe integration, and logic to gate the SSL issuance until payment is complete.