Escrow Payments Implementation for Marketplace

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:
Development stages
Latest works
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    847
  • image_website-sbh_0.png
    Website development for SBH Partners
    999
  • image_website-_0.png
    Website development for Red Pear
    451

Implementation of Escrow Payments on Marketplace

Escrow is a mechanism for conditional funds holding: buyer pays, money is held by platform and released to seller only after delivery confirmation. This is a key trust tool on marketplaces where seller and buyer are strangers.

Why Escrow is Needed

Without escrow, buyer risks paying without receiving goods. Seller risks sending goods without payment. Escrow solves both problems: money exists, but neither party controls it until conditions met. Standard for marketplaces from Avito to Wildberries.

Implementation Options

Own escrow on platform balance — money arrives at platform's account, internal accounting of obligations to each seller. Most common for Russian marketplaces.

YuKassa for Marketplaces (Split Payments) — YuKassa holds funds and distributes them to seller accounts (seller onboarded in YuKassa) with platform commission retention. Requires seller registration in YuKassa.

Stripe Connect — equivalent for international platforms. Platform creates Connected Accounts for sellers, uses Transfer + Destination Charge. Stripe holds funds and manages payouts.

Data Model for Own Escrow

escrow_transactions (
  id, order_id, buyer_id, seller_id,
  amount, currency,
  status: pending | held | released | refunded | disputed,
  held_at, release_trigger: delivery_confirmed | auto_timeout | admin_release,
  released_at, payment_id,
  notes
)

-- Platform balance (summary accounting)
platform_escrow_balance (
  total_held,       -- sum of all active escrow
  available,        -- funds available for payouts
  updated_at
)

Escrow Lifecycle

Buyer pays for order
          ↓
  Funds held (status: held)
          ↓
   ┌──────┴──────────┐
Delivery      Dispute opened
confirmation    ↓
   ↓        Arbitration
 release       ↓      ↓
   ↓       refund   release
To seller  To buyer To seller

Automatic Release

If buyer doesn't confirm or dispute order within N days after delivery — funds release automatically. Protects sellers from situation where buyer "forgets" to confirm.

// Scheduler: every 6 hours
$autoRelease = EscrowTransaction::where('status', 'held')
    ->whereHas('order', function($q) {
        $q->where('delivered_at', '<', now()->subDays(config('escrow.auto_release_days')));
    })
    ->get();

foreach ($autoRelease as $tx) {
    EscrowService::release($tx, 'auto_timeout');
}

Typical timeout: 7–14 days after delivery. For high-value goods — longer.

Partial Release

On partial return (goods arrived but with defect) part of amount releases to seller, part returns to buyer. Split negotiated during arbitration.

YuKassa Split Integration

// Create payment with split
$payment = $client->createPayment([
    'amount' => ['value' => '5000.00', 'currency' => 'RUB'],
    'transfers' => [
        [
            'account_id' => $seller->yookassa_account_id,
            'amount' => ['value' => '4250.00', 'currency' => 'RUB'], // minus commission
            'platform_fee_amount' => ['value' => '750.00', 'currency' => 'RUB']
        ]
    ],
    // ... other parameters
]);

Transfer created deferred — funds not transferred to seller until explicit confirmation.

Legal Aspects

Agent scheme (platform as seller's agent) — most common legal structure for RF marketplaces. Agent contract with each seller regulates escrow conditions, payment terms and schedule. Important to set up before launch — FTA may qualify storage of others' money without contract as illegal banking.

Monitoring and Reporting

  • Daily reconciliation: sum of held in DB must match actual account balance
  • Alert if discrepancy > 1%
  • Escrow register by sellers for finance department
  • Report on hold periods (average, maximum) — delivery problem indicator

Development timeline: 6–8 weeks for complete escrow system with payment provider integration, arbitration, and automatic release.