DEV Community

Human-Reviewed Membership Applications on a Static Site

A static blog can serve pages without a backend, but it cannot verify a payment by itself. That becomes a real problem when part of the audience pays with WeChat Pay or Alipay: the payment providers may not give a small independent site a reliable server-to-server callback, and the site owner still needs to decide who gets membership.

On wuhuajin.com, I solved this with a deliberately low-tech approach: a small API, a public application form, and a human review step. It is not as elegant as a fully automated checkout, but it is honest, auditable, and works with the payment methods readers actually use.

This article describes the flow I built, the data model behind it, and the security decisions that keep a manual review queue from becoming a liability.

Why manual review

The site already had a hosted checkout for international readers. That flow handles recurring billing, receipts, and card payments. Domestic readers, however, often prefer WeChat Pay or Alipay, and those payments do not always produce a callback that a small site can trust.

I considered three alternatives:

  • Ask readers to send a screenshot and wait for manual approval. This is common, but it creates a private inbox full of payment images, and the images are easy to fake or reuse.
  • Use a payment aggregator with a domestic callback. This adds another account, another fee layer, and another integration to maintain.
  • Record the application, verify the payment manually, and grant membership from an admin page. This keeps the decision explicit and leaves an audit trail.

I chose the third option. It is not a payment system. It is an application system with a human decision at the end.

The important product decision was to describe it that way on the page. The form does not promise instant activation. It says the application will be reviewed, and it gives the reader a realistic expectation.

The reader flow

The subscription page has three parts:

  • a short explanation of what membership includes;
  • the current plans and payment methods;
  • a form that creates an application record.

The form asks for:

  • email address, used to match the application and send the result;
  • optional display name;
  • amount paid;
  • payment method;
  • optional note;
  • a checkbox confirming that the reader wants to apply for membership.

The amount and payment method are not free-form text in the normal flow. They are selected from the plan and method the reader used. The note is the only open text field. This reduces the chance of inconsistent records and makes later reporting much easier.

After submission, the API writes one application row and returns a receipt. The reader sees a confirmation page with the application ID and a short explanation of what happens next.

I deliberately do not ask for a payment screenshot. The screenshot is sensitive, takes storage space, and is not necessary for the review decision if the amount and method are recorded correctly. If a payment needs more evidence, the reviewer can ask for it through a private channel instead of storing it by default.

The application record

The core table is intentionally small:

CREATE TABLE membership_applications (
  id INTEGER PRIMARY KEY AUTOINCREMENT,
  email TEXT NOT NULL,
  display_name TEXT,
  amount INTEGER NOT NULL,
  currency TEXT NOT NULL DEFAULT 'CNY',
  method TEXT NOT NULL,
  note TEXT,
  status TEXT NOT NULL DEFAULT 'pending',
  created_at TEXT NOT NULL,
  reviewed_at TEXT,
  reviewer TEXT,
  membership_days INTEGER,
  decision_note TEXT
);

The status values are deliberately separate from membership state:

  • pending: waiting for review;
  • approved: membership granted;
  • support_only: payment accepted as support, but no membership;
  • rejected: application declined;
  • duplicate: another application already covers the same payment.

This separation matters because “approved” and “membership active” are not the same thing. A payment can be legitimate support without crossing the membership threshold. The email template and the admin page must reflect that difference. Sending “your membership is active” to a support-only payment is a trust bug, not a cosmetic issue.

The membership_days field is filled only when membership is granted. The actual expiry date is calculated from the approval time and stored in the membership record, not in the public application row.

The admin review link

The reviewer needs to open a page, see the application, and make a decision. I did not want to build a full login system for a single admin. Instead, the API generates a short-lived signed review link.

The link contains:

  • the application ID;
  • an expiry timestamp;
  • an HMAC signature over both values.

The review page validates the signature before showing any data. The link is not a password, and it is not reused as a general admin credential. It is scoped to one application and expires quickly.

A few details make this safer:

  • the signing secret lives only on the API server;
  • the review page is noindex and not linked from the public site;
  • the endpoint rate-limits invalid attempts;
  • every decision writes an audit row with time, reviewer label, and previous status;
  • the page shows the full record, but the public API never returns the email or internal decision note.

