> ## Documentation Index
> Fetch the complete documentation index at: https://memberful.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Sell memberships from a non-WordPress site

> Sell memberships and give members access to their accounts from your website, whether it's custom-built or made with a site builder.

You can sell memberships from any website that lets you add links. Add a purchase link so visitors can buy a membership and an account link so members can manage their subscription. Both work without writing code.

In this guide, we'll explain what Memberful handles, how to connect your website, and how to test everything before accepting payments. If you use WordPress, follow [Set up a WordPress membership site](https://memberful.com/docs/overview/setup-guides/wordpress-membership-site.md) instead.

## How Memberful and your website work together

Each part has a different job:

* **Memberful:** Processes checkout and payments, manages subscriptions, sends member emails, and hosts each member's account page.
* **Your website:** Promotes your membership and links visitors to Memberful to buy a plan, sign in, or manage their account.

With this setup, members check out and sign in through Memberful. From their account, they can manage their subscription, update their billing details, and access their member benefits.

A visitor's path. 1: A visitor clicks a purchase link on your page. 2: Memberful checkout opens. 3: Memberful redirects them to a destination page on your website. Later, 4: the member clicks the account link, and 5: their Memberful account page opens.

A visitor clicks a purchase link on your website, checks out with Memberful, and is redirected to a page on your website, such as the page they started on or a thank-you page. Later, they click your account link to open their Memberful account page.

Adding Memberful links or the checkout code doesn't restrict access to pages on your website.

