Back to Home

Marketplace Demo

Multi-Vendor Marketplace

This demo shows how marketplaces can automatically split payments between multiple vendors, with different commission rates per vendor and category.

Perfect for:

  • • E-commerce marketplaces (Amazon, Etsy style)
  • • Digital product platforms
  • • Service marketplaces
  • • Any multi-vendor platform

Shopping Cart

Wireless Earbuds

TechStore Pro
$89.99
Vendor gets 85%Platform fee: 15%

Designer T-Shirt

Fashion Hub
$29.99
Vendor gets 80%Platform fee: 20%

Programming Guide

BookWorld
$49.99
Vendor gets 75%Platform fee: 25%
Subtotal$169.97
Shipping$9.99
Total$179.96

Payment Distribution

TechStore Pro

Vendor Revenue$76.49
Platform Commission$13.50

Fashion Hub

Vendor Revenue$23.99
Platform Commission$6.00

BookWorld

Vendor Revenue$37.49
Platform Commission$12.50
Shipping Revenue
$9.99
100% to platform (logistics)

Total Distribution

Total to Vendors$137.97
Total Platform Revenue$41.99

Implementation Example

// Multi-vendor marketplace split
const marketplaceSplit = {
  splits: [
    {
      amount: 7649, // $76.49
      label: 'TechStore Pro - Wireless Earbuds',
      recipient: 'vendor_1_account_id',
      metadata: { vendorId: 'techstore_pro' }
    },
    {
      amount: 1350, // $13.50
      label: 'Platform Commission - TechStore Pro',
      recipient: 'platform_account_id'
    },,
    {
      amount: 2399, // $23.99
      label: 'Fashion Hub - Designer T-Shirt',
      recipient: 'vendor_2_account_id',
      metadata: { vendorId: 'fashion_hub' }
    },
    {
      amount: 600, // $6.00
      label: 'Platform Commission - Fashion Hub',
      recipient: 'platform_account_id'
    },,
    {
      amount: 3749, // $37.49
      label: 'BookWorld - Programming Guide',
      recipient: 'vendor_3_account_id',
      metadata: { vendorId: 'bookworld' }
    },
    {
      amount: 1250, // $12.50
      label: 'Platform Commission - BookWorld',
      recipient: 'platform_account_id'
    },
    {
      amount: 999, // $9.99
      label: 'Shipping Revenue',
      recipient: 'platform_account_id'
    }
  ],
  metadata: {
    orderId: 'MKT-1753541950934',
    vendorCount: 3,
    totalAmount: 17996
  }
};

await gateway.processSplitPayment(marketplaceSplit);