To add a buy button to WordPress without WooCommerce you need two things: a hosted checkout page that takes the payment, and a button on your site that opens it. There are four ways to place that button: a plugin block, a shortcode, a snippet in a Custom HTML block, or a plain Buttons block with a link.
Here is how to choose between the four, the exact steps for each, what changes on WordPress.com, and when installing WooCommerce is the right call after all.
A store system is the wrong size for one product
WooCommerce is a whole store system. It brings a product catalog, a cart, a checkout and order management into WordPress, along with the settings that go with them. If you sell hundreds of items, that is exactly what you want.
If you sell an ebook, a trial lesson, a workshop seat or three T-shirts, most of it goes unused. The job is smaller: put a button on a page, take the payment, get the money into your account.
A hosted checkout does that job without turning your site into a store. The payment form is served by the checkout provider and the card details go to your payment processor, so they never pass through your WordPress pages. Your site keeps doing what it already does well: explaining the offer.
Four routes at a glance
| Route | What you add in WordPress | What the buyer sees | What it needs |
|---|---|---|---|
| 1. Plugin block | The "Chargedeck Checkout" block | A buy button on the page or post | The free plugin and an API key |
| 2. Plugin shortcode | One line starting [chargedeck | The same buy button, placed by a line of text | The free plugin and an API key |
| 3. Custom HTML block | A two-line snippet | A button that opens the checkout in an overlay | A site that allows script tags |
| 4. Buttons block | Your checkout link as the button URL | The checkout opens as a full page | Nothing extra |
How to pick:
- You run self-hosted WordPress and do not mind one small plugin: use route 1 or 2.
- You would rather not install anything but can paste HTML: use route 3.
- You are on a WordPress.com plan without plugins, or you want the least setup possible: use route 4.
Before any route: make the checkout page
Every route below opens the same checkout page, so build it first. In Chargedeck you connect your own Stripe, PayPal or Square account, add the product name, description and price, and get a link like https://chargedeck.app/p/your-page-slug.
Keep two things from that link: the full address (for route 4) and the last part, the page slug (for routes 1 to 3). If your link ends in /p/trial-lesson, your slug is trial-lesson.
Routes 1 and 2: the free plugin
Install and connect it
- Download the plugin: chargedeck-wordpress.zip (version 1.1.0).
- In WordPress go to Plugins, Add New, Upload Plugin. Choose the zip and click Activate.
- In Chargedeck, open Developers and click Reveal key. Copy the API key.
- Back in WordPress, go to Settings, Chargedeck and paste the key.
Route 1: place the button with the block
Edit the page or post, add the Chargedeck Checkout block where the button should sit, and type your page slug in the block's sidebar. Update the page.
Route 2: place it with the shortcode
Paste this line wherever WordPress accepts shortcodes, such as a Shortcode block:
[chargedeck slug="your-page-slug" text="Buy now"]
The slug part chooses the checkout page and the text part is the button label. A label that names the thing and the price, like text="Get the tab book, $25", tells the buyer what the click does.
One thing to be clear about: the plugin is free to download, but taking payments with it needs a Chargedeck plan. The 7-day free trial counts, and it does not ask for a card. The WordPress plugin guide has the full setup on one page.
Routes 3 and 4: no plugin at all
Route 3: a snippet in a Custom HTML block
- Edit the page and add a Custom HTML block.
- Paste the two lines below, with your own slug.
- Update the page and click the button on the live site.
<a data-chargedeck="your-page-slug">Buy now</a>
<script src="https://chargedeck.app/embed.js" defer></script>
The button opens the checkout in an overlay on top of your page, so the buyer never leaves your site. You can copy the snippet ready-made from the embed generator.
Route 4: a plain Buttons block
- Copy the full link to your checkout page.
- In the WordPress editor add a Buttons block.
- Paste the link as the button's URL and update the page.
No plugin, no code, nothing to keep updated. The buyer taps the button and the checkout opens as a full page. The same address also works in a navigation menu, an email or a social post.
WordPress.com or self-hosted: what changes
On self-hosted WordPress, all four routes are open to you.
On WordPress.com, route 4 works on every plan, because a Buttons block with a link is a standard feature. Plugins (routes 1 and 2) and script tags (route 3) need a WordPress.com plan that allows them. If you are not sure what your plan includes, check it on WordPress.com before you spend time on a route that will not save.
Worked example: a tutor selling a trial lesson
A piano tutor has a WordPress site with a "Lessons" page and wants people to book and pay for a $35 trial lesson. The build:
- A checkout page with the slug
trial-lesson, priced at $35, with the date and time picker switched on so the student picks a slot and pays in one step. - A custom field: "Student's age and current level". The answer arrives with the order.
- An order bump: "Written practice plan after the lesson, $8". It shows right above the pay button.
- On the Lessons page, one shortcode:
[chargedeck slug="trial-lesson" text="Book a trial lesson, $35"]
The arithmetic, on made-up numbers: 12 bookings in a month at $35 is $420. If one student in three adds the $8 practice plan, that is 4 plans, or $32 more, and the average order goes from $35 to about $37.67. This shows how the sums work. It is not a forecast of what your buyers will do.
Two honest notes. Chargedeck does not sync with your calendar, so add each booked slot to your own calendar. And on cost: Chargedeck charges a flat monthly fee from $9.99 and takes 0% of your sales, while your own processor's card fee still applies. More on this kind of setup in taking bookings and deposits online.
When WooCommerce is the right tool
A buy button stops being enough when the selling itself gets complicated. Install WooCommerce if:
- You have a large catalog that buyers need to browse, filter and search.
- You need shipping zones with different rates by destination.
- You track stock across many products.
- You need subscriptions, discount codes or sales tax worked out at checkout. Chargedeck does not do any of the three.
If you already run WooCommerce, you do not have to choose. The same free plugin adds a WooCommerce payment method that sends the cart total to a Chargedeck checkout and marks the order paid by a signed webhook. It works with both the block checkout and the classic checkout. The WooCommerce setup page has the steps, and the WooCommerce payment gateway guide explains how to compare gateways.