To share content only members can access without development work, use a space Memberful protects for you: a [member website included with Memberful](https://memberful.com/docs/overview/setup-guides/hosted-member-site.md), a [private newsletter](https://memberful.com/docs/overview/setup-guides/member-newsletter.md), a [paid podcast](https://memberful.com/docs/overview/setup-guides/paid-podcast.md), or a [paid community](https://memberful.com/docs/overview/setup-guides/paid-community.md).

Who should see this content? If anyone, it goes on your website or site builder: home, about, blog, and pricing pages. If only members, it goes in a space Memberful protects: the member website, a private newsletter, podcast, or community.

Your public pages live on your website. Members-only content lives in a space Memberful protects for you.

## If members need to sign in to your own website or app

If members need to sign in to your own website or app to access content included in their plan, you’ll need a custom integration. Your website or app controls which content each member can access. You'll use these tools:

* [OAuth 2.0](https://memberful.com/docs/api-reference/sign-in-for-apps-via-oauth.md) lets members sign in with their Memberful account.
* The [Memberful API](https://memberful.com/docs/api-reference/memberful-api.md) lets you check a member's plans and read or update their data.
* [Webhooks](https://memberful.com/docs/api-reference/webhooks.md) notify your website or app when something changes in Memberful, such as a new order or an ended subscription.

To see how these tools work together, start with [Build a custom app with Memberful](https://memberful.com/docs/api-reference/build-a-custom-app-with-memberful.md). To set up sign-in for a website, see [Sign members into applications via OAuth 2.0](https://memberful.com/docs/api-reference/sign-in-for-apps-via-oauth.md), which covers server-side and single-page applications.

## Sign up and create your plans

[Sign up for Memberful](https://signup.memberful.com/). New accounts start in test mode, where no real payments are taken. You can set up your plans and make test purchases for free.

In the Memberful dashboard, go to **Revenue** → **Plans** and click **Create plan**. For full instructions, see [Create a plan](https://memberful.com/docs/plans/individual-plans/create-a-plan.md).

## Connect your website

To connect your website, add a purchase link and a member account link. You can also add the optional Memberful code to open checkout in an overlay on top of your page in supported desktop browsers.

Memberful can't protect pages on Squarespace, Webflow, Wix, Weebly, or Shopify. To share members-only content, use a [member website, newsletter, podcast, or community](#how-memberful-and-your-website-work-together).

If you use one of these site builders, follow its guide to add your purchase and account links. Add the Memberful code only if you want the overlay. Then continue to [Configure redirects](#configure-redirects).

> [card] [Squarespace](https://memberful.com/docs/plans/promote-and-sell/squarespace.md)

> [card] [Webflow](https://memberful.com/docs/plans/promote-and-sell/webflow.md)

> [card] [Wix](https://memberful.com/docs/plans/promote-and-sell/wix.md)

> [card] [Weebly](https://memberful.com/docs/plans/promote-and-sell/weebly.md)

Memberful doesn't have a Shopify integration, but you can add purchase and account links to your store using the steps below. Memberful and Shopify use separate checkouts, so a membership and a Shopify product can't be bought in the same cart. Members who buy both check out twice: once with Memberful and once with Shopify.

For a custom website, a Shopify store, or any other site builder that lets you add links to your pages, follow the steps below.

### Add a purchase link

In the Memberful dashboard, go to **Revenue** → **Plans**. Select the price you want to sell, then copy its purchase link.

Paste the link into a button or text link on your website, such as a **Join now** button on your pricing page. When a visitor clicks it, Memberful opens checkout for that plan. To learn more, see [Add a link to buy a plan](https://memberful.com/docs/plans/promote-and-sell/add-a-link-to-buy-a-plan.md).

### Add a member account link

Add this link to your website's navigation so members can sign in to their Memberful account, manage their subscription and billing, update their personal information, and [access their member benefits](https://memberful.com/docs/member-interface/subscription/access-member-benefits.md):

```text theme={null}
https://ACCOUNT-URL.memberful.com/account
```

Replace `ACCOUNT-URL` with your account subdomain. In the Memberful dashboard, go to **Website** → **General settings**, then find *Account URL*. To learn more, see [How members sign in to their account](https://memberful.com/docs/member-interface/account/access-their-account.md).

### (Optional) Open checkout in an overlay

Without the Memberful code, purchase links open checkout on a full page. With it, checkout opens in an overlay on top of your page in supported desktop browsers. Safari, Firefox, Brave, and phones use the full-page checkout even with the code installed. To learn more, see [Checkout experience](https://memberful.com/docs/overview/getting-started/checkout-experience.md).

**1. Copy the Memberful code**

In the Memberful dashboard, go to **Website** → **Custom website**, then copy the code provided.

![The Custom website page in the Memberful dashboard with the code to paste into your website's head section](https://mintcdn.com/memberful/w2qQ5n8TqjoASp-M/images/setup-guides/website/memberful-code.png?fit=max\&auto=format\&n=w2qQ5n8TqjoASp-M\&q=85\&s=465eea75895bbb2bdfa8300896e1bc75)

**2. Add the code to every page**

Paste the code into the `<head>` section of your website's shared template, or wherever your platform lets you add code that appears on every page. Save and publish your changes.

**3. Test the overlay**

In a desktop browser other than Safari, Firefox, or Brave, open a page with your purchase link and click it. Checkout should open in an overlay on top of your page. If it opens as a new page, check that the code is on that page and that its subdomain matches your *Account URL* in **Website** → **General settings**.

## Configure redirects

By default, members return to the page they were on before checkout. To send them to a specific page instead, such as a thank-you page, set a redirect for an individual plan or use *After checkout redirect* for all plans. To choose where members go after they sign in, set an *After sign in redirect*. For full instructions, see [Configure redirect settings](https://memberful.com/docs/configuration/other-settings/configure-redirect-settings.md).

## Customize your branding

In the Memberful dashboard, go to **Website** → **Branding** to match your checkout and member account pages to your website. To learn more, see [Customize branding](https://memberful.com/docs/configuration/branding/branding.md).

## Test the member experience

While your account is in test mode, use a [test credit card](https://memberful.com/docs/overview/getting-started/make-test-purchases.md) and a different email address from the one you use to sign in to the Memberful dashboard.

**1. Open the purchase link**

Click the purchase link on your website and confirm that checkout shows the correct plan and price.

**2. Complete checkout**

Make the test purchase and confirm that you arrive on the expected page.

**3. Check the member account**

Open the account link in your website’s navigation and confirm that you can manage the test subscription.

**4. Check access to a member benefit**

As the test member, open a benefit included with the plan, such as a private podcast feed or a members-only post.

Check how checkout opens on both a desktop browser and a phone, especially if you added the overlay code.

## Go live

When you're ready to accept payments, [choose your currency](https://memberful.com/docs/configuration/localization/choose-your-currency.md) and follow the steps to [go live with Memberful](https://memberful.com/docs/account-management/modes/manage-your-account-in-test-mode.md#go-live-with-memberful) and connect your Stripe account.

When you switch to live payments, Memberful deletes your test orders and test member accounts and resets your dashboard metrics. Your settings and customizations carry over.


## Related topics

- [WordPress membership site](https://memberful.com/docs/overview/setup-guides/wordpress-membership-site.md)
- [Add a link to buy a gift](https://memberful.com/docs/discounts-and-gifting/gifts/add-gift-link.md)
- [Import members with existing Stripe Subscriptions](https://memberful.com/docs/overview/import-members/using-stripe-subscriptions.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.