Sell digital products on WordPress
One pasted snippet. No plugin, no store migration, no code to maintain.
WordPress powers more small-business sites than everything else combined, and the usual advice for selling a digital product on it is to install WooCommerce — a full store, with a cart, shipping settings and a dozen plugins, to sell one e-book. If your site already does its job and you just need a checkout on a page, a pasted snippet is a much smaller hammer: no plugin to install, nothing to keep updated, nothing that can conflict with your theme.
What you need
A WordPress site you can edit. On wordpress.com specifically, custom scripts require a plan with hosting features — currently called Creator or Entrepreneur (Business on the older plan lineup) — and lower plans strip them out. Self-hosted WordPress has no such restriction.
Add the checkout
- In your SurcoPay dashboard, open Widget Embed, pick your product, and copy the snippet.
- Edit the page or post where you want the checkout.
- Block editor (Gutenberg): click +, search for Custom HTML, and add that block where the checkout should sit.
- Paste the snippet into the block.
- Classic editor: switch the editor tab from Visual to Text first, then paste — the Visual tab will mangle the code.
- Elementor: drag in an HTML widget and paste the snippet there.
- Preview the page — the checkout should render where the block sits — then publish.
The snippet you copy from the dashboard looks like this, with your real product ID filled in:
<!-- SurcoPay Checkout Widget -->
<div id="surcopay-widget-YOUR-PRODUCT-ID"></div>
<script>
(function() {
var script = document.createElement('script');
script.src = 'https://app.surcopay.com/widget.js';
script.async = true;
script.onload = function() {
SurcoPay.init({
productId: 'YOUR-PRODUCT-ID',
theme: 'light',
targetId: 'surcopay-widget-YOUR-PRODUCT-ID'
});
};
document.head.appendChild(script);
})();
</script>
What your buyer sees
The checkout appears right on your page: product name, price, and the payment methods you have enabled — cards, Apple Pay and Google Pay through Stripe, plus PayPal and ATH Móvil. The buyer pays without leaving your website, and the file is delivered to their email automatically with a secure, expiring download link.
How you get paid
Money settles directly into your own Stripe, PayPal or ATH Móvil account — SurcoPay never holds your funds. There is no monthly fee; SurcoPay takes 4.5% of each sale made through Stripe, charged on your product price and never on sales tax. Refund a sale and the fee comes back too.
Common questions
Do I need WooCommerce?
No. WooCommerce is a full store platform. SurcoPay is one snippet on the page you already have — it brings its own checkout, payment methods and file delivery.
Will it clash with my theme or page builder?
The checkout renders inside its own frame, so your theme's CSS cannot break it and it cannot break your theme. It works the same in Gutenberg, Classic, Elementor, Divi or any builder that allows an HTML block.
Do buyers need a SurcoPay account?
No. Buyers just pay — card, Apple Pay, Google Pay, PayPal or ATH Móvil — and receive their download by email. No account, no app.
Is this secure? Does my site touch card data?
Card details go straight from the buyer's browser to Stripe inside a secure frame, and PayPal approval happens on PayPal's own page. Your website never sees or stores payment data, so embedding the checkout does not put your site in scope for card-compliance rules.
What does it cost?
There is no monthly fee. SurcoPay takes 4.5% of each sale made through Stripe, charged on your product price only — never on sales tax. Your payment provider's own processing rates are separate and go to them.
Something not covered here? See troubleshooting, or email support@surcopay.com.