Skip to main content
This guide shows how to recreate the core of the Mercor Clone demo using Whop Rails. You’ll build the key pages, wire up payments through embedded Whop checkout, and pay connected accounts at scale. To see the example repository, visit the Mercor clone repository. Otherwise, follow the tutorial below to get started:
Set environment variables
Install dependencies

1) Project structure and pages

Create an App Router structure (Next.js) that mirrors the marketplace flows. Add recruiter pages for funding and managing gigs, earner pages for payouts and submissions, and an admin surface if needed. Folder structure
Example minimal recruiter balance page
Example minimal earner payouts page

2) Payment flow with Whop Checkout Embed

Server: create a Whop checkout configuration (one-time plan) that includes your own metadata to link payments back to the recruiter account.
Client: open an “Add Funds” modal and embed the Whop checkout with @whop/checkout-react.
Webhook: receive Whop payment events and credit recruiter balance on payment.succeeded.

3) Connected account payouts (company setup + payout portal)

Create a Whop sub-company (earner account) under your platform company. Store the returned whopId to route transfers.
Embed a payout portal (pseudo-code)
  • This shows the intended composition. Wire your real UI or SDK accordingly.
Gig completion: transfer funds from platform to earner sub-company using the earner’s whopCompanyId and an idempotency key per submission.
That’s the core of the Mercor-style marketplace. Recruiters fund balances through payments, earners set up payout accounts (sub-companies), and completed gigs transfer money to earners minus your platform fee. Reference repository: Mercor clone