Back to Home

Restaurant Delivery Demo

3-Way Delivery Split

This demo shows how food delivery platforms can automatically split payments between restaurants, delivery drivers, and the platform commission.

Perfect for:

  • • Food delivery platforms (DoorDash, Uber Eats style)
  • • Grocery delivery services
  • • Any on-demand delivery marketplace
  • • Service platforms with multiple stakeholders

Order Details

Mario's Italian Kitchen
1.2 miles away • 25-35 min
Margherita Pizza (Large)$18.50
Caesar Salad$8.50
Garlic Bread$4.50
Subtotal$28.50
Delivery Fee$3.50
Driver Tip$5.00
Total$37.00

Payment Distribution

Restaurant
$27.75
75% • Food cost + profit
Delivery Driver
$5.55
15% • Delivery fee + tip
Platform
$3.70
10% • Service commission
Total Payment$37.00

Order Status

Ready to place order

Implementation Example

// Restaurant delivery split configuration
const deliverySplit = {
  splits: [
    {
      amount: 2775, // $27.75
      label: 'Restaurant Revenue',
      recipient: 'restaurant_account_id',
      percentage: 75
    },
    {
      amount: 555, // $5.55
      label: 'Driver Payment',
      recipient: 'driver_account_id',
      percentage: 15
    },
    {
      amount: 370, // $3.70
      label: 'Platform Commission',
      recipient: 'platform_account_id',
      percentage: 10
    }
  ],
  metadata: {
    orderId: 'ORD-1753541950964',
    restaurantId: 'rest_mario_kitchen',
    driverId: 'driver_john_doe'
  }
};

await gateway.processSplitPayment(deliverySplit);