For a one-person operation, this is enough. It avoids the maintenance cost of a full auth system while keeping the review action out of the public surface.

What the reviewer sees

The review page is organized around the decision, not around the database:

  • Payment summary: amount, method, date, and the reader’s note.
  • Applicant: email and optional display name.
  • Risk signals: duplicate email, amount below the membership threshold, unusually recent repeat applications.
  • Decision: approve membership, mark as support only, reject, or mark duplicate.
  • Membership duration: prefilled from the plan, but editable when an admin needs to grant a manual exception.
  • Decision note: internal only.

The duration field is editable on purpose. A hard rule such as “amount must be at least X” is useful for the default, but it should not prevent an admin from granting membership for a special case. The default reduces review time; the override preserves judgment.

When the reviewer approves, the API:

  1. updates the application status;
  2. creates or extends the membership record;
  3. writes an outbox event for the notification;
  4. returns a confirmation page with the final status.

The notification is not sent inside the request handler. It is queued, so a slow email provider or a rate-limited chat webhook cannot leave the application half-updated. That queue is a separate design, but the important contract is simple: the database transaction commits the decision and the notification intent together.

The email and chat notification

There are two notification channels: email to the applicant; a chat message to the admin team. They serve different purposes and must not share a template.

The applicant email says:

  • the application was received;
  • the decision;
  • what happens next;
  • how to reply if something is wrong.

The admin chat message says:

  • a new application arrived;
  • the amount and method;
  • a signed review link;
  • a short summary, not the full private record.

Both messages are generated from the outbox event, not from the HTTP request. If the email provider is down, the event stays pending and retries. If the chat webhook is rate-limited, the worker backs off. The review decision is already committed, so a notification failure does not roll it back.

Edge cases I had to handle

Duplicate applications

A reader may submit twice because the first confirmation was missed. The API checks for an existing pending application with the same email and amount within a short window. If found, it returns the existing application instead of creating a second row. The reviewer can still merge or reject duplicates manually.

Support without membership

Not every payment is a membership payment. A reader may send a small amount as a tip. The review page has a separate “support only” decision, and the email template changes accordingly. This avoids the awkward situation where a thank-you payment receives a membership activation email.

Amount below the threshold

The form can preselect “membership: no” when the amount is below the plan threshold. The reviewer can override it. The default saves time; the override keeps the system fair.

Refunds and reversals

A refund is not handled by deleting the application. The record stays, the status changes to refunded, and the membership record is adjusted. Deleting rows would destroy the audit trail and make reconciliation harder.

Email delivery failure

The application is still valid if the email bounces. The admin page shows the last delivery status, and the reviewer can resend the notification from the outbox. The membership is not revoked because an email failed.

What I would improve next

The current flow works, but three improvements are obvious:

  1. A small reviewer dashboard. The signed-link flow is fine for a few applications per day. A dashboard with filters and bulk actions would help if volume grows.
  2. A payment reference field. A masked transaction reference would make reconciliation easier without storing screenshots. It must never be exposed in the public support ledger.
  3. A clearer separation between application and membership tables. Right now the application row carries a duration field for convenience. A dedicated membership table with its own history would be cleaner for extensions and expirations.

None of these are required for correctness. They are scale improvements.

The lesson

Manual review is often treated as a temporary workaround. On a small site, it can be a legitimate product design: it supports the payment methods people use, keeps sensitive evidence out of the database, and gives the owner a clear audit trail.

The important part is not the admin page. It is the contract around it:

  • record the application, not the screenshot;
  • separate “approved” from “membership active”;
  • make the default decision fast and the override possible;
  • commit the decision and the notification intent together;
  • keep private fields out of every public response.

That contract is what makes a low-tech flow trustworthy.

This article describes the domestic membership application flow on wuhuajin.com, a static blog with a small API for membership and notifications. The implementation favors explicit review over automatic activation, and keeps payment evidence out of the public data model.

Originally published on wuhuajin.com.

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.