← Back to blog
product18 min read

Sell Digital Products, Courses & Ebooks Without Writing Code

Learn how DGateway's built-in store, course platform, and payment links let you sell digital products instantly — no developer required.

Sell Digital Products, Courses & Ebooks Without Writing Code

Sell Digital Products, Courses & Ebooks Without Writing Code

DGateway is a unified payment and commerce platform for Africa. Beyond its payment API for mobile money (MTN, Airtel) and cards, it provides built-in tools to sell digital products, courses, templates, and ebooks — all without writing a single line of code.

You have an ebook to sell. Or a design template. Or an online course you have been working on for months. The content is ready — but now you need a way to actually sell it. That usually means setting up a website, integrating a payment gateway, building a delivery system, and stitching together half a dozen tools.

With DGateway, you can skip all of that. Upload your product, set a price in UGX (or KES, USD, or any supported currency), and share your link. Your customers pay with MTN Mobile Money, Airtel Money, or card — and receive their product instantly.

This guide covers everything: product types, setup steps, the ebook preview feature, embedding products in your own site, pricing strategies for the African market, and more.


The Problem with Selling Digital Products in Africa

Selling digital products should be simple: customer pays, customer gets the file. But in practice, creators and small businesses in East Africa face a unique set of challenges.

The Global Platform Problem

Most global platforms like Gumroad, Teachable, Podia, or Lemon Squeezy do not support mobile money. And mobile money is how the majority of your customers want to pay. Setting up Stripe alone does not cut it when your audience is primarily using MTN Mobile Money or Airtel Money.

Here is a comparison:

PlatformMobile Money SupportUGX PricingCourse PlatformFree TierCommission
DGatewayYes (MTN, Airtel)YesYesYes12% (products), 15% (courses)
GumroadNoNoNoYes10%
TeachableNoNoYesLimited5-10% + monthly fee
Lemon SqueezyNoNoNoYes5% + Stripe fees
PodiaNoNoYesNo$33-199/month
PayhipNoNoNoYes5%

If your audience is in East Africa, none of those platforms solve the fundamental problem: your customers cannot pay.

The DIY Problem

Even if you solve the payment problem, you still need:

  • A storefront with product pages
  • File hosting with secure download links
  • Access management (who has bought what)
  • A way to track sales and revenue
  • Email delivery of purchase confirmations
  • Download link expiry and protection

That is a lot of infrastructure for someone who just wants to sell a PDF.

DGateway solves this by combining payment processing with a built-in digital product store.


Product Types: What Can You Sell?

DGateway supports six distinct product types, each with features tailored to that format:

Product TypeIconBest ForSpecial Features
GenericPackageTemplates, spreadsheets, documentsStandard file delivery
EbookBookPDF books, guides, reports3D flip book preview
SoftwareCodeApps, plugins, scripts, SaaS starter kitsVersion info, system requirements
AudioMusicMusic, podcasts, sound effects, samplesAudio player preview
GraphicsImageDesign assets, icons, UI kits, photosImage gallery preview
VideoVideoTutorials, recordings, documentariesVideo player preview

Each product type comes with a dedicated product page layout optimized for that content. An ebook shows a 3D flip preview. A software product shows version and system requirements. An audio product shows a player.


Step-by-Step: Creating Your First Product

Here is exactly how to set up a digital product on DGateway:

Step 1: Sign Up and Create an App

  1. Go to dgateway.io and create your account.
  2. From the dashboard, create a new App. This is your business container — it holds your products, payment links, and settings.
  3. Give your app a name and slug (e.g., "kampalagraphics" becomes kampalagraphics.dgateway.io).

Step 2: Configure Your Store

  1. Navigate to Settings in your app dashboard.
  2. Under Store Settings, configure:
    • Store slug — Your public store URL.
    • Banner image — Desktop and mobile banners for your shop page.
    • Store description — A tagline that appears on your shop.
    • Marketplace listing — Toggle on if you want your products to appear in the DGateway marketplace.

