Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.93 KB

File metadata and controls

29 lines (23 loc) · 1.93 KB

E-Commerce Site using Stripe Payment Processor

This is a full-stack e-commerce site using Ruby on Rails app with a PostgreSQL database for product catalog, session-based shopping cart, and optional user accounts. It integrates the Stripe API and webhooks for secure checkout.

Author

Zoe King | Software Developer | Digital Strategist | GitHub | zoemking63@gmail.com | LinkedIn

Features

  • Stripe Checkout integration – Creates secure checkout sessions and processes credit-card payments through the Stripe API without storing card data on the server.
  • Built-in validation – Verifies product/price details, required fields, and cart integrity before initiating a payment.
  • Database ↔ Stripe synchronization – Persists stripe_product_id, stripe_price_id, and stripe_customer_id fields to keep the local Postgres tables in sync with Stripe records.
  • Cart actions – Add/remove items from the cart with real-time session updates. Includes error handling and alerts for duplicate or missing items. (see demo below)
  • Webhook & API connections – Listens for checkout.session.completed events, retrieves line items, and updates local order history and sales metrics. (see demo below)
  • Purchase flow – Full Stripe payment cycle with confirmation page and order summary rendering. Handles both success and failure scenarios gracefully. (see demo below)

Technologies

FRONT END: HTML5 | CSS3 | JavaScript (ES6) | Rails ERB views
BACK END: Ruby on Rails | PostgreSQL
KEY APIs: Stripe Checkout API | Stripe Webhooks
DEVELOPER TOOLS: Bundler | Rbenv

Demos

Cart Actions

Add/Remove Cart Items

Checkout Validation

Validation

Successful Purchase

Purchase Complete