Stripe → access DB → CI

CI tests for the access table behind your Stripe paywall.

Gatefit replays refunds, disputes, duplicate webhooks and past_due in CI and checks the access row your app writes. A 200 from Stripe is not access.

Buy for $49

  • 17 transitions free
  • GitHub Action
  • $49 one-time
example run · cus_9fQ21 failed

Stripe events

  1. 1customer.subscription.created
  2. 2invoice.paid
  3. 3charge.refunded

access_rows

fieldexpectedactual
planpropro
statusrefundedrefunded
lockedtruefalse
  1. paid_grants_access
  2. trial_to_paid_grants
  3. refund_revokes_access expected locked: true
  4. 16 passed · 1 failed · merge blocked

How a Gatefit run works

Stripe events go in. Your adapter writes the row. Gatefit checks the access row, not the webhook.

  1. 01

    Replays the Stripe event

    charge.refunded
  2. 02

    Runs your access adapter

    adapter.apply(event)
  3. 03

    Checks the access row

    locked: true
locked: false fails the build locked: true passes, exit 0

17 Stripe transitions, checked for free

Each one is a billing change. The pill is how access ends up.

Payments and refunds4

  • Paid invoice unlocks

    Access kept
    paid_grants_access
  • Refund → access revoked

    Access revoked
    refund_revokes_access
  • Dispute → locked

    Locked

    Features clear. Plan and seats stay.

    dispute_revokes_or_flags
  • Duplicate event ignored

    Locked

    The same event applies once. A replay does not undo a cancel.

    duplicate_webhook_idempotent

Trials3

  • Trial payment unlocks

    Access kept

    Trialing stays locked until then.

    trial_to_paid_grants
  • Paid after no card

    Access kept

    The trial stays locked until a payment. The trial warning never changes access.

    trial_no_card
  • Paid after the pause

    Access kept

    Pause and a failed resume stay locked. Resuming does not grant or revoke.

    trial_end_pause_resume_waits_for_paid

Subscription changes6

  • Cancel → access revoked

    Access revoked

    It locks as soon as the subscription is deleted.

    cancel_revokes_access
  • Open until period end

    Locks at period end

    Access stays on until the period ends, then locks.

    cancel_at_period_end_keeps_access_until_end
  • Downgrade keeps access

    Access kept

    Scheduled waits for the period to end. Immediate changes the plan now.

    portal_downgrade_period_end_vs_immediate
  • Upgrade stays open

    Locks at period end

    Plan and seats change right away. Locks when the period ends.

    upgrade_plus_cape_race
  • Seat count updates

    Access kept

    The new quantity replaces the stored seat count.

    seat_qty_vs_db_cap
  • Summary sets features

    Access kept

    It does not lock or unlock. Unpaid stays locked.

    entitlements_active_summary

Pauses and retries4

  • Past due recovers

    Access kept

    A failed payment locks it until a later one is paid.

    past_due_denies_until_recovery
  • Unpaid stays locked

    Locked

    From the failed payment through cancel.

    unpaid_after_retries_revokes
  • Latest invoice recovers

    Access kept

    Failed retries lock it until that invoice is paid. A repeated failure does not lock it again.

    smart_retries_unpaid_then_paid_recovers
  • Uncollectible locks

    Locked

    A pause keeps access and does not grant. An uncollectible invoice with no pause locks.

    pause_collection_keeps_access_all_behaviors
See every golden

Free core, $49 for chaos mode and packs

The free core is the CLI, the Action, and the Stripe goldens (S1–S12 and Phase 2, 17 goldens). The $49 Indie License unlocks only chaos mode and the Polar and Paddle packs.

Free

$0

  • npx gatefit and the GitHub Action
  • gatefit init adapter scaffold
  • S1–S12 goldens
  • Phase 2 goldens
Read the quickstart

Indie License

$49 one-time

  • Unlocks chaos mode, Polar and Paddle packs
  • Everything in Free
--suite chaos--suite polar--suite paddle
Buy for $49

Chaos mode checks the access row when deliveries are duplicated, reordered, stale, late, or dropped.

Ship the gate before the refund

Run the free CLI today, or buy the Indie License for chaos mode and the Polar and Paddle packs.

Service statusUptime for the site, npm, Action, Polar and telemetry