Step 3: Add a Product

  1. Go to Products in the sidebar and click Add Product.
  2. Fill in the product details:
    • Title — "The Complete Guide to Mobile App Design in East Africa"
    • Description — Rich text description with formatting support.
    • Product type — Select from Generic, Ebook, Software, Audio, Graphics, or Video.
    • Price — Set in your preferred currency (e.g., UGX 35,000).
    • Cover image — Upload an attractive cover (this is what customers see first).
    • Product file — Upload the actual file customers will download after purchase.
  3. Click Publish.

Your product is now live. DGateway generates a product page with checkout built in. Customers can pay with MTN Mobile Money, Airtel Money, or card and receive a secure download link immediately.

Step 4: Share Your Product

Your product gets a unique URL like:

https://dgateway.io/store/shop/kampalagraphics/products/mobile-app-design-guide

Share this link anywhere — WhatsApp, Twitter, Instagram, email, your personal website.


The Ebook 3D Flip Preview Feature

This is one of DGateway's standout features for ebook sellers. When you upload a PDF ebook, DGateway automatically:

  1. Extracts preview pages from the PDF (typically the first few pages).
  2. Generates page images for each extracted page.
  3. Renders a 3D flip book on the product page that customers can interact with.

The result is a realistic book preview where customers can flip through sample pages before purchasing — similar to the "Look Inside" feature on Amazon, but purpose-built for your product page.

How It Works

Upload PDF → Server extracts pages → Generates page images →
3D flip book component renders on product page

The extraction happens server-side using DGateway's PDF processing pipeline. You do not need to do anything extra — just upload a PDF and the preview is generated automatically.

Why This Matters

For ebook sellers, the preview dramatically increases conversion. Customers can see the quality of content, the formatting, and the style before committing. It builds trust — especially important when selling to customers who may be unfamiliar with your brand.

This feature is exclusive to the Ebook product type. When you select "Ebook" as your product type, DGateway enables the flip preview automatically.


Creating and Selling Online Courses

DGateway includes a purpose-built course platform — not a watered-down feature, but a full learning management system built into your payment platform.

Course Structure

Course
├── Module 1: Introduction
│   ├── Lesson 1: Welcome (Video - HLS streaming)
│   ├── Lesson 2: Course Overview (Text)
│   └── Lesson 3: Getting Started (PDF download)
├── Module 2: Core Concepts
│   ├── Lesson 4: Fundamentals (Video)
│   ├── Lesson 5: Practice Exercise (File download)
│   └── Lesson 6: Quiz
└── Module 3: Advanced Topics
    ├── Lesson 7: Deep Dive (Video)
    ├── Lesson 8: Case Study (Embed - YouTube/Vimeo)
    └── Lesson 9: Final Project (Text + File)

Lesson Types

TypeDescriptionUse Case
VideoHLS adaptive streaming (480p-1080p)Primary content delivery
TextRich text contentWritten lessons, articles
PDFDownloadable PDF filesWorksheets, reference materials
EmbedYouTube, Vimeo, or custom embedsExternal video content
FileAny downloadable fileCode samples, datasets, templates

Features Included

  • HLS video streaming with adaptive bitrate (480p, 720p, 1080p) via MediaKit.
  • Progress tracking — Students see which lessons they have completed and their overall progress.
  • Discussion forums — Per-lesson Q&A where students can ask questions and upvote answers.
  • Student enrollment management — See who is enrolled, their progress, and completion rates.
  • Multi-currency pricing — Charge in UGX, KES, USD, or any supported currency.
  • Free courses — Set price to zero for free courses with public access.
  • Coming Soon — Publish a "coming soon" page with a countdown timer before the course launches.

Setting Up a Course

  1. Go to Courses in your dashboard.
  2. Click Create Course and fill in:
    • Title, description, cover image
    • Price (e.g., UGX 150,000)
    • Category and difficulty level
  3. Add Modules to organize your content.
  4. Add Lessons to each module — upload videos, write text, or attach files.
  5. Publish when ready.

