Skip to content

v0.4.0 - Init

Choose a tag to compare

@arthurmousinho arthurmousinho released this 24 Nov 14:16
· 7 commits to main since this release
a65e14c

Mockment v0.4.0 - Init

We're excited to introduce Mockment v0.4.0 - Init, bringing product-based checkout sessions and further expanding the capabilities of our local-first payment gateway simulator.

This release connects the Products and Checkout modules, introducing line items, automatic amount calculation, and a more complete product purchasing experience.

What's New

Product-Based Checkout Sessions

  • Introduced support for creating checkout sessions associated with products.
  • Added a dedicated checkout item model to represent products within checkout sessions.
  • Added support for multiple products and configurable quantities in a single checkout.
  • Introduced automatic checkout amount calculation based on product prices and quantities.
  • Added validation for product availability, currency consistency, and checkout amounts.
  • Added support for storing individual product prices within checkout items.

Product & Checkout Integration

  • Introduced relationships between products, checkout items, and checkout sessions.
  • Expanded checkout creation to support standalone, subscription, and product-based flows.
  • Added product information to checkout session responses.
  • Introduced product selection within the checkout creation form.
  • Added a dedicated product picker to simplify checkout configuration.

Checkout Management Experience

  • Added product details and line items to the checkout details page.
  • Introduced product information within interactive checkout sessions.
  • Enhanced checkout interfaces to display purchased products and quantities.
  • Improved visibility into checkout items and associated amounts.

Improvements

Developer Experience & API

  • Expanded checkout API schemas to support product-based sessions.
  • Improved checkout response structures with associated line items.
  • Added product names to checkout session data.
  • Refactored checkout input schemas for better organization and maintainability.
  • Improved consistency across checkout creation flows.

Dashboard & Usability

  • Enhanced checkout creation with product selection capabilities.
  • Improved checkout details with clearer product and line item information.
  • Refined the interactive checkout experience for product-based purchases.
  • Improved consistency between product management and checkout workflows.

Getting Started

Clone the repository and follow the installation instructions in the README.

git clone https://github.com/arthurmousinho/mockment.git
cd mockment
pnpm install
docker compose up -d
pnpm dev

Important Notice

Mockment remains an experimental development and testing tool. It does not process real payments or issue legally valid invoices.

APIs, data models, and behavior may change as the project continues to evolve.


Thank you for following the evolution of Mockment!

Feedback, bug reports, and suggestions are always welcome.