PayFence Live Demo

Walk through real API monetization flows. Each demo uses live PayFence tokens, real quota tracking, and authentic 402 Payment Required responses.

Server-side calls (BFF pattern)Tokens never exposed to browserReal PayFence API calls

API Provider Demos

Step-by-step API call demos showing token auth, quota metering, and 402 responses.

Consumer App Demos

Real consumer apps built on PayFence-protected APIs. See what your API customers would build.

Architecture

Browser (You)
    |
    +--- Demo Console (BFF) --------+--- TravelAgent (BFF) ----+--- DealFinder (BFF) ------+
    |    Step-by-step API demos     |    Travel search app     |    Price comparison app   |
    |                               |                          |                           |
    v                               v                          v                           |
PayFence Gateway -----> FakeExpedia API     FakeAmazon API <---+
(proxy mode)            (origin-protected)  (middleware mode)
                                            + FakeBestBuy (mock)
                                            + FakeWalmart (mock)

All API tokens remain server-side. The browser never sees or sends PayFence tokens directly. This is the Backend-For-Frontend (BFF) pattern.

200 OK

Request authorized, quota deducted, response returned.

402 Payment Required

Quota exhausted. Response includes checkout URL.

403 Forbidden

Direct origin access blocked. Must go through gateway.