Students purchase access through your DGateway checkout — which supports mobile money, card payments, and more. Once payment is confirmed, they are automatically enrolled and can start learning immediately.


Sometimes you do not need a full storefront. You just need a way to collect payment for a specific product or service. That is where payment links come in.

A payment link is a unique URL that takes the customer directly to a checkout page. You create it in seconds:

  1. Go to Payment Links in your dashboard.
  2. Set the amount, description, and currency.
  3. Optionally attach a digital product for automatic delivery.
  4. Copy the link and share it.

Share it on WhatsApp, Twitter, Instagram, email, or anywhere else. When someone clicks the link, they see a clean checkout page where they can pay with mobile money or card.

Use CaseAmountDescription
Ebook saleUGX 25,000"Buy my ebook: Digital Marketing for Ugandan Businesses"
Consulting sessionUGX 100,000"1-hour business strategy call"
Course accessUGX 200,000"Full access to Web Development Bootcamp"
Template packUGX 15,000"10 Instagram Story Templates"
Event ticketUGX 50,000"Tech Meetup Kampala - General Admission"

Payment links are perfect for:

  • Social media sales — Share a link in your bio or post.
  • Email campaigns — Include a direct purchase link in your newsletter.
  • One-off sales — Sell a consulting session, a custom design, or a one-time service.
  • Pre-orders — Collect payments before your product launches.
  • WhatsApp commerce — Send a payment link directly in chat.

Embedding Products in Your Own Website

If you have your own website (built with Next.js, React, or any framework), you can embed DGateway products directly. Here is how:

The simplest approach — link directly to your product page:

<a
  href="https://dgateway.io/store/shop/yourapp/products/your-product-slug"
  target="_blank"
  class="buy-button"
>
  Buy Now - UGX 25,000
</a>

Option 2: Embed in a Next.js App

For a more integrated experience, use the DGateway API to build your own product pages:

// app/products/[slug]/page.tsx
import { notFound } from "next/navigation";
 
interface Product {
  id: string;
  title: string;
  description: string;
  price: number;
  currency: string;
  cover_image_url: string;
  product_type: string;
  slug: string;
}
 
async function getProduct(slug: string): Promise<Product | null> {
  const res = await fetch(
    `https://api.dgateway.io/api/store/apps/yourapp/products/${slug}`,
    { next: { revalidate: 60 } },
  );
  if (!res.ok) return null;
  const { data } = await res.json();
  return data;
}
 
export default async function ProductPage({
  params,
}: {
  params: { slug: string };
}) {
  const product = await getProduct(params.slug);
  if (!product) notFound();
 
  return (
    <div className="max-w-4xl mx-auto p-8">
      <div className="grid grid-cols-1 md:grid-cols-2 gap-8">
        <img
          src={product.cover_image_url}
          alt={product.title}
          className="rounded-lg shadow-lg"
        />
        <div>
          <h1 className="text-3xl font-bold">{product.title}</h1>
          <p className="text-lg text-gray-600 mt-2">{product.description}</p>
 
          <div className="mt-6">
            <span className="text-4xl font-bold">
              {product.currency} {product.price.toLocaleString()}
            </span>
          </div>
 
          <a
            href={`https://dgateway.io/store/pay/${product.slug}`}
            className="mt-6 inline-block bg-purple-600 text-white px-8 py-3 rounded-lg
                       text-lg font-semibold hover:bg-purple-700 transition"
          >
            Buy Now
          </a>
        </div>
      </div>
    </div>
  );
}

Option 3: Full API Integration with Custom Checkout

For complete control, use the DGateway API to create collections programmatically:

// app/api/checkout/route.ts
import { NextRequest, NextResponse } from "next/server";
 
