Case study

The payment and content access platform Recast Pay

Recast Pay is a payment and access layer that a content owner connects to their own website. We worked on the wallet, the ledger, the purchase service and the API and SDK for partners.

Industry
Payments, Media
Country
United Kingdom
Timeline
since 2024
Team
3-4 people
Recast Pay: Payments and Access
£500k+in one week

Sales of a single sports partner settled through Recast Pay

01 Starting point

Where we started

Recast Pay is a payment and content access layer that a content owner connects to their own website. The content stays with the partner, on their site and in their player. Recast Pay handles the viewer's wallet, the purchase, the revenue split and the confirmation that the viewer has access. The product grew out of the micropayments of the Recast streaming platform. The wallet, the ledger and the purchase service had been running there for years, but only for video watched in Recast. Sports partners wanted to sell access on their own sites, without moving viewers to another platform. Selling live events has one hard property: most viewers buy access in the last 5-10 minutes before the start. In that window the system has to accept tens of thousands of purchases and settle each of them correctly.

Recast needed to separate payments from its own player and offer them as a service that a partner integrates with their site. The money had to add up even when the network, the payment provider or one of the services fails.

02 Timeline

From micropayments in a video platform to a separate product

  1. Until 2023

    Micropayments in the streaming platform

    The wallet, the ledger and the purchase service handle video watched in Recast.

  2. March 2024

    Purchase from an external site

    An external service can start a purchase of its own product for its own user.

  3. July 2024

    Libraries for partners

    Libraries for the browser, React and Node.js, plus example applications.

  4. January 2025

    A partner without video in Recast

    A new account type: the partner uses only the payment and access API and keeps the content on their side.

  5. February 2025

    Sandbox environment

    Partners test the integration without real payments.

  6. In production

    Over £500k in one week

    Sales of a single sports partner settled through Recast Pay within a week.

03 What we did

What we delivered

01

Purchase on the partner's site

A partner adds the purchase to their own website. The viewer buys in a popup or after a redirect and comes back with confirmed access to the content. The partner uses its own product and user identifiers and has ready-made libraries and a test environment.

02

Digital wallet

A viewer has a wallet with credits and tops it up by card. The wallet accepts deposits in several currencies, and publishers withdraw their earnings from it.

03

Financial ledger

Every operation is recorded on both sides, as in accounting, and entries cannot be changed or deleted. The history of every account can be reconstructed down to a single credit.

04

Protection against double spending

Two simultaneous purchases will not spend the same funds, and a balance will not go below zero. A transaction enters the ledger in full or not at all.

05

Automatic revenue split

Every purchase is split straight away between the content owner, collaborators, the referrer and the platform commission. Tax is charged according to the rules of the buyer's country.

06

Resilience to failures and retries

When the network fails and a purchase is sent a second time, the viewer does not pay twice. A card payment is booked only once, even when the payment provider reports it several times.

07

Refunds and failed payments

A refund reverses the settlement for every party in the split. Refunds can be made one at a time or in bulk, with a reason given. A failed card payment leaves no credits in the wallet.

08

Passes and content rights

A partner sells single products, passes for a whole channel and access for a set number of days. They can run a presale and limit sales to selected countries.

09

Advertiser-funded credits

A viewer can earn credits by watching an ad. The cost is covered by the advertiser's account, with a daily limit per viewer.

04 What changed

Payments before Recast Pay and today

Where a purchase worksBeforeOnly in the Recast applicationAfterOn the partner's site, in a popup or through a redirect
What can be soldBeforeVideo published in RecastAfterAny partner product, described by the partner's identifier
Who buysBeforeA user with a Recast accountAfterThe partner's user, linked to a wallet
IntegrationBeforeNoneAfterAn API, an SDK and a sandbox environment
05 How we worked

How the work was run

Recast Pay was not built from scratch. The wallet, the ledger and the purchase service were already running on the streaming platform, so the work started with separating them from video: a product and a user had to be describable by the partner's identifiers, not Recast's. The API and libraries for partners came next. Purchases on the Recast platform itself were moved onto the same mechanism, so both paths use one ledger.

The mechanisms that for years settled video inside one platform now work as a standalone payment and access service on partners' sites.

Scope of work

We worked on the mechanisms responsible for money and access, and on how a partner integrates them.

A double-entry ledger, balance locking, deposits, withdrawals and support for multiple currencies.

Price lists, purchases, purchase intents and signed access confirmations.

Splitting every purchase between the parties and charging tax by country.

API keys, an OpenAPI specification, libraries for the browser, React and Node.js, a sandbox environment.

Single and bulk refunds, handling of failed payments, manual balance adjustments in the admin panel.

Events written in a transaction with the data, and consumers that tolerate repeated delivery.

Technologies

Node.js
TypeScript
PostgreSQL
Kafka
Amazon Redshift
React
AWS
Kubernetes
What our clients say
All members of the Codino team fit seamlessly into our delivery teams, building excellent relationships and always willing to go the extra mile to deliver on our Roadmap in a timely and efficient way. We have built extremely good relationships with them and they feel just like part of the team
Pete WillcoxVP Product, Recast

Let's Talk About Your Project

Get In Touch
Maciej Roman|CEO & Co-founder

Not sure where to start? Begin with the AI Readiness Audit