Ghost's built-in payments are for memberships, which means paid subscriptions to your publication. To sell a product or a one-off offer, such as an ebook, a workshop seat or a print, you add a buy button that opens a separate checkout. In the Ghost editor that takes one HTML card.
This guide covers three placements (inside a post, across the whole site and in a newsletter), a worked example with the arithmetic, and the points where this setup stops.
Memberships and products are two different jobs
| Ghost memberships | A product checkout | |
|---|---|---|
| What the reader buys | Ongoing access to your publication | One thing, once |
| How they pay | A subscription that renews | A single payment |
| Where you set it up | Inside Ghost | On a checkout page, opened from a button in Ghost |
| Examples | A paid newsletter, members-only posts | An ebook, a workshop seat, a call, a print, a one-off tip |
Keep both. Memberships are the right tool for ongoing reader support, and nothing in this guide replaces them. The checkout used in the steps below is Chargedeck, a checkout page builder that takes payment on your own Stripe, PayPal or Square account. Chargedeck does not do subscriptions or recurring billing at all. It handles the right-hand column only.
What a publication can sell with a buy button
Each of these maps to something a checkout page can do:
- An ebook or an essay collection. Add a delivery link, and buyers get it after paying.
- A one-to-one call or a coaching session. A date and time picker lets the buyer choose a slot and pay in one step.
- A print, a tote or a shirt. Offer sizes and colors with stock per option. Sold-out options show as sold out.
- One-off support. A pay what you want page, with an optional minimum and a suggested amount, suits readers who want to chip in without subscribing. See our guide to pay what you want pricing.
- A classified ad or sponsor slot in your newsletter. Use custom fields to collect the ad text and link with the order.
Placement 1: a buy button inside one post or page
First build the checkout page in Chargedeck and copy its link. The last part of that link is the page slug, which the snippet needs.
- Open the post or page in the Ghost editor and put the cursor where the button should appear.
- Type
/htmland press Enter. An HTML card opens. - Paste the two lines below, with your own slug in place of
your-page-slug. - Publish or update the post.
<a data-chargedeck="your-page-slug">Buy now</a>
<script src="https://chargedeck.app/embed.js" defer></script>
On the published post the button opens the checkout in an overlay on top of the article, so the reader is not sent away from the piece they were reading. You can copy the snippet with your slug already filled in from the embed code generator.
What to write around the button
A button on its own gives the reader nothing to decide with. Put one or two sentences directly above it that cover three things:
- What it is, in plain words: "All thirty essays in one PDF."
- What it costs: "$15, one payment."
- What happens next: "You get the download link as soon as you pay."
Placement 2: load the script once for the whole site
If the same offer will sit at the end of many posts, or you plan to sell more than one thing, stop pasting the script each time.
- In Ghost, go to Settings, then Code injection.
- Paste the script line into Site footer and save.
- From now on, an HTML card only needs the button itself.
The footer holds this, once:
<script src="https://chargedeck.app/embed.js" defer></script>
And each HTML card holds only this, with the slug of the product you are offering in that post:
<a data-chargedeck="your-page-slug">Buy now</a>
Placement 3: newsletters need a plain link
Ghost can send a post to your subscribers by email, and email apps do not run scripts. A snippet in an HTML card will not open an overlay inside an inbox. For anything that goes out as a newsletter, use the link method:
- Copy the link to your checkout page.
- In the editor, add a Button card.
- Type the button text and paste the checkout link as its URL.
The reader taps the button in the email and your checkout opens as a normal page in their browser. A text link in a sentence works the same way. The link is a payment link in its own right, so you can reuse it anywhere else you write.
Which placement to use where
| Where the reader is | Use | What they see |
|---|---|---|
| One post or page on your site | HTML card with both lines | Checkout in an overlay on the article |
| Many posts across your site | Script in Code injection, button line in each HTML card | Checkout in an overlay on the article |
| An email newsletter | Button card or text link | Checkout opens as a page in the browser |
| A post that is both published and emailed | Button card | Works in both places |
The Ghost checkout guide has the same snippets on one page for quick reference.
A worked example: an essay collection at the end of every post
Say you publish a free weekly essay and have gathered the best thirty into a PDF priced at $15. You build one checkout page with the price and a delivery link to the file. You add an order bump, a one-tap add-on shown right above the pay button: "Audio edition, all thirty essays read aloud" for $6.
The script goes into Code injection, the button line goes into an HTML card at the end of each essay, and Friday's newsletter gets a Button card with the link. Now the arithmetic for a month in which 30 readers buy and 10 of them add the bump:
- Collection: 30 x $15 = $450.
- Bump: 10 x $6 = $60.
- Total taken: $510.
- Card fees at Stripe's standard US online rate of 2.9% + 30 cents, as of November 2026: 2.9% of $510 is $14.79, plus 30 x $0.30 = $9.00, so $23.79. This goes to your processor.
- Chargedeck Starter: $9.99 for the month, a flat fee that takes 0% of your sales.
- Left for you: $510 minus $23.79 minus $9.99 is $476.22.
These are made-up sales figures to show the sums, not a forecast. To learn whether the site or the email did the selling, put a UTM tag on the newsletter link. UTM tags follow the order.
Where this setup stops
A buy button is a small addition to a publication, not a store system. Know the edges before you rely on it:
- No subscriptions. Anything that renews belongs in Ghost memberships.
- Two separate lists. A purchase does not make the buyer a Ghost member, and your checkout does not know who your members are. If you want buyers on your newsletter, invite them to sign up.
- No discount codes. Chargedeck does not have coupon or discount codes, so a members-only code is not an option.
- No tax calculation. Chargedeck does not calculate sales tax or VAT. Set tax-inclusive prices or handle it in your accounting.
- No file hosting. The delivery link points to wherever you already keep the file, such as your cloud storage.
- Refunds happen at your processor. You make them in your Stripe, PayPal or Square dashboard.
If what you really want is a platform that acts as the legal seller and handles sales tax, look at a merchant of record instead. Our guide to selling digital products without a marketplace explains that trade-off.
