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

Add Stripe donation form #620

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Sep 8, 2024

  1. Add Stripe donation form

    Add donation form with Stripe integration and success/failure pages.
    
    * **Donation Form**: Add input fields for donation amount, name, and email address in `src/components/forms/donate-form.tsx`. Implement form submission to create a Stripe Checkout session and handle errors.
    * **API Route**: Add `src/pages/api/create-checkout-session.ts` to handle Stripe Checkout session creation. Configure Stripe library and define request handler to create a session.
    * **Success Page**: Add `src/pages/donate-success.tsx` to display a success message after a successful donation.
    * **Failure Page**: Add `src/pages/donate-failure.tsx` to display a failure message after a failed donation.
    
    ---
    
    For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Vets-Who-Code/vets-who-code-app?shareId=XXXX-XXXX-XXXX-XXXX).
    jeromehardaway committed Sep 8, 2024
    Configuration menu
    Copy the full SHA
    f5a5e1c View commit details
    Browse the repository at this point in the history