PayPal
Ghost

PayPal + Ghost

How to use Ghost and PayPal together

Embed payment buttons from PayPal directly into your content in Ghost and collect payments for your membership content

If you’re using PayPal as a payment gateway, then you may want to integrate PayPal directly with your Ghost site. It’s possible to embed PayPal buttons on any Ghost site, and you can add new PayPal customers as Members in Ghost, to give them direct access to premium membership content.

This guide explains how to create and embed PayPal buttons on a Ghost site using sensible HTML embeds, and how to automatically add new customers as members of your Ghost site.

Create a PayPal business account

In order to create PayPal buttons, you’ll need an active PayPal business account. You can either create one from scratch, or convert an existing personal PayPal account to a business account.

Create a PayPal button

Navigate to the Seller Tools area of your PayPal dashboard and locate the PayPal Buttons option:

PayPal business dashboard - seller tools

From here, you can decide whether to create a “Buy Now” button for one-off payments, or a “Subscribe” button for recurring subscriptions.

Buy button options in PayPal for business

You can embed as many PayPal buttons as you like on your Ghost site, but it’s recommended to keep your pricing structure simple to avoid confusing potential customers. The most popular pricing configuration are two plans for monthly and yearly subscriptions.

In order to create this pricing structure, you’ll need to create two Subscribe buttons in PayPal. The first step allows you to select a name, currency, amount and billing cycle for your Subscribe buttons:

Creating a subscription buy button in PayPal

Tip: In the advanced settings area, you can optionally redirect people to a custom URL on your site when checkout is complete (such as your site’s homepage, or a custom welcome page), or if someone leaves before completing payment.

Creating a Buy Button with PayPal - Advanced Options

Use the button embed code

Once you’ve created your button(s), use the embed code provided to add the buttons to your website:

Embed code for PayPal Buy Buttons

You can use this code anywhere on your Ghost site, by creating an HTML card in the editor:

Adding an HTML card in the Ghost editor

It’s also possible to use the PayPal embed code directly in Ghost theme files too, which is useful if you’re creating a custom /subscribe/ page within your theme, for example.

Create a Zapier automation

Connect your PayPal account using a Zapier automation to give your customers automatic access to member only content on your site.

Zapier automatically creates new Members in Ghost each time someone makes a successful sale from your PayPal buttons:

PayPal > Ghost Zapier Integration

This is useful if you’d prefer to use PayPal as a payment provider instead of Stripe, or if you want to create one-off payments as well as subscriptions.

Turn free member sign up off

The final step is to turn Allow free member signup off in your Members settings inside Ghost:

Allow free member signup in Ghost

This means you can use the Members only content access level to publish premium content, that only your paying Members who subscribed via PayPal will be able to access 🎉