Skip to content
Marketplace · Paid chat & video · 2020–2021

A marketplace where every message and video call is paid

A platform where experts sell their time: clients pay for each chat message or book an hourly video call. Payments run in an internal token currency topped up with crypto, so the usual card processors were not an option. We built most of the backend.

Platform architecture on a laptop: web app, backend API, video sessions, chat, crypto and wallets
Years
2020–2021
Our part
the backend and its architecture
Payments
internal tokens, crypto top-⁠ups

Challenge

The client had a product idea, a data model and a list of open questions: how to secure the API, how to serve video sessions, how to authenticate the real-time chat, how to store images and time zones safely. Every message and every minute of a call had to be charged correctly, and money could not go through Stripe because clients paid in crypto.

What we built

  • Internal currency and wallets: clients top up a token balance, and every purchase debits and credits the right wallets through a wallet service. Balances can be recalculated from confirmed transactions at any time.
  • Crypto top-⁠ups: invoices are created through a crypto payment gateway, and the backend credits tokens only after the gateway’s payment callback.
  • Orders that always balance: every order creates its paired transactions and only goes through when both succeed. One order type sends a paid message, another books a video session, and cancellation rules depend on who cancels and when.
  • Paid real-time chat: the backend controls who may write in which channel and charges for each message, so a client can’t send more than they paid for.
  • Hourly video calls: a self-hosted OpenVidu media server on AWS, with the backend issuing a session token only for a paid, scheduled order.
  • Expert availability: time slots, booked orders and an online status that switches itself off after an hour unless the expert extends it.
  • A secured GraphQL API on Strapi with policies on every endpoint, soft deletes, media in S3, email through Mailgun and a production set-⁠up on AWS behind a load balancer.

Process

Ross designed the architecture and led the backend, together with one more developer from our team. We answered the client’s open technical questions first, then built and deployed the backend and the integrations through to the release.

Results

  • The platform went to release with paid chat, paid video calls, crypto top-⁠ups and token wallets working end to end.
  • Every charge can be traced to an order and its transactions, and wallet balances can be rebuilt from them.

Screens

Let’s talk

Planning something similar?

Describe your project in the form below, and we’ll reply in writing with how we would approach it. Or book a 30-⁠minute call with our founder about scope, timeline and the team we’d put on it.

Wrocław, Poland · Central European Time

Prefer to write? Describe the task in two or three lines and we’ll reply by email.

    We use your details only to reply. Privacy

    Thank you! Your message is with us, and we’ll reply by email.

    Test mode: the form works, but this preview sends nothing.

    Book a 30-⁠min call