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

Conversation

jeromehardaway
Copy link
Contributor

@jeromehardaway jeromehardaway commented Sep 8, 2024

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.

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).
Copy link

vercel bot commented Sep 8, 2024

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

Name Status Preview Comments Updated (UTC)
vets-who-code-app ❌ Failed (Inspect) Sep 8, 2024 6:27am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant