vets-who-code-app icon indicating copy to clipboard operation
vets-who-code-app copied to clipboard

Add Stripe donation form

Open jeromehardaway opened this issue 5 months ago • 1 comments

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.

jeromehardaway avatar Sep 08 '24 06:09 jeromehardaway