export async function POST(req: NextRequest) {
  const { product_id, phone_number, provider } = await req.json();
 
  // Fetch product details from DGateway
  const productRes = await fetch(
    `https://api.dgateway.io/api/store/apps/yourapp/products/${product_id}`,
  );
  const { data: product } = await productRes.json();
 
  // Create a collection via DGateway API
  const collectionRes = await fetch("https://api.dgateway.io/v1/collections", {
    method: "POST",
    headers: {
      Authorization: `Bearer ${process.env.DGATEWAY_SECRET_KEY}`,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      amount: product.price,
      currency: product.currency,
      phone_number,
      provider,
      description: `Purchase: ${product.title}`,
      callback_url: `${process.env.NEXT_PUBLIC_URL}/api/webhooks/dgateway`,
      metadata: {
        product_id: product.id,
        product_type: "digital_product",
      },
    }),
  });
 
  const transaction = await collectionRes.json();
  return NextResponse.json(transaction);
}
// app/api/webhooks/dgateway/route.ts
import { NextRequest, NextResponse } from "next/server";
 
export async function POST(req: NextRequest) {
  const payload = await req.json();
  const { event, data } = payload;
 
  if (event === "collection.completed" && data.status === "successful") {
    const { product_id } = data.metadata;
 
    // Generate secure download link
    // Send email to customer
    // Record the sale
 
    console.log(
      `Sale completed: Product ${product_id}, Amount: ${data.amount} ${data.currency}`,
    );
  }
 
  return NextResponse.json({ received: true }, { status: 200 });
}

Customize Your Shop

Your DGateway shop is not a generic storefront with someone else's branding. You can customize it to reflect your brand:

  • Custom colors and themes — Match your brand palette.
  • Logo and branding — Upload your own logo and favicon.
  • Custom domain — Point your own domain to your DGateway shop so customers see shop.yourbrand.com instead of a DGateway URL.
  • Product categories — Organize your products into collections for easy browsing.
  • Banner images — Desktop and mobile hero banners for your shop page.
  • Text overlay — Toggle text over your banner image.

The result is a professional-looking shop that feels like your own platform, powered by DGateway's infrastructure.


Pricing Strategy Tips for the African Market

Pricing digital products in East Africa requires a different approach than pricing for Western markets. Here are practical tips:

1. Price in Local Currency

Always price in UGX, KES, or the local currency of your target market. "$5" requires mental conversion. "UGX 18,500" is immediately understood.

2. Use Psychological Price Points

Instead ofUseWhy
UGX 20,000UGX 19,500Standard psychology
UGX 50,000UGX 49,000Stays under the 50K threshold
UGX 100,000UGX 95,000Feels like a deal
UGX 10,000UGX 10,000Round numbers work for low prices

3. Offer Tiered Pricing

Create multiple versions of your product:

Basic:    UGX 15,000 — Ebook only
Standard: UGX 35,000 — Ebook + templates + video tutorial
Premium:  UGX 75,000 — Everything + 1:1 consultation call

The middle tier will be your best seller. The premium tier makes the standard tier look like a deal.

4. Consider Mobile Money Transaction Limits

MTN Mobile Money in Uganda has per-transaction limits. Price your products within comfortable ranges:

Price RangePerceptionBest For
UGX 5,000 - 15,000Impulse buyTemplates, single resources
UGX 15,000 - 50,000Considered purchaseEbooks, design packs
UGX 50,000 - 150,000InvestmentCourses, comprehensive guides
UGX 150,000 - 500,000Major investmentPremium courses, software
UGX 500,000+High-ticketEnterprise tools, consulting packages

5. Use Coupons for Launches

DGateway has a built-in coupon system. Create launch discounts to drive initial sales:

  • Percentage discounts — "LAUNCH20" for 20% off
  • Fixed amount discounts — "SAVE5000" for UGX 5,000 off
  • Usage caps — Limit to first 50 customers
  • Expiry windows — Valid for launch week only

6. Bundle Products

Use DGateway's bundle feature to package multiple products together at a discount:

Individual prices:
  - Design Templates Pack: UGX 25,000
  - Icon Set: UGX 15,000
  - UI Kit: UGX 35,000
  Total: UGX 75,000

