← Back to portfolio
Work sample · Real artefact Hanna Klimushka · Senior Product Manager · London
Product spec · excerpt

Paid access & payments: from “I’ll add you by hand” to automatic

The spec behind the most critical module of the Wow PM platform. If it breaks, either paying students are locked out or paid content leaks for free, so it is written around the edge cases.

Product “100 Days with Claude” paid course Module Access & payments My role spec, build, test, release Status live since Oct 2026
Problem

The course lived in Notion. Every purchase meant checking the payment, sharing a page by hand and writing a welcome message. Nobody could say who had access, which button sold, or whether a student who paid had actually been let in.

The access rule, in one sentence
A logged-in user gets full access if they are an admin, or if there is an active, non-expired Enrollment for this product whose user ID or email matches theirs. Everyone else sees the free preview, lesson titles and a lock with a buy button.
Happy path
1 · CABINETClicks “Buy”Checkout link carries the button and traffic source
›
2 · STRIPEPaysStripe sends “checkout completed” to the backend
›
3 · BACKENDCreates Enrollmentproduct, email, amount, source, grant type
›
4 · EMAILSends welcomefrom the support inbox; result logged
›
5 · COURSELessons unlocknext time the student opens the course
User stories & acceptance criteria
US-1 · Buyer

As a student, I want access as soon as I pay, so I can start straight away.

  • Given a successful payment, then an active Enrollment is created with amount, currency and source.
  • The “purchase” welcome email is sent and its status is recorded.
  • All published lessons open on the next visit; no admin action needed.
US-2 · Pay first, register later

As a buyer without an account, I want my access to appear when I sign up.

  • Given an Enrollment with my email and no user ID, when I register with that email, then the course is unlocked.
  • The existing Enrollment is matched by email; nobody has to touch it.
US-3 · Admin grant

As an admin, I want to grant access by type, so the student gets the right message.

  • Type is required: purchase, moved from Notion, gift or other; each type sends its own email.
  • Granting to someone who already has access does nothing; a separate “resend email” action exists.
US-4 · Revoke

As an admin, I want to revoke access without losing the history.

  • Revoking sets the status to revoked with a date; the record is kept for tax purposes.
  • The student sees the preview and a lock on their next visit.
Edge cases I designed for
CaseExpected behaviourWhy it matters
Payer email differs from login emailIf the buyer was logged in when they clicked “buy”, the payment is linked to that account through the checkout reference.The most common support case once email is the customer ID.
Another product sold on the same Stripe accountThe webhook only accepts payments from this course’s payment link; other purchases are ignored.Without the filter, buying the PM course would unlock this course for free.
Webhook endpoint temporarily unreachableStripe retries for up to about three days; a daily health check flags webhook errors and failed welcome emails.Money taken but access not granted is the worst outcome for trust.
Access with an expiry dateEmpty expiry means forever; an expired Enrollment behaves like no Enrollment.Supports time-boxed access without a separate product.
Guest opens a paid lesson linkRedirected to login and back to the same lesson; the return address is validated to block open redirects.Shared links keep working without opening a security hole.
Owner’s test purchasesTest accounts are flagged and excluded from statistics and sales numbers; they can see draft lessons.Clean revenue and conversion data from day one.
Non-payer inspects the page or the networkLesson tables are readable only by admins at database level; a backend function decides what to return. The original Notion link is never sent to non-payers.Hiding a button is not protection; the backend is.
Analytics built into the spec

Each sale stores which button led to it (paywall, end of preview, locked tile, hub pricing) and the traffic source of that session. Upsell blocks log views as well as clicks, so click-through rates are honest. With consent, checkout starts are logged too, giving a funnel from preview to payment.

Out of scope for this release

Automatic access for the PM course (granted manually for now; the data model already supports it). Automated refunds. A public “What’s new” page for students.

Release checklist (before every change to this module)
Test purchase or manual grant → a paid lesson opens.
Non-paying account → preview lessons open, the rest show a lock.
Every buy button → the amount on the payment page matches the price on the site.
Result: access, welcome emails and sales attribution now run without manual work, which is part of the 20+ hours a week of admin the platform automated.
Sanitised excerpt from the platform’s technical documentation (private GitHub repository, Oct 2026). Payment links, endpoints, secrets and personal data removed.

Hanna Klimushka · Senior Product Manager · London · hanna-leads-tech.base44.app