Skip to content

Payments Domain

Overview

The Payments domain handles all payment processing, invoicing, and financial transactions within the Wedissimo marketplace.

Status: Planned Module Location: modules/Payments/ (to be created)

Domain Responsibilities

  • Payment processing (Stripe integration)
  • Invoice generation and management
  • Refund processing
  • Payment method management
  • Transaction history and receipts
  • Vendor payout management
  • Payment dispute handling
  • Financial reporting

Core Entities (Planned)

Payment

  • Transaction records
  • Payment status tracking
  • Payment method details
  • Amount and currency

Invoice

  • Invoice generation
  • Line items
  • Tax calculations
  • Payment status

Payout

  • Vendor payouts
  • Payout schedules
  • Payout methods
  • Commission calculations

Integration Points

Bookings Domain

  • Process booking deposits
  • Handle final payments
  • Refund cancelled bookings

Vendors Domain

  • Vendor payout accounts
  • Commission calculations
  • Earning statements

Communications Domain

  • Payment confirmation emails
  • Invoice delivery
  • Failed payment notifications

Technology Stack

  • Laravel Cashier (Stripe)
  • Stripe API
  • PDF generation for invoices
  • Webhook handling for payment events

To Be Implemented

This domain is in the planning phase. Key implementation tasks:

  1. Define payment flow architecture
  2. Set up Stripe integration
  3. Design invoice schema
  4. Implement payout calculation logic
  5. Create payment reconciliation processes
  6. Build admin payment dashboard
  7. Implement financial reporting

Wedissimo API Documentation