Bundle price: UGX 55,000 (save UGX 20,000)

Bundles increase average order value and give customers a reason to buy more.


Real Numbers, Real Revenue

Your DGateway dashboard gives you full visibility into your sales performance:

  • Total revenue by product, time period, and payment method.
  • Transaction history with detailed records of every sale.
  • Customer data to understand who is buying.
  • Payout tracking so you know exactly when money hits your account.
  • Product views to see which products attract the most interest.
  • Checkout sessions to understand your conversion funnel.
  • Coupon usage to track which promotions are working.

You can export your data at any time for accounting or analysis.


Who Is This For?

DGateway's digital product features are built for:

  • Content creators selling ebooks, guides, and templates.
  • Educators offering online courses and workshops.
  • Designers selling UI kits, icons, and design resources.
  • Musicians and producers selling beats, samples, and albums.
  • Developers selling code templates, plugins, and SaaS starter kits.
  • Coaches and consultants selling packaged knowledge products.
  • Churches and organizations selling event tickets and collecting contributions.
  • Photographers selling photo packs and presets.
  • Small businesses that want an online sales channel without a full e-commerce build.

If you create something that can be delivered digitally, DGateway can help you sell it — and your customers can pay with MTN Mobile Money, Airtel Money, or card.


Advanced Features

Customer Portal

When a customer purchases a product, DGateway automatically creates a customer account for them. They receive an email with a setup link (passwordless, no registration required). From their portal, they can:

  • View order history
  • Re-download purchased products
  • Access enrolled courses
  • View event tickets with QR codes

Affiliate Program

Enable an affiliate program for your products and let others promote them for a commission:

  • Set commission rates from 0-30%
  • Affiliates get a unique tracking link
  • 30-day cookie attribution
  • Automatic conversion tracking
  • Payout management from your dashboard

Order Bumps and Upsells

Increase revenue with pre-checkout add-ons and post-purchase offers:

  • Order bumps — "Add the template pack for just UGX 10,000 more" (shown at checkout)
  • Upsells — "Upgrade to the premium package" (shown after purchase)

AI Content Assistant

Use DGateway's built-in AI to generate:

  • Product descriptions
  • Email subject lines
  • Social media captions
  • Blog post ideas

Charged at UGX 100 per generation — affordable enough to use for every product.


Getting Started Checklist

Here is your action plan for going from zero to selling:

  1. Sign up at dgateway.io if you have not already.
  2. Create an app — This is your business on DGateway.
  3. Configure your store — Logo, banner, description, custom domain (optional).
  4. Add your first product — Upload file, set title, description, price, and cover image.
  5. Set up payment providers — Configure MTN, Airtel, and/or Stripe credentials in Settings.
  6. Publish — Your product page is live.
  7. Share — Post your product link on WhatsApp, social media, email, and your website.
  8. Track — Monitor sales, views, and revenue from your dashboard.

That is the entire process. No code, no hosting configuration, no third-party integrations. Your product is live and ready to sell.

For courses, the process is similar — create a course, add modules and lessons, set a price, and publish. Students can purchase and start learning immediately.


What is Next

DGateway's digital commerce features are evolving constantly. Here is what is coming:

  • More product types — Membership sites, software licenses with activation keys.
  • Enhanced analytics — Conversion funnels, cohort analysis, revenue forecasting.
  • Email marketing integration — Built-in email campaigns to your customer base.
  • Multi-language product pages — Sell to customers in Luganda, Swahili, and more.
  • Marketplace discovery — Better search and recommendations in the DGateway marketplace.

Stop Building Infrastructure. Start Selling.

The best part of being a creator is creating. Not configuring payment gateways, managing file servers, or debugging checkout flows.

DGateway gives you everything you need to sell digital products in East Africa and beyond. Payments, delivery, storefronts, and courses — all in one place, all accepting mobile money, all without writing a single line of code.

Your content is ready. Now let DGateway help you sell it.