Velvet Rope for Craft CMS

Velvet Rope is a Craft 6 plugin. Craft 6 is still in beta, and so is Velvet Rope (6.0.0-beta.1) — it takes payments, so test every flow in Stripe test mode and use caution on production sites.

Craft 6 · Beta — use caution on production

Memberships, behind the rope

Velvet Rope connects Stripe to Craft 6 users. A plan is a Stripe price and a user group: people who pay are let in, people who stop paying are shown out — after a grace period you choose. Stripe Checkout takes the money, Stripe's billing portal handles cards and cancellations, and you gate pages with one tag in Twig or Blade.

Velvet Rope

Gate a page in one line

Twig and Blade get the same API, so the rules can't drift. Guests go to log in, non-members to your join page, members straight through. A gate given anything but plan handles fails closed.

twig
{# Twig #}
{% requireMembership 'gold' %}
{% if velvetRope.subscribed('gold') %}Welcome back.{% endif %}
<a href="{{ velvetRope.checkoutUrl('gold') }}">Join Gold</a>
<a href="{{ velvetRope.billingUrl() }}">Manage billing</a>

{{-- Blade --}}
@requireMembership('gold')
@subscribed('gold') Welcome back. @endsubscribed

// Laravel routes
Route::get('members/video', VideoController::class)
    ->middleware(['craft', 'craft.web', 'member:gold']);

Features

Stripe does the billing. Velvet Rope decides who's in.

Plans are user groups

Map each Stripe price to a Craft user group. Active, trialing and paid-to-period-end members are in; a failed renewal keeps them in for your grace period, then out. Groups Velvet Rope doesn't manage are never touched.

Webhooks that can't be faked

Laravel Cashier on its own accepts unsigned webhooks when no secret is set — enough for anyone to grant themselves a paid group. Velvet Rope refuses every webhook until the signing secret is configured, and every handler is safe to retry.

Members and MRR in the CP

A Members screen with plans, status and monthly recurring revenue — normalised to a month, after recurring discounts, trials excluded — and a Membership tab on every user with their Stripe subscriptions.

Guest checkout, safely

Let visitors pay before they have an account. The account is created pending, from the email they paid with, and only the owner of that inbox can activate it. Paying never signs anyone in.

Multi-site, GraphQL, Blade

Checkout returns to the site the visitor came from, in its language. A read-only velvetRopePlans query feeds headless pricing pages. Every template feature works in Twig and Blade.

Pro: gifts, promo codes, dunning, plan gates

Sell gift memberships with one-time codes, apply Stripe promotion codes from a link, email members whose card fails, give complimentary access, and gate whole sections or URI patterns by plan — no template changes.

Frequently Asked Questions

The questions worth answering before you install it.

Try it in Stripe test mode

Velvet Rope is a Craft 6 beta plugin on a beta CMS, and it handles money — start on a staging site with Stripe test keys and use caution on production.

More plugins

Pairs well with Velvet Rope