<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Bulent Kocaman</title>
    <description>The latest articles on DEV Community by Bulent Kocaman (@bkocaman).</description>
    <link>https://dev.to/bkocaman</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4246044%2Fe3ecc3ee-62a5-44bf-898b-72fa54f7a926.jpg</url>
      <title>DEV Community: Bulent Kocaman</title>
      <link>https://dev.to/bkocaman</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bkocaman"/>
    <language>en</language>
    <item>
      <title>Selling Amazon EC2 cloud servers from WHMCS</title>
      <dc:creator>Bulent Kocaman</dc:creator>
      <pubDate>Fri, 04 Dec 2026 10:00:00 +0000</pubDate>
      <link>https://dev.to/pdmodules/selling-amazon-ec2-cloud-servers-from-whmcs-3ejm</link>
      <guid>https://dev.to/pdmodules/selling-amazon-ec2-cloud-servers-from-whmcs-3ejm</guid>
      <description>&lt;p&gt;Sooner or later a customer asks for something a fixed-size VPS can't give them: a Windows server, more memory than CPU, a region near their users, a disk that grows without a rebuild. That's when Amazon EC2 earns a place in your WHMCS catalogue.&lt;/p&gt;

&lt;p&gt;EC2 is also the AWS service most likely to cost you money you never bill for. An EC2 server is a bundle of separate AWS resources, and each of them can outlive the service it belonged to. This post covers how to sell EC2 from WHMCS so that the product is flexible for the customer and predictable for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Instance types are not VPS plans
&lt;/h2&gt;

&lt;p&gt;A simple VPS product sells a plan: a fixed bundle of CPU, memory, disk and transfer at one price. EC2 sells the parts separately:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the &lt;strong&gt;instance type&lt;/strong&gt; (for example a general-purpose, compute-optimised or memory-optimised size) sets CPU and memory, billed while the instance runs;&lt;/li&gt;
&lt;li&gt;the &lt;strong&gt;root disk&lt;/strong&gt; and any &lt;strong&gt;extra disks&lt;/strong&gt; are EBS volumes, billed by size for as long as they exist;&lt;/li&gt;
&lt;li&gt;the &lt;strong&gt;public IPv4 address&lt;/strong&gt; is billed on its own;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;data transfer out&lt;/strong&gt; is metered;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windows&lt;/strong&gt; images carry licensing in their running cost.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So an EC2 product in WHMCS is a base product plus configurable options, and your price has to cover every part. Sell it like a VPS with one number and the disks, addresses and transfer come out of your margin.&lt;/p&gt;

&lt;h2&gt;
  
  
  The AWS side
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Use a dedicated IAM user with API access only.&lt;/strong&gt; No console sign-in, and only the EC2 actions your provisioning needs: launching, starting, stopping, resizing and terminating instances, plus key pairs, security groups, addresses, volumes, images, metrics and pricing reads. A policy like that usually applies to every EC2 resource in the account rather than to named ones, so the cleanest isolation is a separate AWS account used only for reselling. If the key leaks, it can't touch your own infrastructure.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Pick a default region for your catalogue, and launch regions per product.&lt;/strong&gt; Not every instance type exists in every region, and image IDs (AMIs) are per region too. A size you list for London may simply not exist in another region you offer. Check instance-type availability per region before you put a region on the order form.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Know your Elastic IP quota.&lt;/strong&gt; AWS gives each account five Elastic IP addresses per region by default. If every server you sell gets a fixed address, your sixth order in a region will hit that limit. Request a quota increase before you launch, not after the first failed order.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building the product in WHMCS
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Store the access key in a server record.&lt;/strong&gt; Under &lt;strong&gt;System Settings → Servers&lt;/strong&gt;, the access key ID and secret go into the username and password fields, which WHMCS keeps encrypted. Put the server in a server group and assign that group to your EC2 products.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use the generic product type.&lt;/strong&gt; An EC2 server isn't a control-panel hosting account. Choose &lt;strong&gt;Other Products/Services&lt;/strong&gt;; the server and VPS types add hostname, root-password and nameserver fields the order form doesn't need, and they can get in the way at checkout.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Turn on automatic setup.&lt;/strong&gt; On the product's &lt;strong&gt;Module Settings&lt;/strong&gt; tab, set &lt;em&gt;Automatically setup the product&lt;/em&gt; to &lt;strong&gt;When the first payment is received&lt;/strong&gt;. WHMCS leaves it off by default, and with it off a paid order becomes an Active service with nothing behind it and no error anywhere.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Set sensible defaults, then expose only the choices worth selling.&lt;/strong&gt; Each product needs a default region, instance type, image, root disk size and, optionally, a startup script. Then decide what customers choose at checkout through configurable options: region, instance type, operating system, extra storage, backup retention, and how many backups they can keep. Hide anything you'd rather fix per product.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Track images by family, not by AMI ID.&lt;/strong&gt; AWS publishes patched images regularly, and old AMIs get deprecated. If your configurable option points at a specific AMI ID, customers get an ageing image and eventually a broken order. Store an OS family such as "Ubuntu 24.04 LTS" and resolve it to the newest image for the launch region at order time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Watch for retirements.&lt;/strong&gt; AWS retires instance types and images. Check your option lists against the live catalogue on a schedule, daily is plenty, and hide retired choices without touching customers already on them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Access the customer actually needs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Linux:&lt;/strong&gt; create an SSH key pair per server, give the customer the private key once, and tell them the &lt;strong&gt;default login user for that image&lt;/strong&gt;. It isn't always &lt;code&gt;root&lt;/code&gt;: Ubuntu images use &lt;code&gt;ubuntu&lt;/code&gt;, Amazon Linux uses &lt;code&gt;ec2-user&lt;/code&gt;, and other distributions have their own.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Windows:&lt;/strong&gt; the security group must allow Remote Desktop, and the customer signs in as &lt;strong&gt;Administrator&lt;/strong&gt;. Decide how you hand over that first password securely, because it shouldn't sit on a web page.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Give every server its own security group.&lt;/strong&gt; That's the firewall in EC2. One customer's rule change then can't open another customer's ports, and customers can manage their own rules from the client area.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Attach an Elastic IP.&lt;/strong&gt; A normal public IPv4 address changes every time an EC2 instance is stopped and started. An Elastic IP stays put, so the customer's DNS records and saved connections keep working after a stop.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the bill hides
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Stopped still costs money.&lt;/strong&gt; AWS doesn't charge instance usage while an instance is stopped, but the EBS volumes keep billing. Public IPv4 addresses are charged too: AWS charges for every public IPv4 address, Elastic IPs included, whether attached to a running server or sitting idle. Stopping a server for an unpaid invoice cuts the compute cost, not the whole cost.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Extra disks survive termination by default.&lt;/strong&gt; EC2 deletes the root volume when an instance is terminated, but keeps other attached EBS volumes unless they're set otherwise. Terminate the instance alone and the customer's extra storage keeps billing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Backups outlive the server.&lt;/strong&gt; An AMI backup is backed by EBS snapshots, and deregistering the image doesn't delete them by default. Cap how many backups a customer can keep, and sell more as an option.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Transfer is metered.&lt;/strong&gt; Data out to the internet is billed by AWS. Either include a sensible amount in the price or record each server's monthly transfer in WHMCS and bill overage with WHMCS's own bandwidth settings.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Upgrades need a stop.&lt;/strong&gt; AWS can only change the instance type of a stopped instance. An Upgrade/Downgrade in WHMCS should stop, resize and start the server, and the customer should know it will be briefly offline.&lt;/p&gt;

&lt;h2&gt;
  
  
  Suspension and termination
&lt;/h2&gt;

&lt;p&gt;Treat them as two different tools:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Suspend&lt;/strong&gt; stops the instance and keeps every byte. It's the right first response to a late payment, but the disks and address are still on your bill.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Terminate&lt;/strong&gt; should remove everything the server brought with it: the instance, the Elastic IP (released, not just detached), the security group, the key pair, extra volumes and backups. Then check that AWS confirms each piece has gone.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Finally, make sure the WHMCS cron runs often. Several finishing steps, such as attaching the Elastic IP or a new disk, happen a few minutes after the instance launches.&lt;/p&gt;

&lt;h2&gt;
  
  
  The module we built for this
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;PD AWS EC2&lt;/strong&gt; is our WHMCS module for this. An order launches the instance; suspend stops it, unsuspend starts it and terminate deletes it. Terminating releases the Elastic IP and removes the security group, key pair, extra disks and backups, so nothing keeps billing. Images are tracked by family, so each order launches the latest patched image for its region, and a daily check flags instance types and images AWS has retired so you can hide them with one click of Sync. Windows servers get an RDP-ready firewall; Linux servers get an SSH key and the right default login user for the image.&lt;/p&gt;

&lt;p&gt;It generates the configurable options from your AWS catalogue, and its &lt;strong&gt;Price Analysis&lt;/strong&gt; screen shows the Linux On-Demand cost of each instance type in your default region next to a suggested price at your margin. Use it as your starting point, then add your own amounts for disks, the address, Windows licensing and transfer. Customers get power controls, connection details, their own firewall rules, extra volumes, usage graphs, backups and an optional in-browser console. It installs and updates from the PD Modules panel inside WHMCS, and an update that fails rolls itself back.&lt;/p&gt;

&lt;p&gt;For requirements and screenshots, see the &lt;a href="https://www.pdhosting.co.uk/modules/whmcs/pd-aws-ec2/" rel="noopener noreferrer"&gt;PD AWS EC2 module page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This post is part of a series on reselling AWS from WHMCS; start with the &lt;a href="https://dev.to/pdmodules/reselling-aws-from-whmcs-what-you-can-sell-and-where-the-bill-hides-3106"&gt;overview&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Questions about selling EC2 from WHMCS are welcome in the comments.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;PD Modules is made by Projektif Digital Ltd, the team behind PD Hosting.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>whmcs</category>
      <category>cloud</category>
      <category>hosting</category>
    </item>
    <item>
      <title>Selling DigitalOcean Managed Databases as Blesta packages</title>
      <dc:creator>Bulent Kocaman</dc:creator>
      <pubDate>Thu, 03 Dec 2026 10:00:00 +0000</pubDate>
      <link>https://dev.to/pdmodules/selling-digitalocean-managed-databases-as-blesta-packages-5131</link>
      <guid>https://dev.to/pdmodules/selling-digitalocean-managed-databases-as-blesta-packages-5131</guid>
      <description>&lt;p&gt;A client who outgrows shared hosting rarely asks for "a server". They ask for somewhere to put their data that's backed up, encrypted in transit and someone else's problem at 3am. DigitalOcean's managed databases fit that request, and Blesta already knows how to bill for recurring services. The work lies in joining the two so that each Blesta event does the right thing to a real, hourly-billed cluster.&lt;/p&gt;

&lt;p&gt;This walkthrough follows a database service through its whole life in Blesta.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pick the engines your clients will buy
&lt;/h2&gt;

&lt;p&gt;DigitalOcean runs six engines as managed clusters. Before building anything, decide which ones you want in your catalogue:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Engine&lt;/th&gt;
&lt;th&gt;Typical client&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;PostgreSQL&lt;/td&gt;
&lt;td&gt;Web apps, SaaS products, anything relational&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MySQL&lt;/td&gt;
&lt;td&gt;WordPress at scale, older PHP applications&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MongoDB&lt;/td&gt;
&lt;td&gt;JSON-heavy apps and prototypes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Valkey&lt;/td&gt;
&lt;td&gt;Caching, sessions and queues (Redis-compatible)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kafka&lt;/td&gt;
&lt;td&gt;Event pipelines between services&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenSearch&lt;/td&gt;
&lt;td&gt;Site search, log and metrics analysis&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Most hosts start with PostgreSQL and MySQL, then add Valkey because the same clients want a cache. Kafka and OpenSearch are specialist products with larger minimum sizes; offer them when you have clients asking.&lt;/p&gt;

&lt;p&gt;Keep version numbers out of your package names. DigitalOcean's supported versions move on regularly, and a package called "PostgreSQL" ages better than one tied to a release that will be retired.&lt;/p&gt;

&lt;p&gt;PostgreSQL and MySQL come with a further decision. DigitalOcean splits both into a Standard Edition and an Advanced Edition, and from 30 November 2026 new Standard Edition clusters are capped at 4 GiB RAM and can't have standby nodes. If you want to sell big or highly available PostgreSQL or MySQL, those packages need to be Advanced Edition from the start, because a cluster can't switch edition later.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Blesta side: one module row, one package per engine
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The module row.&lt;/strong&gt; In DigitalOcean, create an API token that can both read and write. In Blesta, open &lt;strong&gt;Settings → Company → Modules&lt;/strong&gt;, choose &lt;strong&gt;Manage&lt;/strong&gt; on the database module and add the token as an account. Blesta calls this a module row, and every database package provisions through it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The packages.&lt;/strong&gt; Create one package per engine (and per edition, for PostgreSQL and MySQL) under &lt;strong&gt;Packages → Browse Packages&lt;/strong&gt;. Its Module Options set the defaults: engine, region, plan, engine version and whether high availability is on. A practical tip: choose the engine, save, then reopen the package, so the plan and version lists show what that engine actually offers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Client choices.&lt;/strong&gt; A package alone sells one fixed configuration. To let clients choose region, size, version or high availability, attach a configurable option group whose values come from DigitalOcean's live catalogue, then price each value under &lt;strong&gt;Packages → Configurable Options&lt;/strong&gt;. Some pairs don't exist (Atlanta, Richmond and Kansas City carry only some plans), so an order for an impossible combination should be stopped before the invoice is paid.&lt;/p&gt;

&lt;p&gt;Region and version only matter when a cluster is created. Consider unticking &lt;em&gt;Client can Edit&lt;/em&gt; on those two options so clients don't expect a later change to move their data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The order form.&lt;/strong&gt; Add the package group to an order form under &lt;strong&gt;Packages → Order Forms&lt;/strong&gt;, and keep Blesta's cron running. Clusters take a few minutes to come online, and it's the cron that records their connection details afterwards.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the client gets on their service page
&lt;/h2&gt;

&lt;p&gt;Everything a client needs should live on the service's manage page, so routine requests never reach your ticket queue:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Information tab:&lt;/strong&gt; engine, plan, region and status, plus a connection window with host, port, database, user and a masked password, each copyable. A ready-made command for &lt;code&gt;psql&lt;/code&gt;, &lt;code&gt;mysql&lt;/code&gt;, &lt;code&gt;mongosh&lt;/code&gt;, &lt;code&gt;redis-cli&lt;/code&gt;, a Kafka client or &lt;code&gt;curl&lt;/code&gt; connects over TLS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trusted Sources tab:&lt;/strong&gt; the addresses allowed to connect. Worth explaining to clients: with no entries, DigitalOcean lets any address try to connect. Adding their app server's IP locks it down.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Regenerate password:&lt;/strong&gt; a fresh credential in seconds, without touching the data. Remind clients to update their applications afterwards.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backups tab:&lt;/strong&gt; DigitalOcean's daily automated backups, listed only for PostgreSQL and MySQL clusters in Standard Edition.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Activity tab:&lt;/strong&gt; what happened and whether it succeeded.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Three engines have quirks worth covering. Kafka clients must trust a CA certificate issued for their cluster; give them a download. OpenSearch clients want the address of OpenSearch Dashboards. And Valkey starts with a &lt;code&gt;noeviction&lt;/code&gt; memory policy, so a full cache rejects writes until the client switches to a least-recently-used policy.&lt;/p&gt;

&lt;h2&gt;
  
  
  What each Blesta action should do
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Blesta action&lt;/th&gt;
&lt;th&gt;Effect on the cluster&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Activate&lt;/td&gt;
&lt;td&gt;A dedicated cluster is created in your DigitalOcean account&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Change package or plan&lt;/td&gt;
&lt;td&gt;Resized in place; same host, data intact&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Suspend&lt;/td&gt;
&lt;td&gt;Trusted sources saved, replaced by a rule nothing matches&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unsuspend&lt;/td&gt;
&lt;td&gt;The saved trusted sources come back unchanged&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cancel&lt;/td&gt;
&lt;td&gt;Cluster deleted, and the deletion confirmed with DigitalOcean&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Managed clusters can't be powered off, which is why suspension works through the firewall instead. Moving a service to a package with a different engine or edition should be refused rather than attempted: that's a new service and a data migration.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the money leaks
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Suspension doesn't pause DigitalOcean's meter.&lt;/strong&gt; You pay for a suspended cluster every hour it exists, so cancel services that stay overdue rather than leaving them suspended for months.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cancelling is final.&lt;/strong&gt; DigitalOcean's backups belong to the cluster and go with it. Consider routing database cancellations through a ticket so the client exports first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Failover isn't free.&lt;/strong&gt; Extra standby nodes, the three nodes of MySQL Advanced Edition or OpenSearch's three-node layout all multiply DigitalOcean's charge. Price the high availability option to match.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rebuilding options resets prices.&lt;/strong&gt; When you refresh the option group from DigitalOcean's catalogue, check your prices again before the next order.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Orphans and ghosts.&lt;/strong&gt; A cancellation that failed silently leaves a cluster billing you; a cluster deleted in DigitalOcean's control panel leaves a service billing the client for nothing. Your tooling should catch both.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The module we built for this
&lt;/h2&gt;

&lt;p&gt;Our answer is PD DigitalOcean Databases for Blesta. It covers all six engines from one module row, generates the configurable option group from DigitalOcean's catalogue, gives clients the tabs described above, suspends through the firewall and keeps retrying a cancellation until DigitalOcean confirms the cluster is gone. Hosts who sell a single engine can use one of the single-engine modules instead, such as PD DigitalOcean MySQL or PD DigitalOcean Kafka. All of them are installed from the free PD Modules panel.&lt;/p&gt;

&lt;p&gt;Setup details are on &lt;a href="https://www.pdhosting.co.uk/modules/blesta/pd-digitalocean-databases/" rel="noopener noreferrer"&gt;its Blesta page&lt;/a&gt;, and questions about running databases through Blesta are welcome below.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;PD Modules is made by Projektif Digital Ltd, the team behind PD Hosting.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>blesta</category>
      <category>digitalocean</category>
      <category>database</category>
      <category>cloud</category>
    </item>
    <item>
      <title>How to sell DigitalOcean Managed Databases from WHMCS</title>
      <dc:creator>Bulent Kocaman</dc:creator>
      <pubDate>Tue, 01 Dec 2026 10:00:00 +0000</pubDate>
      <link>https://dev.to/pdmodules/how-to-sell-digitalocean-managed-databases-from-whmcs-2cpi</link>
      <guid>https://dev.to/pdmodules/how-to-sell-digitalocean-managed-databases-from-whmcs-2cpi</guid>
      <description>&lt;p&gt;Your hosting customers already need databases. A developer launching an app wants PostgreSQL with backups and failover, not a VPS they have to patch. DigitalOcean runs that kind of managed database well, so the question for a WHMCS host isn't whether to offer it but how to sell it without creating work for your support desk or surprises on your DigitalOcean bill.&lt;/p&gt;

&lt;p&gt;Here is how the flow should work in WHMCS, and the decisions that matter most.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a customer should experience
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;They order "Managed PostgreSQL" (or MySQL, or a Valkey cache) from your cart and pick a region, a size and, if you allow it, high availability.&lt;/li&gt;
&lt;li&gt;WHMCS takes payment and a dedicated cluster is created on &lt;strong&gt;your&lt;/strong&gt; DigitalOcean account.&lt;/li&gt;
&lt;li&gt;A few minutes later, their client area shows a host, a port, credentials and a connect command they can paste.&lt;/li&gt;
&lt;li&gt;Upgrades, suspensions and cancellations in WHMCS change the cluster to match.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The customer never needs a DigitalOcean login. WHMCS invoices them, DigitalOcean invoices you, and you decide the margin.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decide which engines to sell
&lt;/h2&gt;

&lt;p&gt;DigitalOcean offers six managed engines, and they suit different buyers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;PostgreSQL&lt;/strong&gt; and &lt;strong&gt;MySQL&lt;/strong&gt; for application data. These are the ones most customers ask for.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MongoDB&lt;/strong&gt; for document stores.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Valkey&lt;/strong&gt;, a Redis-compatible in-memory store, for caches, sessions and queues.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Kafka&lt;/strong&gt; for event streaming.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;OpenSearch&lt;/strong&gt; for search and log analytics.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Treat each engine as its own WHMCS product. "Managed PostgreSQL" and "Managed Valkey Cache" have different buyers, different plan sizes and different prices, so mixing them in one product makes your order form confusing.&lt;/p&gt;

&lt;p&gt;Don't hard-code engine versions in product names or descriptions either. DigitalOcean retires old versions and adds new ones, so offer whatever it currently supports, read from its catalogue.&lt;/p&gt;

&lt;p&gt;For PostgreSQL and MySQL there is a second choice: the &lt;strong&gt;edition&lt;/strong&gt;. DigitalOcean sells both engines as Standard Edition and Advanced Edition. From 30 November 2026, a new Standard Edition cluster is limited to plans of up to 4 GiB RAM with no standby nodes, so larger and highly available PostgreSQL or MySQL now means Advanced Edition. A cluster keeps the edition it was created with, so plan your product line with that in mind.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connect WHMCS to DigitalOcean
&lt;/h2&gt;

&lt;p&gt;Create a DigitalOcean personal access token with full access. In WHMCS it goes on a server record under &lt;strong&gt;System Settings → Servers&lt;/strong&gt;, where it is stored encrypted and never shown to customers.&lt;/p&gt;

&lt;p&gt;Then create the products. A product type of &lt;strong&gt;Other&lt;/strong&gt; fits best: shared hosting and VPS types add hostname and nameserver fields that a database has no use for.&lt;/p&gt;

&lt;p&gt;One setting catches many hosts out. On the product's &lt;strong&gt;Module Settings&lt;/strong&gt; tab, &lt;em&gt;Automatically setup the product&lt;/em&gt; is off by default. With it off, a paid order is marked Active and nothing is created at DigitalOcean, with no error to warn you. Set it to run when the first payment arrives.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build checkout options from the live catalogue
&lt;/h2&gt;

&lt;p&gt;Customers want to choose a region and a size. Typing those into configurable options by hand goes stale as soon as DigitalOcean changes its catalogue, and some combinations simply don't exist: a few datacenters carry only some plans, for example. An order for a size the region can't run should be refused at checkout, before the customer pays, not after.&lt;/p&gt;

&lt;p&gt;Generate the region, plan, engine version and high availability options from DigitalOcean's catalogue, then set your own prices under &lt;strong&gt;System Settings → Products/Services → Configurable Options&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Give customers the controls they'd otherwise ticket you for
&lt;/h2&gt;

&lt;p&gt;Most database support requests are routine. Put these in the client area and they disappear:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Connection details&lt;/strong&gt; with a copy button for each field, the password hidden until revealed, and a connect command in the engine's own syntax (&lt;code&gt;psql&lt;/code&gt;, &lt;code&gt;mysql&lt;/code&gt;, &lt;code&gt;mongosh&lt;/code&gt;, &lt;code&gt;redis-cli&lt;/code&gt; and so on) that uses TLS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trusted sources&lt;/strong&gt;, so customers can allow their own servers' IP addresses. DigitalOcean accepts connections from anywhere until at least one source is added, so encourage customers to add theirs on day one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Password regeneration&lt;/strong&gt; for when a credential leaks. The data isn't touched, but apps using the old password must be updated.&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;backups list&lt;/strong&gt; for Standard Edition PostgreSQL and MySQL, where DigitalOcean publishes one, so customers can see their daily backups ran.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A few engines need extras. Kafka clients must trust the cluster's CA certificate, so offer it as a download. OpenSearch users expect the Dashboards address. Valkey's default memory policy refuses writes when memory is full, which surprises anyone using it as a cache, so let customers pick a least-recently-used policy.&lt;/p&gt;

&lt;h2&gt;
  
  
  Handle upgrades, suspension and termination
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Upgrades:&lt;/strong&gt; a larger plan or added high availability through the WHMCS upgrade flow should resize the cluster in place, with no new host to reconnect to. Engine, region and edition can't change on an existing cluster; that needs a new service.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Suspension:&lt;/strong&gt; a managed cluster can't be stopped. The safe approach is to save the customer's trusted sources and replace them with a rule that matches nothing, then restore them exactly on unsuspend. No data is touched.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Termination:&lt;/strong&gt; delete the cluster, then confirm with DigitalOcean that it really is gone, retrying from the cron if the API was unreachable.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Billing pitfalls
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Suspended clusters still cost you.&lt;/strong&gt; DigitalOcean bills by the hour for as long as a cluster exists, with or without connections. Set WHMCS to terminate services that stay unpaid.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backups die with the cluster.&lt;/strong&gt; Ask customers to export their data before cancelling, perhaps by handling database cancellations through a ticket rather than instantly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;High availability multiplies nodes.&lt;/strong&gt; A standby node, a three-node MySQL Advanced cluster or a three-node OpenSearch cluster all cost more at DigitalOcean. Price the option accordingly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The editions are priced differently.&lt;/strong&gt; Check DigitalOcean's pricing for both before setting yours.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Clusters deleted outside WHMCS&lt;/strong&gt; leave services billing for nothing. Check periodically for active services whose cluster is missing.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The module we built for this
&lt;/h2&gt;

&lt;p&gt;We make PD DigitalOcean Databases, a WHMCS module that sells all six engines from one install, with options generated from DigitalOcean's catalogue, the client-area controls above, firewall-based suspension and a clean-up that confirms each deletion. If you only sell one engine, there are single-engine modules too, such as PD DigitalOcean PostgreSQL and PD DigitalOcean Valkey, with the same customer experience. They run inside the free PD Modules panel.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://www.pdhosting.co.uk/modules/whmcs/pd-digitalocean-databases/" rel="noopener noreferrer"&gt;module page&lt;/a&gt; has the details, and general questions about selling managed databases from WHMCS are welcome in the comments.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;PD Modules is made by Projektif Digital Ltd, the team behind PD Hosting.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>whmcs</category>
      <category>digitalocean</category>
      <category>database</category>
      <category>hosting</category>
    </item>
    <item>
      <title>How to sell Amazon Lightsail servers from Blesta</title>
      <dc:creator>Bulent Kocaman</dc:creator>
      <pubDate>Mon, 30 Nov 2026 10:00:00 +0000</pubDate>
      <link>https://dev.to/pdmodules/how-to-sell-amazon-lightsail-servers-from-blesta-3d7n</link>
      <guid>https://dev.to/pdmodules/how-to-sell-amazon-lightsail-servers-from-blesta-3d7n</guid>
      <description>&lt;p&gt;Sooner or later a client asks for "a server on AWS". You can send them to the AWS console and lose the sale, or sell it to them yourself. Amazon Lightsail makes the second option realistic. Its plans come as fixed bundles of vCPU, memory, SSD and data transfer, so they fit a Blesta package with a price per term far better than the rest of AWS does.&lt;/p&gt;

&lt;p&gt;This guide works through it in the order you'd actually decide things: what you're offering, where each piece lives in Blesta, how a paid order becomes a running server, and which AWS charges keep running when nobody is looking.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decide the offer first
&lt;/h2&gt;

&lt;p&gt;Before you touch any settings, answer two questions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fixed or flexible?&lt;/strong&gt; A fixed package ("2 GB server, London, Ubuntu") is easy to support and easy to price. A flexible one lets the client pick region, plan and operating system at checkout. Many hosts start fixed and add choice once the first few servers run cleanly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Managed or self-service?&lt;/strong&gt; A self-service client wants power buttons, a firewall, snapshots and SSH access. A managed client may only need connection details and usage graphs, while your team handles firewall changes and restores. Hiding a button doesn't remove access the client already has over SSH, so describe the service you actually provide.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where each piece lives
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The AWS credentials&lt;/strong&gt; belong to the module. In Blesta that's &lt;strong&gt;Settings → Company → Modules&lt;/strong&gt;, where you manage the installed module and add the account. Blesta stores the secret encrypted, and you can add a second AWS account later.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The package&lt;/strong&gt; (Packages → Packages) holds the fixed defaults: platform, region, zone, plan and image, plus which controls the client sees.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Package options&lt;/strong&gt; (Packages → Configurable Options) hold the client's choices and what each one costs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The service&lt;/strong&gt; carries the client's own server, with tabs on its page in the client area.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The AWS side: a narrow key and a sensible region
&lt;/h2&gt;

&lt;p&gt;Give Blesta an access key for an IAM user that can do nothing outside Lightsail. Its policy needs read access to Lightsail's bundles, blueprints, regions and instance state, plus the actions you'll really use: create, start, stop, reboot and delete instances, open and close ports, allocate and release static IPs, manage snapshots and key pairs, and create disks if you sell extra storage. Most Lightsail actions can't be limited to particular resources, so the policy uses &lt;code&gt;"Resource": "*"&lt;/code&gt;. Many hosts keep resold servers in an AWS account of their own for that reason.&lt;/p&gt;

&lt;p&gt;For the region, start with where your clients are. Lightsail is offered in a fixed set of AWS regions, and AWS notes that plan specifications can differ between regions, with smaller transfer allowances in Mumbai and Sydney. If you offer a region choice, check every plan you list in every region you list.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building the package and its options
&lt;/h2&gt;

&lt;p&gt;Create the package with the Lightsail module and your AWS account, then set:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Platform:&lt;/strong&gt; Linux/Unix or Windows. Lightsail prices them differently, so keep them in separate packages.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Region and availability zone.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Plan (bundle) and image (blueprint).&lt;/strong&gt; Plans come in dual-stack and IPv6-only versions. Only offer IPv6-only if your clients can actually reach IPv6-only hosts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Static IP&lt;/strong&gt;, if clients need an address that survives a stop and start. Without one, Lightsail gives the server a new public IP when it starts again.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a flexible package, generate the package options from the live Lightsail catalogue rather than typing them in. AWS retires plans and updates images, and a hand-typed list goes out of date silently. The extras worth offering as options are extra storage, a static IP, automatic daily snapshots and a number of snapshot slots. Each one adds to your AWS bill, so give each one a price under Packages → Configurable Options before the package goes on an order form.&lt;/p&gt;

&lt;h2&gt;
  
  
  From paid invoice to running server
&lt;/h2&gt;

&lt;p&gt;In Blesta, a paid order becomes a server when the service is activated. That normally happens in the &lt;strong&gt;Provision Paid Pending Services&lt;/strong&gt; task, which runs from Blesta's cron. If the package is set to hold paid services for manual activation, it waits for a member of staff to press &lt;strong&gt;Activate&lt;/strong&gt; instead. If paid services sit in Pending, check the cron and &lt;strong&gt;Settings → Company → Automation&lt;/strong&gt; before suspecting AWS.&lt;/p&gt;

&lt;p&gt;Creating the instance is only the first step. Attaching a static IP or a storage disk finishes a few minutes later. Your welcome email should say the server will be ready shortly, not that it's ready now.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the client's service page should hold
&lt;/h2&gt;

&lt;p&gt;Blesta lets a module add tabs and actions to the client's service page, and that's where a VPS is won or lost:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;status and power:&lt;/strong&gt; start, stop and reboot, each available only when it makes sense;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;connection details:&lt;/strong&gt; IPv4 and IPv6 addresses, the SSH user, a downloadable key and a ready-to-paste &lt;code&gt;ssh&lt;/code&gt; command (RDP details on Windows);&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;firewall:&lt;/strong&gt; open and close TCP or UDP ports, or allow ping;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;snapshots:&lt;/strong&gt; take, restore and delete;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;usage graphs&lt;/strong&gt; for CPU and network;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;activity&lt;/strong&gt;, so you and the client can see what happened and when.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A terminal that opens in the browser is a real help to the client who has firewalled themselves out of SSH.&lt;/p&gt;

&lt;h2&gt;
  
  
  The AWS charges that don't stop
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A stopped server still costs money.&lt;/strong&gt; AWS charges for a Lightsail instance in the stopped state as well as when it's running, and charges end only when it's deleted. Stopping the server is still right for a suspension, because the client's data survives. But a suspended service has to reach cancellation eventually, or you're paying for it indefinitely.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Manual snapshots outlive their server.&lt;/strong&gt; Snapshot storage is billed per gigabyte for as long as each snapshot exists. Lightsail keeps the latest seven automatic snapshots and deletes them with the instance. Manual snapshots stay in your account after the server is gone. Limit how many a client can keep, and decide what happens to them on cancellation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;An idle static IP bills.&lt;/strong&gt; A static IP attached to an instance costs nothing extra. One left unattached for more than an hour is charged.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Extra disks are separate.&lt;/strong&gt; A block storage disk is billed on its own, attached or not, and can't be grown later.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data transfer is bundled, so price it in.&lt;/strong&gt; Each plan includes a transfer allowance. Inbound and outbound traffic both count toward it, and AWS charges for outbound traffic to the internet beyond it. Price transfer into the package, and keep an eye on heavy users: the service's usage graphs show network in and out.&lt;/p&gt;

&lt;h2&gt;
  
  
  Plan changes and cancellations
&lt;/h2&gt;

&lt;p&gt;Lightsail can't resize an instance in place. AWS's route to a bigger server is a snapshot and a new, larger instance built from it, and a snapshot can't be used to build a smaller one. Offer upgrades only to larger plans on the same platform and region. Downgrades mean a fresh server and a migration.&lt;/p&gt;

&lt;p&gt;Cancellation should delete the instance and release anything that bills on its own. Run it with &lt;strong&gt;Use module&lt;/strong&gt; ticked, so Blesta asks the module to do the work instead of only closing the service record.&lt;/p&gt;

&lt;h2&gt;
  
  
  The module we built for this
&lt;/h2&gt;

&lt;p&gt;PD AWS Lightsail is our Blesta module for this. It keeps your AWS accounts under the module's Manage page and generates package options from the live Lightsail catalogue: region, plan, operating system, extra storage, static IP, automatic daily snapshots and snapshot slots. A daily check flags any plan or image AWS has retired, and one click of Sync hides it without touching existing services. Suspension stops the server, unsuspension starts it, and cancellation deletes it and releases its static IP. An upgrade to a larger plan is a data-preserving resize (snapshot, new server, swap) that keeps the zone, firewall rules, SSH key and static IP.&lt;/p&gt;

&lt;p&gt;Clients get power, connection details, a firewall, snapshots, usage graphs, an activity log and, when you switch it on, a browser console. Price Analysis shows AWS's price for each plan beside a suggested price at your target margin. The module installs and updates from the PD Modules panel inside Blesta, and an update that fails rolls itself back.&lt;/p&gt;

&lt;p&gt;For requirements and screenshots, see the &lt;a href="https://www.pdhosting.co.uk/modules/blesta/pd-aws-lightsail/" rel="noopener noreferrer"&gt;PD AWS Lightsail module page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This post is part of a series on reselling AWS from Blesta; start with the &lt;a href="https://dev.to/pdmodules/selling-aws-through-blesta-the-product-map-and-the-charges-that-outlive-a-cancellation-938"&gt;overview&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Questions about running Lightsail from Blesta are welcome in the comments.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;PD Modules is made by Projektif Digital Ltd, the team behind PD Hosting.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>blesta</category>
      <category>cloud</category>
      <category>hosting</category>
    </item>
    <item>
      <title>Selling AWS through Blesta: the product map, and the charges that outlive a cancellation</title>
      <dc:creator>Bulent Kocaman</dc:creator>
      <pubDate>Fri, 27 Nov 2026 10:00:00 +0000</pubDate>
      <link>https://dev.to/pdmodules/selling-aws-through-blesta-the-product-map-and-the-charges-that-outlive-a-cancellation-938</link>
      <guid>https://dev.to/pdmodules/selling-aws-through-blesta-the-product-map-and-the-charges-that-outlive-a-cancellation-938</guid>
      <description>&lt;p&gt;Every Blesta service lives through the same handful of events: it's activated, it renews, it may be suspended for an unpaid invoice, and one day it's cancelled. When the service is a shared hosting account, those events cost you nothing extra. When it's something running in your AWS account, each one changes your AWS bill, and Blesta can't see that bill.&lt;/p&gt;

&lt;p&gt;Building the package is the easy part. The work is making each Blesta event do the right thing at AWS, so the meter starts when the client pays and stops when they leave.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Blesta can sell on AWS
&lt;/h2&gt;

&lt;p&gt;Thirteen AWS services work well as Blesta packages. Grouped by the job they do for the client:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Servers&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Lightsail&lt;/strong&gt;: a VPS with a fixed monthly plan that includes a data transfer allowance. The easiest AWS product to price.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;EC2&lt;/strong&gt;: a choice of instance types and images, Windows included, for clients who want more control.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Relational databases (Amazon RDS)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;MySQL, MariaDB, PostgreSQL, Oracle and SQL Server.&lt;/strong&gt; MySQL and PostgreSQL can also run on Lightsail's flat-priced databases, which suit entry-level plans.&lt;/li&gt;
&lt;li&gt;Oracle and SQL Server are licence-included at AWS, so nobody buys a separate licence. The licence is built into AWS's hourly rate, so price those packages higher.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Other databases&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;DocumentDB&lt;/strong&gt; (document database), &lt;strong&gt;Neptune&lt;/strong&gt; (graph database) and &lt;strong&gt;ElastiCache&lt;/strong&gt; (in-memory cache).&lt;/li&gt;
&lt;li&gt;All three are reachable only from inside your AWS network (the VPC), with no public address. They suit clients whose application servers already run in AWS. Put that on the order form, or clients will order one and find they can't connect from their office.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Storage, DNS and messaging&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;S3&lt;/strong&gt;: object storage for backups, media and static files.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Route 53&lt;/strong&gt;: DNS hosting, for any client with a domain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SNS&lt;/strong&gt;: SMS. This one is for you rather than for sale: it texts clients about invoices, services and ticket replies.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The setup every AWS package shares
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;One module row per product line, each with its own IAM user.&lt;/strong&gt; In Blesta, AWS credentials are stored on the module under &lt;strong&gt;Settings → Company → Modules → Manage&lt;/strong&gt;, as a module row (an "account"), and the package then chooses which row to use. Don't paste your root keys there. Create a dedicated IAM user for each product line, with only the permissions that product needs. The SMS gateway, for example, needs only &lt;code&gt;sns:Publish&lt;/code&gt; to send. If a key leaks, you revoke one user and every other product line keeps working.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Generate package options from AWS rather than typing them.&lt;/strong&gt; Region, plan, operating system, extra storage, a static IP and the number of snapshots a client may keep all belong in package options under &lt;strong&gt;Packages → Configurable Options&lt;/strong&gt;. Lists typed by hand go out of date, because AWS adds regions and retires plans and images. Not every plan, instance class or engine exists in every region either, and ElastiCache needs a default VPC in the region you sell from. Build the options from what AWS offers per region, then set your prices for each term.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check that paid orders really provision.&lt;/strong&gt; Blesta builds paid orders through its &lt;strong&gt;Provision Paid Pending Services&lt;/strong&gt; automation task. If a package has &lt;strong&gt;Hold paid pending services for manual activation&lt;/strong&gt; ticked, paid orders wait for a member of staff, and when staff activate a service by hand, &lt;strong&gt;Use module&lt;/strong&gt; must be selected, or nothing is created at AWS. Keep the cron running often (&lt;strong&gt;Settings → Company → Automation&lt;/strong&gt;), because the steps after "create" happen in the background.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Put the client's controls on the service tabs.&lt;/strong&gt; A module can add tabs to the client's service page for power, connection details, firewall rules, snapshots and usage graphs. The client never needs an AWS login.&lt;/p&gt;

&lt;h2&gt;
  
  
  Follow one service through its life
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Suspension: stopped is not the same as free
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Lightsail:&lt;/strong&gt; AWS bills instances and managed databases until they're deleted, including while they're stopped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;EC2:&lt;/strong&gt; a stopped instance stops charging for compute. EBS volumes and Elastic IP addresses keep charging whatever state the instance is in.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RDS, DocumentDB and Neptune:&lt;/strong&gt; stopping them saves the instance hours, but storage and backups are still billed. AWS also &lt;strong&gt;starts a stopped database again by itself after seven days&lt;/strong&gt;, so it doesn't miss maintenance. A database you stopped for an unpaid invoice is back on full charge a week later.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ElastiCache:&lt;/strong&gt; a cache has no stopped state, and a reboot doesn't reduce the bill.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Suspending for non-payment is still right: it keeps the client's data while they sort out the invoice. But treat it as a short state, and cancel services that stay unpaid rather than leaving them suspended for months.&lt;/p&gt;

&lt;h3&gt;
  
  
  Cancellation: one service, many AWS resources
&lt;/h3&gt;

&lt;p&gt;When a client cancels, Blesta cancels the service, and if &lt;strong&gt;Use module&lt;/strong&gt; is ticked, the module is asked to remove it. What "remove" covers is what matters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;an EC2 server brings an Elastic IP, a security group, a key pair, extra volumes and backups;&lt;/li&gt;
&lt;li&gt;a Lightsail server can have snapshots, an extra disk and a static IP, and AWS charges for a static IP that stays unattached for more than an hour;&lt;/li&gt;
&lt;li&gt;a database has snapshots and firewall rules.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you delete only the main resource, the rest keeps billing with nobody paying for it. Cancellations made without Use module leave everything running, so check them.&lt;/p&gt;

&lt;p&gt;Decide in advance what happens to client data at cancellation. Deleting a client's last backup at once is harsh; keeping it indefinitely costs you. A retention window is a fair middle ground.&lt;/p&gt;

&lt;h3&gt;
  
  
  Snapshots: billed for as long as they exist
&lt;/h3&gt;

&lt;p&gt;AWS charges for snapshot storage until the snapshot is deleted. If clients can take snapshots, limit how many they keep, or sell extra snapshot slots as a package option.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sell fixed allowances and keep an eye on usage
&lt;/h2&gt;

&lt;p&gt;Three of these products cost you more as the client uses them more. Sell each as a fixed allowance with a clear upgrade path, and your margin stays predictable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Lightsail:&lt;/strong&gt; outbound data transfer beyond the plan's allowance is charged to you by AWS. Build transfer into the plan price, and watch heavy users.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;S3:&lt;/strong&gt; sell storage in quota tiers, one package option per tier, and measure usage so you know when a client has outgrown their tier.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SMS:&lt;/strong&gt; AWS charges per message part, and a long or non-Latin message is split into several parts. Count the parts before you send a campaign.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The other leak is drift. A client upgrades and the renewal price isn't revisited, AWS changes a rate, or a resource from an old order is still running. None of this appears in Blesta. Once a month, compare the AWS bill with what each Blesta service actually brings in.&lt;/p&gt;

&lt;h2&gt;
  
  
  The module we built for this
&lt;/h2&gt;

&lt;p&gt;We make a Blesta module for each of the thirteen: &lt;strong&gt;PD AWS Lightsail&lt;/strong&gt;, &lt;strong&gt;PD AWS EC2&lt;/strong&gt;, &lt;strong&gt;PD AWS MySQL&lt;/strong&gt;, &lt;strong&gt;MariaDB&lt;/strong&gt;, &lt;strong&gt;PostgreSQL&lt;/strong&gt;, &lt;strong&gt;Oracle&lt;/strong&gt; and &lt;strong&gt;SQL Server&lt;/strong&gt;, &lt;strong&gt;PD AWS DocumentDB&lt;/strong&gt;, &lt;strong&gt;Neptune&lt;/strong&gt; and &lt;strong&gt;ElastiCache&lt;/strong&gt;, &lt;strong&gt;PD AWS S3&lt;/strong&gt;, &lt;strong&gt;PD AWS Route 53 DNS&lt;/strong&gt; and &lt;strong&gt;PD AWS SNS&lt;/strong&gt;. Each one ties Blesta's events to AWS:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Lightsail and EC2 generate package options from your live AWS catalogue in one click, and a daily check flags any plan, instance type or image that AWS has retired.&lt;/li&gt;
&lt;li&gt;Cancelling an EC2 service releases its Elastic IP and removes its security group, key pair, extra disks and backups. DocumentDB and Neptune remove the cluster, its firewall and its snapshots.&lt;/li&gt;
&lt;li&gt;S3 gives each order its own bucket and an IAM key limited to that client's buckets. It measures usage daily against the client's quota and emails at 80% and 100%. After cancellation it keeps the data for a retention window you choose, and deletes it only once you approve.&lt;/li&gt;
&lt;li&gt;Route 53 lets you set zone allowances per Blesta package. SNS queues texts on Blesta's cron, with quiet hours and client opt-out.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;PD Cloud Cost &amp;amp; Margin&lt;/strong&gt; reads your AWS bill, matches each charge to the Blesta service that should be paying for it, and lists the resources billing with no service attached. Everything installs and updates from the &lt;strong&gt;PD Modules&lt;/strong&gt; panel inside Blesta, and an update that fails rolls itself back.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://www.pdhosting.co.uk/modules/blesta/pd-aws-lightsail/" rel="noopener noreferrer"&gt;PD AWS Lightsail page for Blesta&lt;/a&gt; is the natural first stop. Later posts in this series cover each product in depth. Questions about running AWS products from Blesta are welcome in the comments.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;PD Modules is made by Projektif Digital Ltd, the team behind PD Hosting.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>blesta</category>
      <category>cloud</category>
      <category>hosting</category>
    </item>
    <item>
      <title>Taking cryptocurrency on Blesta invoices, paid directly into your own wallet</title>
      <dc:creator>Bulent Kocaman</dc:creator>
      <pubDate>Thu, 26 Nov 2026 10:00:00 +0000</pubDate>
      <link>https://dev.to/pdmodules/taking-cryptocurrency-on-blesta-invoices-paid-directly-into-your-own-wallet-5fm2</link>
      <guid>https://dev.to/pdmodules/taking-cryptocurrency-on-blesta-invoices-paid-directly-into-your-own-wallet-5fm2</guid>
      <description>&lt;p&gt;A client emails: "Can I pay my renewal in USDT?" On Blesta, saying yes is mostly plumbing. Who receives the funds? How does Blesta learn the invoice is settled? What if they send slightly too little, or an hour late?&lt;/p&gt;

&lt;p&gt;Many hosted crypto gateways answer those questions by taking custody: the client pays them, and they settle with you afterwards, minus a fee. This guide is about the other model, where coins move from the client's wallet to yours with nobody in between, and the billing side is automated around that.&lt;/p&gt;

&lt;h2&gt;
  
  
  One payment, start to finish
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;The client opens an unpaid invoice in the Blesta client area and picks the crypto option.&lt;/li&gt;
&lt;li&gt;They choose a coin. The page shows a precise amount, the network, a receiving address, a scannable QR code and a countdown.&lt;/li&gt;
&lt;li&gt;They send from their wallet app or exchange.&lt;/li&gt;
&lt;li&gt;Your side spots the transaction, then waits while the network confirms it.&lt;/li&gt;
&lt;li&gt;Once it's confirmed, the payment is applied to the invoice in Blesta, and the client gets an email.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Every step hides a choice, so here they are as questions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which wallet should receive?
&lt;/h2&gt;

&lt;p&gt;Start with control. If you want spending authority to stay entirely with you, connect a &lt;strong&gt;receive-only&lt;/strong&gt; (watch-only) wallet: your billing system gets an extended public key or a list of receiving addresses, and nothing that can move money.&lt;/p&gt;

&lt;p&gt;If you'd like refunds or treasury moves automated, the alternative is a &lt;strong&gt;hot wallet&lt;/strong&gt;, whose key sits encrypted on your server. Treat it like a till rather than a safe. Keep a modest float in it, set sending limits and an allow-list of destinations, and sweep anything above a threshold out to cold storage.&lt;/p&gt;

&lt;p&gt;A third route is a deposit address from your own exchange account. Convenient if you sell crypto for sterling regularly, but the exchange is then holding those coins for you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Will each invoice get its own address?
&lt;/h2&gt;

&lt;p&gt;Ideally, yes: whatever reaches address X then belongs to invoice Y.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bitcoin and Litecoin:&lt;/strong&gt; derive a new address per invoice from your xpub or zpub.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ethereum-style networks:&lt;/strong&gt; wallets rarely expose an extended key, so load a pool of addresses you own. Each invoice reserves one exclusively until it's settled or lapses, and you should top the pool up before it runs dry.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A single shared address:&lt;/strong&gt; possible, and quick to configure, but then only the amount distinguishes clients. A payment that doesn't fit any open invoice cleanly, when more than one could own it, waits for staff to assign it. Bear in mind that a shared address publishes your receipts to anyone with a block explorer.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So treat the shared address as a fallback, not a default.&lt;/p&gt;

&lt;h2&gt;
  
  
  How long is the price fair?
&lt;/h2&gt;

&lt;p&gt;Crypto rates move by the minute, so the amount shown is locked only for a set period; half an hour is a common choice. Behind that number you want:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;several rate providers queried in priority order, falling through if one is unavailable;&lt;/li&gt;
&lt;li&gt;a maximum rate age, after which that coin is hidden from checkout instead of being priced on stale data;&lt;/li&gt;
&lt;li&gt;a check that holds a coin back when two providers diverge too far;&lt;/li&gt;
&lt;li&gt;a modest uplift on the converted figure, absorbing rounding, outbound network costs and drift.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  When is a payment real?
&lt;/h2&gt;

&lt;p&gt;Seen isn't settled. Decide how many confirmations each coin requires; higher is safer but slower. As a rough guide, Bitcoin can take 10 to 60 minutes, and most other coins are quicker.&lt;/p&gt;

&lt;p&gt;Also think about clients who pay just as the countdown ends. Continue monitoring an expired quote for something like 24 hours. Funds detected within the window still clear normally once confirmed; funds that first appear afterwards go into a review queue so a person can settle them.&lt;/p&gt;

&lt;p&gt;Set a minimum per coin too, so tiny invoices aren't offered where moving the money later costs more than it's worth.&lt;/p&gt;

&lt;h2&gt;
  
  
  What if the amount is wrong?
&lt;/h2&gt;

&lt;p&gt;Underpayments are routine, because many exchanges subtract a withdrawal fee in transit. Set a small percentage you'll write off automatically, and above it the client is asked to send the remainder. Make your price uplift larger than that allowance, and a borderline payment still leaves you whole.&lt;/p&gt;

&lt;p&gt;Surplus funds need a rule as well: credit them to the client's account for future invoices, or park them for manual review.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do refunds work in Blesta?
&lt;/h2&gt;

&lt;p&gt;There's no way to pull coins back from a blockchain, and Blesta has no refund button for a non-merchant gateway like this. A refund is a separate outbound transfer that you initiate, so:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;get the destination in writing from the client; coins returned to the address an exchange withdrawal came from can be lost;&lt;/li&gt;
&lt;li&gt;with a receive-only wallet, send from your own wallet app, then log the transaction against the payment;&lt;/li&gt;
&lt;li&gt;with a hot wallet, sending can happen from the admin side, subject to your limits;&lt;/li&gt;
&lt;li&gt;know Blesta's accounting rules: refunding a whole payment marks it Refunded, and its invoice shows as unpaid again (void it if nothing is owed), while a partial refund is a negative payment and the invoice stays paid.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Rehearsing safely
&lt;/h2&gt;

&lt;p&gt;First, enable the gateway itself: in Blesta, go to &lt;strong&gt;Settings → Company → Payment Gateways → Available&lt;/strong&gt;, install it, then assign the currencies it should accept under &lt;strong&gt;Installed&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Before any live coin, switch to test networks (Ethereum's Sepolia, or testnet versions of Bitcoin and Litecoin) and settle a brand-new test invoice from start to finish. A request opened earlier keeps the network it was created on, so don't reuse one. Deliberately send a little less, and once let the timer lapse, to see both exception paths. Then switch back to live and recheck your mainnet receiving details.&lt;/p&gt;

&lt;h2&gt;
  
  
  The module we built for this
&lt;/h2&gt;

&lt;p&gt;PD Crypto Pay is our Blesta gateway for exactly this flow. Funds go directly to the wallet or exchange account you choose, with no commission from us. Coins include Bitcoin, Litecoin and Ethereum, with BNB Smart Chain, Arbitrum and other networks, and tokens like USDT or USDC. It offers receive-only and hot wallets, per-invoice addresses or address pools, the payment rules described here, client emails, refunds and a test mode. It's managed from the free PD Modules panel inside Blesta.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.pdhosting.co.uk/modules/blesta/pd-crypto-pay/" rel="noopener noreferrer"&gt;PD Crypto Pay for Blesta&lt;/a&gt; has the full feature list. Questions are welcome below.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;PD Modules is made by Projektif Digital Ltd, the team behind PD Hosting.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>blesta</category>
      <category>crypto</category>
      <category>payments</category>
      <category>webhosting</category>
    </item>
    <item>
      <title>How to accept crypto payments on WHMCS invoices without a processor holding your money</title>
      <dc:creator>Bulent Kocaman</dc:creator>
      <pubDate>Tue, 24 Nov 2026 10:00:00 +0000</pubDate>
      <link>https://dev.to/pdmodules/how-to-accept-crypto-payments-on-whmcs-invoices-without-a-processor-holding-your-money-38m4</link>
      <guid>https://dev.to/pdmodules/how-to-accept-crypto-payments-on-whmcs-invoices-without-a-processor-holding-your-money-38m4</guid>
      <description>&lt;p&gt;Some hosting customers would rather pay in Bitcoin or USDT than by card. The usual route is a crypto payment processor: it collects the coins, takes a cut, and pays you out later. That means a third party holds your money for a while, on its fees and payout schedule.&lt;/p&gt;

&lt;p&gt;The alternative is to have customers pay straight into a wallet you control, with WHMCS doing the bookkeeping. This post covers the decisions involved, whatever tool you use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why "here's our address" isn't enough
&lt;/h2&gt;

&lt;p&gt;Printing a wallet address on the invoice and marking invoices paid by hand falls apart quickly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the customer has to work out the amount in crypto at today's rate;&lt;/li&gt;
&lt;li&gt;you have to work out which invoice a transaction belongs to;&lt;/li&gt;
&lt;li&gt;someone has to wait for confirmations before trusting it;&lt;/li&gt;
&lt;li&gt;short payments, overpayments and late payments all become support tickets.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A proper setup quotes an exact crypto amount, watches the blockchain, and credits the WHMCS invoice once the payment is confirmed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk3qz37u8dmg4laklq9op.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk3qz37u8dmg4laklq9op.png" alt="A WHMCS invoice checkout on a test network, with the exact amount, address, QR code and status" width="720" height="1122"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 1: where the money lands
&lt;/h2&gt;

&lt;p&gt;Three sensible destinations give software very different powers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A watch-only wallet.&lt;/strong&gt; You hand over public information only (an extended public key, or receiving addresses). The software can see payments arrive but can never spend them. Never paste a recovery phrase or private key for this.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A hot wallet.&lt;/strong&gt; A key held encrypted on your own server, so the software can send as well: refunds, or sweeping the balance to cold storage. Convenient, but keep only small sums there, and protect it with spending limits and an approved-destinations list.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your own exchange account.&lt;/strong&gt; Use a deposit address from the exchange as the destination. The exchange holds those funds under its own terms, which is not the same as self-custody, but it suits hosts who convert to pounds anyway.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjy7xjlj78m0rowuyurgd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjy7xjlj78m0rowuyurgd.png" alt="Wallet choices: create a new wallet, use an existing receive-only wallet, or one that can also send" width="799" height="328"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 2: how to tell invoices apart
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A fresh address per payment.&lt;/strong&gt; With an extended public key (xpub or zpub), Bitcoin and Litecoin wallets can derive a new address for every invoice. Matching is unambiguous.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A pool of addresses you provide.&lt;/strong&gt; Most Ethereum wallets don't export an extended key, so supply a list of your own addresses instead. Each open invoice borrows one exclusively until it's paid or expires. Keep enough spare addresses for the payments you expect.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One address for everything.&lt;/strong&gt; The simplest to set up, but then the amount alone separates invoices. An odd amount that could belong to several open invoices needs a human to allocate it. Also, anything sent to an address is public: every customer who has paid it can read your takings on a block explorer.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Prefer separate addresses wherever your network and wallet allow it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 3: the quote
&lt;/h2&gt;

&lt;p&gt;The customer needs one exact number: a live rate, locked for a payment window (30 minutes is a reasonable start), plus rules for when pricing goes wrong:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;use more than one price source (CoinGecko, Kraken and CoinMarketCap, for example) in a set order, so one outage doesn't stop checkout;&lt;/li&gt;
&lt;li&gt;refuse to quote on a rate older than a few minutes;&lt;/li&gt;
&lt;li&gt;hold a coin if two sources disagree sharply, rather than quoting either figure;&lt;/li&gt;
&lt;li&gt;add a small markup to the crypto amount to cover rounding, later network fees and price movement.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Decision 4: confirmations and late payments
&lt;/h2&gt;

&lt;p&gt;A transaction on the chain isn't yet a settled one. Set how many confirmations each coin needs.&lt;/p&gt;

&lt;p&gt;A customer who sends with seconds to spare may confirm after expiry. Keep watching an expired quote for a day or so: a payment first seen inside the window gets credited when it confirms, and one that turns up later is held for a person to review.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 5: short and over payments
&lt;/h2&gt;

&lt;p&gt;Exchanges often deduct a withdrawal fee, so payments can arrive a fraction short. Pick a tolerance (say 1%) below which a shortfall is accepted as payment in full, and ask for a top-up beyond that. Keep your markup above the tolerance, so a payment at the bottom of the band still covers the invoice.&lt;/p&gt;

&lt;p&gt;For overpayments, choose between adding the surplus to the client's credit balance and holding it for review. Decide before the first one arrives.&lt;/p&gt;

&lt;h2&gt;
  
  
  Refunds are new transactions
&lt;/h2&gt;

&lt;p&gt;A crypto refund can't reverse the original transfer. It's a fresh send, and WHMCS's "Refund through Gateway" has no field for the destination address. So:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;confirm the refund address with the customer; the address a payment came from may belong to their exchange, not to them;&lt;/li&gt;
&lt;li&gt;from a watch-only wallet, send it yourself and record it against the invoice with the transaction ID;&lt;/li&gt;
&lt;li&gt;from a hot wallet, the software can sign and send it, within your safeguards;&lt;/li&gt;
&lt;li&gt;a full refund should mark the invoice Refunded, and a partial one leaves it Paid.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Customer emails and the cron
&lt;/h2&gt;

&lt;p&gt;Two short emails save a lot of "did you get my payment?" tickets: one when the payment is first seen, one when it's credited. Staff should hear about short, excess and late payments too.&lt;/p&gt;

&lt;p&gt;Payment detection is background work. On the standard WHMCS cron that usually means every five minutes; a dedicated one-minute cron gets a confirmed payment onto the invoice within a minute or two.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rehearse on a test network
&lt;/h2&gt;

&lt;p&gt;Before taking real coins, switch to a test network (Sepolia for Ethereum, or the Bitcoin and Litecoin testnets) and pay a fresh test invoice end to end. Try a short and a late payment too. When you switch back to live, check the live wallets and coins again: a working testnet setup proves the workflow, not your mainnet addresses.&lt;/p&gt;

&lt;h2&gt;
  
  
  Watch the walkthrough
&lt;/h2&gt;

&lt;p&gt;A full WHMCS tutorial covering the setup, the settings and a real test-network payment:&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/EXs1by4xKpg" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  The module we built for this
&lt;/h2&gt;

&lt;p&gt;We make PD Crypto Pay, a WHMCS payment gateway that does all of the above. Payments go straight to your wallet or exchange account, and PD takes no commission on them. It handles BTC, LTC and ETH, networks such as Tron, Polygon and Base, and ERC-20 or TRC-20 tokens like USDT and USDC. You get all three address strategies, the payment rules above, refunds from the payment record, and a test mode. It runs inside the free PD Modules panel, which also offers that one-minute cron.&lt;/p&gt;

&lt;p&gt;See the &lt;a href="https://www.pdhosting.co.uk/modules/whmcs/pd-crypto-pay/" rel="noopener noreferrer"&gt;PD Crypto Pay for WHMCS page&lt;/a&gt; for details. Questions are welcome in the comments.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;PD Modules is made by Projektif Digital Ltd, the team behind PD Hosting.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>whmcs</category>
      <category>crypto</category>
      <category>payments</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>Selling managed AWS databases from WHMCS: five engines, one product line</title>
      <dc:creator>Bulent Kocaman</dc:creator>
      <pubDate>Mon, 23 Nov 2026 10:00:00 +0000</pubDate>
      <link>https://dev.to/pdmodules/selling-managed-aws-databases-from-whmcs-five-engines-one-product-line-253n</link>
      <guid>https://dev.to/pdmodules/selling-managed-aws-databases-from-whmcs-five-engines-one-product-line-253n</guid>
      <description>&lt;p&gt;Sooner or later a hosting customer asks for "just a database". Their app has outgrown the MySQL instance on their shared plan, or a developer wants PostgreSQL without running a server, or an accountancy package insists on SQL Server. Running those databases yourself means patching, backups and 3 a.m. pages. Pointing the customer at AWS means losing them.&lt;/p&gt;

&lt;p&gt;The middle path is to sell managed databases from your own AWS account as ordinary WHMCS products. AWS runs the engine, patches it and takes the backups. You own the customer, the invoice and the margin. This post covers how to build that in WHMCS for all five relational engines, and the AWS charges that quietly outlive a cancelled service.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which engine, on which AWS service
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Engine&lt;/th&gt;
&lt;th&gt;AWS service&lt;/th&gt;
&lt;th&gt;Licence&lt;/th&gt;
&lt;th&gt;Points to know&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;MySQL&lt;/td&gt;
&lt;td&gt;Amazon RDS or Lightsail&lt;/td&gt;
&lt;td&gt;Open source&lt;/td&gt;
&lt;td&gt;Lightsail gives a flat monthly AWS cost for entry plans&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PostgreSQL&lt;/td&gt;
&lt;td&gt;Amazon RDS or Lightsail&lt;/td&gt;
&lt;td&gt;Open source&lt;/td&gt;
&lt;td&gt;Same two-tier choice as MySQL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MariaDB&lt;/td&gt;
&lt;td&gt;Amazon RDS only&lt;/td&gt;
&lt;td&gt;Open source&lt;/td&gt;
&lt;td&gt;Lightsail doesn't offer MariaDB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Oracle&lt;/td&gt;
&lt;td&gt;Amazon RDS only&lt;/td&gt;
&lt;td&gt;Licence included (Standard Edition 2)&lt;/td&gt;
&lt;td&gt;Slow to create; heavier AWS cost&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SQL Server&lt;/td&gt;
&lt;td&gt;Amazon RDS only&lt;/td&gt;
&lt;td&gt;Licence included (Standard Edition)&lt;/td&gt;
&lt;td&gt;No database is created for you&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two rows deserve a second look.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Oracle and SQL Server are licence-included.&lt;/strong&gt; On RDS, AWS holds the Oracle licence for Standard Edition 2 and builds it into the hourly rate, and the same model applies to SQL Server Standard Edition. Neither you nor the customer buys a licence. That convenience is why these two cost noticeably more to run than the open-source engines, so give them their own product group and their own pricing rather than an add-on to a MySQL plan.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SQL Server creates no named database.&lt;/strong&gt; An RDS SQL Server instance comes up with a master login and nothing else. The customer connects and runs &lt;code&gt;CREATE DATABASE myapp;&lt;/code&gt; themselves. That's normal SQL Server behaviour, but if your welcome email promises "your database is ready" with a database name, expect a ticket. Say it on the product page and in the welcome email.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lightsail or RDS for MySQL and PostgreSQL
&lt;/h2&gt;

&lt;p&gt;Lightsail databases come as bundles with a fixed amount of memory, storage and data transfer, and a predictable monthly AWS cost. They suit entry plans: a WordPress site, a small app, a staging copy.&lt;/p&gt;

&lt;p&gt;RDS is billed by the hour for the instance class plus the storage you allocate, and it's more flexible: larger instances, in-place resizing and a firewall per database. Use it for anything a customer will grow into.&lt;/p&gt;

&lt;p&gt;The catch is that the two aren't interchangeable. Moving a live database from Lightsail to RDS, or between Lightsail bundles, means creating a new database and migrating the data. Decide the backing per product before you sell it, not after.&lt;/p&gt;

&lt;h2&gt;
  
  
  The AWS side
&lt;/h2&gt;

&lt;p&gt;Create a dedicated IAM user for your database products, with API access only and no console login. &lt;code&gt;AmazonRDSFullAccess&lt;/code&gt; covers creating, resizing, snapshotting and deleting RDS instances and reading their CloudWatch metrics. It doesn't cover two things people miss:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Security groups.&lt;/strong&gt; If each database gets its own firewall (it should), the user also needs &lt;code&gt;ec2:CreateSecurityGroup&lt;/code&gt;, &lt;code&gt;AuthorizeSecurityGroupIngress&lt;/code&gt;, &lt;code&gt;RevokeSecurityGroupIngress&lt;/code&gt;, &lt;code&gt;DeleteSecurityGroup&lt;/code&gt; and the matching describe calls.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lightsail.&lt;/strong&gt; Lightsail databases are a separate service with separate permissions. Add them only if you sell Lightsail-backed plans.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Pick a region close to most of your customers, and remember that instance classes and engine versions vary by region. Build your order options from what AWS actually offers there, not from a list you typed once.&lt;/p&gt;

&lt;h2&gt;
  
  
  Building the product in WHMCS
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Product type: Other.&lt;/strong&gt; A database isn't a hosting account. The &lt;em&gt;Shared Hosting&lt;/em&gt; and &lt;em&gt;Server/VPS&lt;/em&gt; types add domain, hostname and root-password fields to the order form that a database has no use for.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Server record.&lt;/strong&gt; Put the IAM access key in a server record, where WHMCS stores it encrypted, and assign the product to it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Automatic setup.&lt;/strong&gt; On the product's &lt;strong&gt;Module Settings&lt;/strong&gt; tab, set &lt;em&gt;Automatically setup the product&lt;/em&gt; to &lt;strong&gt;When the first payment is received&lt;/strong&gt;. If you leave it off, the order completes, the service shows as Active and nothing is ever created at AWS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Configurable options.&lt;/strong&gt; Offer plan size, and for RDS storage, as configurable options so customers choose at checkout and pay your price for each. Upgrade/Downgrade then becomes the resize path: a bigger class or more storage. Note that RDS storage only grows; AWS can't shrink allocated storage, so don't offer a storage downgrade you can't deliver.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cron.&lt;/strong&gt; Database creation takes minutes, and Oracle can take a good deal longer. Provisioning, resizes and power actions finish in the background, so keep the WHMCS cron running frequently.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the customer needs in the client area
&lt;/h2&gt;

&lt;p&gt;At minimum:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;connection details (host, port, database name where there is one, username, a password they can reset) and a link to the Amazon certificate bundle so they connect over TLS;&lt;/li&gt;
&lt;li&gt;an &lt;strong&gt;IP allow-list firewall&lt;/strong&gt;: no address can connect until they add one;&lt;/li&gt;
&lt;li&gt;start, stop and reboot;&lt;/li&gt;
&lt;li&gt;snapshots they can take and delete, plus a view of the automated daily backups;&lt;/li&gt;
&lt;li&gt;CPU, connection, memory and free-storage graphs, so they can see when it's time to upgrade.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where the AWS bill hides
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A stopped RDS database still bills.&lt;/strong&gt; Stopping saves instance hours, but AWS keeps charging for allocated storage, backup storage and any public IPv4 address. And after seven days stopped, AWS starts the instance again by itself so it can apply maintenance. A database you stopped for an unpaid invoice is running again a week later, with nobody paying for it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A stopped Lightsail database bills in full.&lt;/strong&gt; AWS says Lightsail databases accrue charges until they're deleted, stopped or not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Snapshots bill while they exist.&lt;/strong&gt; Manual snapshots stay until someone deletes them, including after the database itself is deleted. Let customers take snapshots, but make sure termination clears them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;High availability doubles the footprint.&lt;/strong&gt; Lightsail's high-availability plans cost twice the standard plan because they run a second database and disk in another Availability Zone. RDS Multi-AZ is billed at its own Multi-AZ rate. If you offer either, sell it as its own tier.&lt;/p&gt;

&lt;h2&gt;
  
  
  Suspension and termination
&lt;/h2&gt;

&lt;p&gt;Suspend by stopping the database: the data stays, the customer can't use it. Because AWS restarts stopped RDS instances after a week, something has to keep checking and stop it again, or a long-overdue account quietly costs you money. Services that stay unpaid should be terminated.&lt;/p&gt;

&lt;p&gt;Termination should delete the instance, its security group and its snapshots, so the service leaves nothing behind. AWS lets you take a final snapshot on deletion; decide whether you want one, because if you keep it, you pay for it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The module we built for this
&lt;/h2&gt;

&lt;p&gt;We make one WHMCS module per engine. Each creates the customer's database on your own AWS account when WHMCS provisions the order: MySQL and PostgreSQL on a flat-priced Lightsail tier or on RDS, and MariaDB, Oracle Standard Edition 2 and SQL Server Standard Edition on RDS, the last two licence-included. &lt;strong&gt;Generate plans&lt;/strong&gt; builds the configurable options for a product, and the client area gives the customer connection details, start/stop/reboot and password reset, snapshots and automated daily backups kept for seven days, an IP allow-list firewall on RDS plans, usage graphs and an activity log. Upgrading resizes an RDS database in place and keeps the data.&lt;/p&gt;

&lt;p&gt;Suspending a service stops the database and keeps it stopped, even after AWS restarts it a week later. A suspend or unsuspend that arrives while the database is busy, mid-backup for example, is queued and applied as soon as AWS allows it. Terminating deletes the database with its automated backups, its snapshots and its firewall group. Every module installs and updates from the free &lt;strong&gt;PD Modules&lt;/strong&gt; panel inside WHMCS, and an update that fails rolls itself back.&lt;/p&gt;

&lt;p&gt;Module pages: &lt;a href="https://www.pdhosting.co.uk/modules/whmcs/pd-aws-mysql/" rel="noopener noreferrer"&gt;PD AWS MySQL&lt;/a&gt;, &lt;a href="https://www.pdhosting.co.uk/modules/whmcs/pd-aws-mariadb/" rel="noopener noreferrer"&gt;PD AWS MariaDB&lt;/a&gt;, &lt;a href="https://www.pdhosting.co.uk/modules/whmcs/pd-aws-postgresql/" rel="noopener noreferrer"&gt;PD AWS PostgreSQL&lt;/a&gt;, &lt;a href="https://www.pdhosting.co.uk/modules/whmcs/pd-aws-oracle/" rel="noopener noreferrer"&gt;PD AWS Oracle&lt;/a&gt; and &lt;a href="https://www.pdhosting.co.uk/modules/whmcs/pd-aws-sql-server/" rel="noopener noreferrer"&gt;PD AWS SQL Server&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This post is part of a series on reselling AWS from WHMCS; start with the &lt;a href="https://dev.to/pdmodules/reselling-aws-from-whmcs-what-you-can-sell-and-where-the-bill-hides-3106"&gt;overview&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Questions about selling databases from WHMCS are welcome in the comments.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;PD Modules is made by Projektif Digital Ltd, the team behind PD Hosting.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>whmcs</category>
      <category>database</category>
      <category>mysql</category>
    </item>
    <item>
      <title>Selling Amazon Lightsail VPS from WHMCS: setup, upgrades and the costs that linger</title>
      <dc:creator>Bulent Kocaman</dc:creator>
      <pubDate>Fri, 20 Nov 2026 10:00:00 +0000</pubDate>
      <link>https://dev.to/pdmodules/selling-amazon-lightsail-vps-from-whmcs-setup-upgrades-and-the-costs-that-linger-2ae</link>
      <guid>https://dev.to/pdmodules/selling-amazon-lightsail-vps-from-whmcs-setup-upgrades-and-the-costs-that-linger-2ae</guid>
      <description>&lt;p&gt;Amazon Lightsail is the easiest part of AWS to resell. Each plan is a bundle: vCPU, memory, an SSD and a data-transfer allowance, at a predictable monthly AWS cost. That maps neatly onto a WHMCS product with a monthly price, which is why it's a good first AWS product for a hosting company.&lt;/p&gt;

&lt;p&gt;The predictability ends at the plan, though. Stopped servers, snapshots, spare static IPs and extra disks all bill on their own, and none of them appears on the WHMCS invoice unless you put it there. Here's how to build the product, and where the money leaks.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the pieces fit
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Your AWS account&lt;/strong&gt; owns every Lightsail instance. AWS bills you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WHMCS&lt;/strong&gt; owns the customer: the product, the invoice and the service.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A provisioning module&lt;/strong&gt; turns WHMCS events (create, suspend, unsuspend, upgrade, terminate) into Lightsail API calls.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The customer never needs an AWS login.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: an IAM user that can only touch Lightsail
&lt;/h2&gt;

&lt;p&gt;Don't hand WHMCS your root key. Create a dedicated IAM user with a policy that allows only the Lightsail actions you need: reading plans (bundles), images (blueprints) and regions; creating, starting, stopping, rebooting and deleting instances; firewall ports; static IPs; snapshots; key pairs; and block storage disks if you'll sell extra storage. Create an access key for it with the "application running outside AWS" use case, and keep the secret safe, because AWS shows it only once.&lt;/p&gt;

&lt;p&gt;Most Lightsail actions don't support resource-level restrictions, so the policy ends up with &lt;code&gt;"Resource": "*"&lt;/code&gt;. That makes a separate user, ideally in a separate AWS account for resold servers, more important rather than less.&lt;/p&gt;

&lt;p&gt;In WHMCS, the natural place for that key is a &lt;strong&gt;server record&lt;/strong&gt; under System Settings → Servers. WHMCS stores the password field encrypted, and a second AWS account is simply a second server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: choose regions deliberately
&lt;/h2&gt;

&lt;p&gt;Lightsail runs in a fixed list of AWS regions, and the plans aren't identical everywhere. AWS notes that plans in some regions have different specifications, and the data-transfer allowance is different in Mumbai and Sydney. Pick a default region close to most of your customers, and if you offer several regions, check every plan you sell in each of them rather than assuming they match.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: build the product
&lt;/h2&gt;

&lt;p&gt;Create a product in its own product group, and set the type to &lt;strong&gt;Other Products/Services&lt;/strong&gt;. A Lightsail VPS has no control panel for WHMCS's server-type products to log in to, so the generic type fits.&lt;/p&gt;

&lt;p&gt;On &lt;strong&gt;Module Settings&lt;/strong&gt;, two things matter more than they look:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Automatically setup the product&lt;/strong&gt; should usually be &lt;strong&gt;When the first payment is received&lt;/strong&gt;. WHMCS leaves it off by default. With it off, an order completes, the service is marked Active, and nothing is ever created at AWS. There's no error anywhere.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The defaults:&lt;/strong&gt; platform (Linux/Unix or Windows), region, availability zone, plan and image. Lightsail prices Linux and Windows plans separately, so keep them in separate products.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want customers to choose their region, plan or operating system at checkout, use &lt;strong&gt;configurable options&lt;/strong&gt;. Don't type the lists in by hand. AWS adds images and retires plans, and a hand-made list goes stale quietly. Build the options from the live Lightsail catalogue, then hide whatever you don't want to sell.&lt;/p&gt;

&lt;p&gt;Extras sell well as configurable options too: extra storage, a static IP, automatic snapshots and snapshot slots. Each costs you money at AWS, so each should cost the customer something.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: upgrades are a rebuild, not a resize
&lt;/h2&gt;

&lt;p&gt;Customers will ask for a bigger server. Lightsail has no in-place resize for instances. The supported path, according to AWS, is to snapshot the instance and launch a larger one from the snapshot. Snapshots can't create a smaller plan, so downgrades aren't possible this way.&lt;/p&gt;

&lt;p&gt;That has knock-on effects for WHMCS's &lt;strong&gt;Upgrade/Downgrade&lt;/strong&gt; setup:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Only offer upgrade paths to a larger plan on the same operating system and in the same region.&lt;/li&gt;
&lt;li&gt;Without a static IP, the new server gets a new public address. Tell customers before they upgrade, or sell static IPs with the plan.&lt;/li&gt;
&lt;li&gt;An extra block storage disk can't be grown. Moving it across as it is works; promising more disk space by upgrading it doesn't.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 5: what the customer needs in the client area
&lt;/h2&gt;

&lt;p&gt;A VPS customer needs a short list of things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;power: start, stop and reboot;&lt;/li&gt;
&lt;li&gt;connection details: IP addresses, SSH user and a downloadable key (RDP details on Windows);&lt;/li&gt;
&lt;li&gt;a firewall they can open and close ports on;&lt;/li&gt;
&lt;li&gt;snapshots they can take, restore and delete;&lt;/li&gt;
&lt;li&gt;usage graphs, so "my server is slow" comes with numbers;&lt;/li&gt;
&lt;li&gt;an activity log, so you both know what happened and when.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A browser terminal is worth adding. A customer who has locked themselves out with a firewall change, or who is on a laptop without an SSH client, can still get in.&lt;/p&gt;

&lt;p&gt;Decide per product which of these customers get; a managed VPS might keep the firewall for your team.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the Lightsail bill hides
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Stopped isn't free.&lt;/strong&gt; AWS bills Lightsail instances while they're running &lt;em&gt;or&lt;/em&gt; stopped, and charges stop only when the instance is deleted. Stopping a server on suspension is the right reaction to a late payment, because the data survives. But a suspended service that's never paid is costing you every hour. Set WHMCS's termination days so that unpaid services are actually terminated.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Snapshots bill for as long as they exist.&lt;/strong&gt; Every manual and automatic snapshot carries a storage charge per gigabyte-month. Automatic snapshots keep the latest seven and are deleted with the instance. Manual snapshots are different: AWS keeps them after the instance is deleted, so they can outlive the customer. Cap snapshot slots, and check what's left after a termination.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Static IPs cost nothing while attached.&lt;/strong&gt; AWS charges for a static IP left unattached for more than an hour. A terminated service whose static IP isn't released keeps billing you.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Extra disks bill on their own.&lt;/strong&gt; A block storage disk is charged separately from the plan, attached or not.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The data-transfer allowance has two sides.&lt;/strong&gt; Every plan includes a transfer allowance, and traffic both in and out of the instance counts toward it. If it's exceeded, AWS charges for the excess outbound traffic to the internet. One busy customer can turn a profitable plan into a loss. Build a margin into the plan price, or record usage in WHMCS so you can act.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Your price list drifts.&lt;/strong&gt; A plan's AWS price covers the instance only, not the extras above. Compare your AWS bill with what each WHMCS service pays at least monthly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Suspension and termination
&lt;/h2&gt;

&lt;p&gt;Keep the mapping simple: suspend stops the instance, unsuspend starts it, and terminate deletes it along with whatever was created for it. Run termination from WHMCS rather than the AWS console, so the service record and the AWS account never disagree. And keep an eye on the WHMCS cron: it's what suspends and terminates overdue services, so if it stops, unpaid servers keep running at your expense.&lt;/p&gt;

&lt;h2&gt;
  
  
  The module we built for this
&lt;/h2&gt;

&lt;p&gt;PD AWS Lightsail is our WHMCS module for this job. It generates configurable options from your live Lightsail catalogue: region, plan, operating system, extra storage, static IP, automatic daily snapshots and snapshot slots. It provisions on payment. Suspension stops the server, unsuspension starts it and termination deletes it, releasing its static IP. Plan upgrades go through WHMCS's Upgrade/Downgrade as a data-preserving resize (snapshot, larger server, swap), keeping the zone, firewall rules, SSH key and static IP. Customers get power, connection details, a firewall, snapshots, usage graphs, an activity log and, if you switch it on, a browser console.&lt;/p&gt;

&lt;p&gt;Price Analysis shows AWS's price for each plan next to a suggested price at your target margin. A daily check flags any plan or image AWS has retired from your options, and one click of Sync hides it without touching existing services. Bandwidth metering is optional per product: it records each server's transfer in and out against the plan's allowance, so WHMCS can show usage and suspend services that exceed it. It installs and updates from the PD Modules panel inside WHMCS, and an update that fails rolls itself back.&lt;/p&gt;

&lt;p&gt;See the &lt;a href="https://www.pdhosting.co.uk/modules/whmcs/pd-aws-lightsail/" rel="noopener noreferrer"&gt;PD AWS Lightsail module page&lt;/a&gt; for requirements and screenshots.&lt;/p&gt;

&lt;p&gt;This post is part of a series on reselling AWS from WHMCS; start with the &lt;a href="https://dev.to/pdmodules/reselling-aws-from-whmcs-what-you-can-sell-and-where-the-bill-hides-3106"&gt;overview&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Questions about selling Lightsail from WHMCS are welcome in the comments.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;PD Modules is made by Projektif Digital Ltd, the team behind PD Hosting.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>whmcs</category>
      <category>vps</category>
      <category>hosting</category>
    </item>
    <item>
      <title>How to sell DigitalOcean Droplets from Blesta</title>
      <dc:creator>Bulent Kocaman</dc:creator>
      <pubDate>Thu, 19 Nov 2026 10:00:00 +0000</pubDate>
      <link>https://dev.to/pdmodules/how-to-sell-digitalocean-droplets-from-blesta-41fa</link>
      <guid>https://dev.to/pdmodules/how-to-sell-digitalocean-droplets-from-blesta-41fa</guid>
      <description>&lt;p&gt;Blesta handles the billing side of a hosting company well: packages, invoices, suspensions, cancellations. Adding cloud servers to that catalogue is a natural move, and DigitalOcean is a sensible place to run them. You keep one provider account, they keep the hardware, and your clients buy a server from you.&lt;/p&gt;

&lt;p&gt;What Blesta can't do on its own is talk to DigitalOcean. Between "invoice paid" and "server running" there's a lot of work: building the Droplet, handing the client their access, reacting to plan changes, and tidying up when the service is cancelled. Miss a step and you either have an unhappy client or a provider bill for resources nobody is paying you for.&lt;/p&gt;

&lt;p&gt;Here's how to structure it in Blesta, and the cost traps to plan for whatever tooling you choose.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the pieces fit
&lt;/h2&gt;

&lt;p&gt;Think of it as three layers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Your DigitalOcean account&lt;/strong&gt; owns every Droplet. DigitalOcean invoices you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Blesta&lt;/strong&gt; owns the client relationship: the package, the configurable options, the invoices and the service record.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A provisioning module&lt;/strong&gt; links the two, so Blesta's service events (activate, change, suspend, cancel) become API calls against DigitalOcean.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Clients never log in to DigitalOcean, and never need an account there. Everything they see is on their Blesta service page, under your company's name. The gap between what you charge per billing term and what DigitalOcean charges you is your margin.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: add the account as a module row
&lt;/h2&gt;

&lt;p&gt;In Blesta, provider credentials live on the module, under &lt;strong&gt;Settings → Company → Modules&lt;/strong&gt;. Generate a personal access token in DigitalOcean's API settings and save it there, where Blesta keeps it encrypted.&lt;/p&gt;

&lt;p&gt;Give the token write access. A read-only token will happily answer "is this connected?" and then fail when the first paid order tries to create a server. Full Access is the simple choice; custom scopes work if they cover Droplets and the other resources you plan to sell. Set yourself a reminder before it expires, because an expired token stops new orders and client actions even though existing servers keep running.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: build the package and its options
&lt;/h2&gt;

&lt;p&gt;Create a package that uses the module and that account. Two settings matter more than they look:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hold paid pending services&lt;/strong&gt; should stay unticked if you want paid orders built automatically, rather than waiting for a member of staff to approve them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Configurable options&lt;/strong&gt; decide what the client chooses at checkout.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Resist typing region and size lists in by hand. DigitalOcean adds regions and retires plans, and a hand-made list goes stale without warning. Generate the options from the live catalogue instead: region, plan, operating system, extra block storage, automated backups, a dedicated IP, and how many snapshots the client may keep. Hide what you don't want to sell, then set your prices for each term under &lt;strong&gt;Packages → Configurable Options&lt;/strong&gt;. Before you open the order form to clients, check that every plan you show is actually available in the regions you show.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fajxtc8d0xu52w28a7vsb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fajxtc8d0xu52w28a7vsb.png" alt="A Blesta package with its options generated from DigitalOcean's catalogue" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: give each service a proper set of tabs
&lt;/h2&gt;

&lt;p&gt;Blesta lets a module add tabs to a client's service page, and that's where a cloud server earns its keep. A useful set covers:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;status and power:&lt;/strong&gt; on, shut down, reboot, rename and rebuild;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;access:&lt;/strong&gt; IPv4 and IPv6 addresses, an SSH key made for that one server, and a command ready to paste;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;a firewall per server:&lt;/strong&gt; DigitalOcean Cloud Firewalls let the client open only the ports they need;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;snapshots and backups&lt;/strong&gt; they can take and restore themselves;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CPU and bandwidth graphs&lt;/strong&gt;, plus an activity log so both of you can see what happened and when.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fncico76gid4k61ajfnn4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fncico76gid4k61ajfnn4.png" alt="A client's Droplet service page in Blesta, with power controls and server details" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvqyov248n209fhsu9tsp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvqyov248n209fhsu9tsp.png" alt="The client's own firewall rules for this server" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you can, add a terminal that opens in the browser. A client locked out by their own firewall change, or without an SSH client on the laptop they have with them, can still get in and fix things.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1d1fdplh5vo9pkg5z32e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1d1fdplh5vo9pkg5z32e.png" alt="A root terminal opened from the Blesta service page" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: know where the provider bill hides
&lt;/h2&gt;

&lt;p&gt;This is where cloud reselling quietly loses money:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Suspension doesn't stop the meter.&lt;/strong&gt; When Blesta suspends an unpaid service, powering the Droplet off is the safe choice because the disk survives. DigitalOcean still charges for a stopped Droplet, though. If a service stays unpaid, cancel it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Snapshots cost money for as long as they exist,&lt;/strong&gt; charged by the gigabyte. Sell a snapshot allowance as a configurable option, so clients pay for the storage they keep.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A Droplet is rarely alone.&lt;/strong&gt; Block storage, a firewall, a reserved IP and SSH keys can all belong to one service. Deleting only the server leaves the rest on your bill. Cancellation should remove each piece and confirm with DigitalOcean that it's gone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decide what happens to client snapshots.&lt;/strong&gt; Deleting a client's only backup the moment they cancel is unkind; keeping it forever costs you. Agree it in advance.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiivbf5rr9h2dft18z7xa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiivbf5rr9h2dft18z7xa.png" alt="A client's snapshot list, with the number used out of the number bought" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 5: keep the background work moving
&lt;/h2&gt;

&lt;p&gt;Creating a Droplet takes seconds, but the finishing steps (recording its addresses, attaching storage, creating the firewall) and client actions such as a reboot normally happen in a background task. In Blesta, that means the cron and the tasks under &lt;strong&gt;Settings → Company → Automation&lt;/strong&gt;. If those run rarely, clients wait. Aim for client-facing work to start within about a minute.&lt;/p&gt;

&lt;h2&gt;
  
  
  The module we built for this
&lt;/h2&gt;

&lt;p&gt;PD DigitalOcean Droplets is our Blesta module for exactly this. It generates package options from DigitalOcean's live catalogue, builds the Droplet when Blesta activates a paid order, and gives clients service tabs for power, connection details, a browser console, their own Cloud Firewall, snapshots, backups, usage graphs and activity. Plan changes resize the server, suspension powers it off, and cancellation with "Use module" ticked removes the Droplet and the resources it created once DigitalOcean confirms. It runs inside the PD Modules panel in Blesta, which adds a one-minute background task to Blesta's automation with no extra cron to set up.&lt;/p&gt;

&lt;p&gt;For requirements and screenshots, see the &lt;a href="https://www.pdhosting.co.uk/modules/blesta/pd-digitalocean-droplets/" rel="noopener noreferrer"&gt;module page&lt;/a&gt;. Questions about running cloud servers from Blesta are welcome in the comments.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;PD Modules is made by Projektif Digital Ltd, the team behind PD Hosting.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>blesta</category>
      <category>digitalocean</category>
      <category>hosting</category>
      <category>cloud</category>
    </item>
    <item>
      <title>Reselling AWS from WHMCS: what you can sell, and where the bill hides</title>
      <dc:creator>Bulent Kocaman</dc:creator>
      <pubDate>Mon, 16 Nov 2026 10:00:00 +0000</pubDate>
      <link>https://dev.to/pdmodules/reselling-aws-from-whmcs-what-you-can-sell-and-where-the-bill-hides-3106</link>
      <guid>https://dev.to/pdmodules/reselling-aws-from-whmcs-what-you-can-sell-and-where-the-bill-hides-3106</guid>
      <description>&lt;p&gt;Most hosting companies already have an AWS account. Few sell much from it. It's usually a server or two for their own systems, while customers who want "something on AWS" get pointed at the AWS console and told to get on with it.&lt;/p&gt;

&lt;p&gt;AWS can be a whole product range in WHMCS instead: virtual servers, managed databases, object storage, DNS and SMS, each under your brand, on your invoices, at your prices. The customer pays you, you pay AWS, and the customer never needs an AWS login.&lt;/p&gt;

&lt;p&gt;This post maps what's worth selling, the groundwork they all share, and the AWS charges that quietly turn a profitable service into a loss. Later posts in this series go deeper on each product.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you can sell
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Product&lt;/th&gt;
&lt;th&gt;AWS service&lt;/th&gt;
&lt;th&gt;Who buys it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Simple VPS&lt;/td&gt;
&lt;td&gt;Amazon Lightsail&lt;/td&gt;
&lt;td&gt;Customers who want a server with a simple monthly price&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cloud server&lt;/td&gt;
&lt;td&gt;Amazon EC2&lt;/td&gt;
&lt;td&gt;Customers who want instance types, Windows, or more control&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Relational databases&lt;/td&gt;
&lt;td&gt;Amazon RDS (MySQL, MariaDB, PostgreSQL, Oracle, SQL Server); MySQL and PostgreSQL also on Lightsail&lt;/td&gt;
&lt;td&gt;Anyone with an app that needs a database they don't have to run&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Document, graph and cache&lt;/td&gt;
&lt;td&gt;Amazon DocumentDB, Neptune, ElastiCache&lt;/td&gt;
&lt;td&gt;Developers whose apps already run in AWS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Object storage&lt;/td&gt;
&lt;td&gt;Amazon S3&lt;/td&gt;
&lt;td&gt;Backups, media, static files&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DNS hosting&lt;/td&gt;
&lt;td&gt;Amazon Route 53&lt;/td&gt;
&lt;td&gt;Every customer with a domain&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SMS&lt;/td&gt;
&lt;td&gt;Amazon SNS&lt;/td&gt;
&lt;td&gt;You, to text customers about invoices, services and tickets&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two of these need a word of warning before you list them:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;DocumentDB, Neptune and ElastiCache are only reachable from inside your AWS network&lt;/strong&gt; (the VPC). They have no public address, so they suit customers whose application servers sit in the same AWS network. Sell them to that audience, and say so on the product page, or you'll get refunds from customers who can't connect from their laptop.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Oracle and SQL Server on RDS can be bought licence-included,&lt;/strong&gt; so neither you nor the customer buys a separate licence. The licence is in AWS's hourly rate, so these cost noticeably more per hour than the open-source engines. Price them accordingly.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The groundwork they share
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A dedicated IAM user per product, not your root key.&lt;/strong&gt; Create an IAM user for each product line with only the permissions that product needs (Lightsail actions for the Lightsail product, RDS for databases, and so on). If a key ever leaks, the damage is limited to that product and you can revoke that key without touching anything else.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Store credentials where customers can't see them.&lt;/strong&gt; In WHMCS the natural home is a server record, which WHMCS stores encrypted. Customers only ever see their own resource.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Turn on automatic setup.&lt;/strong&gt; On the product's &lt;strong&gt;Module Settings&lt;/strong&gt; tab, &lt;em&gt;Automatically setup the product&lt;/em&gt; should normally be &lt;strong&gt;When the first payment is received&lt;/strong&gt;. If it's off, an order completes, the service is marked Active, and nothing is ever created at AWS. There's no error anywhere; the customer simply has an empty service.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Choose regions on purpose.&lt;/strong&gt; Not every plan, instance class or engine exists in every region. Generate your order-form options from what AWS actually offers per region, rather than typing lists by hand, and recheck them when AWS retires something.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the bill hides
&lt;/h2&gt;

&lt;p&gt;This is the part that decides whether reselling AWS makes money.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Stopped isn't free.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A stopped &lt;strong&gt;Lightsail&lt;/strong&gt; instance or database is still billed. AWS says plainly that Lightsail resources accrue charges until they're deleted, stopped or not.&lt;/li&gt;
&lt;li&gt;A stopped &lt;strong&gt;EC2&lt;/strong&gt; instance stops charging for compute, but its disks (EBS volumes) and its public IPv4 address keep billing.&lt;/li&gt;
&lt;li&gt;A stopped &lt;strong&gt;RDS&lt;/strong&gt;, &lt;strong&gt;DocumentDB&lt;/strong&gt; or &lt;strong&gt;Neptune&lt;/strong&gt; database stops charging for the instance, but not for storage, and AWS &lt;strong&gt;starts it again by itself after seven days&lt;/strong&gt; so it doesn't miss maintenance. A database you "parked" for an unpaid invoice is quietly billing again a week later.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So suspension (stop the resource, keep the data) is the right reaction to a late payment, but it isn't a long-term state. Services that stay unpaid should be terminated.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Termination has to remove everything.&lt;/strong&gt; A server is rarely alone. EC2 brings an Elastic IP, a security group, a key pair, extra volumes and backups; Lightsail brings snapshots and static IPs; a database brings snapshots and its firewall rules. Delete only the main resource and the rest keeps billing, with nobody paying for it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Snapshots cost money for as long as they exist.&lt;/strong&gt; If customers can take them, cap how many, or sell extra snapshot slots as a configurable option.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Usage-based products need metering.&lt;/strong&gt; S3 storage and SMS are paid per use. If WHMCS doesn't know how much a customer used, you can't bill overage, and a single heavy user eats the margin of everyone else.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Margins drift.&lt;/strong&gt; A customer upgrades and the price is never revisited. AWS changes a rate. A resource from a cancelled order is still running. None of this shows up in WHMCS. Once a month, compare the AWS bill with what each service actually pays you.&lt;/p&gt;

&lt;h2&gt;
  
  
  A sensible order to launch in
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Lightsail VPS.&lt;/strong&gt; Predictable AWS cost, easy to price, easy to explain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Managed MySQL or PostgreSQL.&lt;/strong&gt; The most common add-on a VPS customer asks for.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;S3 storage.&lt;/strong&gt; A natural upsell for backups.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Route 53 DNS.&lt;/strong&gt; Low effort, useful to every customer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;EC2, the other database engines and SMS&lt;/strong&gt;, once the first products run smoothly.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The modules we built for this
&lt;/h2&gt;

&lt;p&gt;We make a WHMCS module for each of these: &lt;strong&gt;PD AWS Lightsail&lt;/strong&gt;, &lt;strong&gt;PD AWS EC2&lt;/strong&gt;, &lt;strong&gt;PD AWS MySQL&lt;/strong&gt;, &lt;strong&gt;MariaDB&lt;/strong&gt;, &lt;strong&gt;PostgreSQL&lt;/strong&gt;, &lt;strong&gt;Oracle&lt;/strong&gt; and &lt;strong&gt;SQL Server&lt;/strong&gt;, &lt;strong&gt;PD AWS DocumentDB&lt;/strong&gt;, &lt;strong&gt;Neptune&lt;/strong&gt; and &lt;strong&gt;ElastiCache&lt;/strong&gt;, &lt;strong&gt;PD AWS S3&lt;/strong&gt;, &lt;strong&gt;PD AWS Route 53 DNS&lt;/strong&gt; and &lt;strong&gt;PD AWS SNS&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;They're built around the traps above:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;terminating an EC2 server also releases its Elastic IP and removes its security group, key pair, extra disks and backups; DocumentDB and Neptune remove the cluster, its firewall and its snapshots;&lt;/li&gt;
&lt;li&gt;Lightsail and EC2 check daily for plans and images AWS has retired;&lt;/li&gt;
&lt;li&gt;S3 usage is metered into WHMCS each day, and a terminated S3 service keeps its data for a retention window you choose before anything is purged;&lt;/li&gt;
&lt;li&gt;Lightsail and EC2 show AWS's price for each plan next to a suggested price at your margin.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every one installs and updates from a single panel inside WHMCS, the free &lt;strong&gt;PD Modules&lt;/strong&gt; panel, and an update that fails rolls itself back. &lt;strong&gt;PD Cloud Cost &amp;amp; Margin&lt;/strong&gt; reads your AWS bill and matches each charge to the WHMCS service that should be paying for it.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://www.pdhosting.co.uk/modules/whmcs/pd-aws-lightsail/" rel="noopener noreferrer"&gt;PD AWS Lightsail module page&lt;/a&gt; is a good place to start. Questions about selling AWS from WHMCS are welcome in the comments.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;PD Modules is made by Projektif Digital Ltd, the team behind PD Hosting.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>aws</category>
      <category>whmcs</category>
      <category>hosting</category>
      <category>cloud</category>
    </item>
    <item>
      <title>How to sell DigitalOcean Droplets from WHMCS as your own VPS product</title>
      <dc:creator>Bulent Kocaman</dc:creator>
      <pubDate>Sun, 15 Nov 2026 14:21:04 +0000</pubDate>
      <link>https://dev.to/pdmodules/how-to-sell-digitalocean-droplets-from-whmcs-as-your-own-vps-product-138l</link>
      <guid>https://dev.to/pdmodules/how-to-sell-digitalocean-droplets-from-whmcs-as-your-own-vps-product-138l</guid>
      <description>&lt;p&gt;If you run a hosting business on WHMCS, selling cloud servers is an obvious next step. You don't need your own hardware for it: DigitalOcean already runs the servers, and your customers just want a VPS, a fair price and a control panel that works.&lt;/p&gt;

&lt;p&gt;The hard part is everything in between. Someone has to create the server when an order is paid, give the customer a way to manage it, resize it on upgrade, power it off when an invoice goes unpaid, and remove every last piece when the service ends, so nothing keeps billing your DigitalOcean account. Doing that by hand doesn't scale past a handful of customers.&lt;/p&gt;

&lt;p&gt;This post walks through how that flow works in WHMCS, and the decisions worth getting right whichever tool you use.&lt;/p&gt;

&lt;h2&gt;
  
  
  The flow you want
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;A customer orders a server in your WHMCS and picks a region, a plan and an operating system.&lt;/li&gt;
&lt;li&gt;When the first payment arrives, WHMCS sets up the order and a Droplet is created on &lt;strong&gt;your&lt;/strong&gt; DigitalOcean account.&lt;/li&gt;
&lt;li&gt;The customer manages it from their client area, under your brand. They never need a DigitalOcean account.&lt;/li&gt;
&lt;li&gt;Upgrades, suspensions and cancellations in WHMCS change the Droplet to match.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;WHMCS bills your customers; DigitalOcean bills you. Your margin is the difference, and you set every price.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Connect DigitalOcean to WHMCS
&lt;/h2&gt;

&lt;p&gt;Create a DigitalOcean API token with read and write access to Droplets (Full Access is simplest). A read-only token will pass a connection test and then fail on the first real order, which is a confusing way to find out.&lt;/p&gt;

&lt;p&gt;In WHMCS the token belongs on a server record, stored encrypted. Your customers never see it.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Build checkout options from the live catalogue
&lt;/h2&gt;

&lt;p&gt;The tempting shortcut is to hard-code a few plans in WHMCS configurable options. It works until DigitalOcean adds a region or retires a size, and then your order form quietly drifts out of date.&lt;/p&gt;

&lt;p&gt;It's better to generate the options from DigitalOcean's live catalogue: region, server plan and operating system, plus the extras you want to sell, such as extra storage (Volumes), automated Backups and a dedicated reserved IP. Then price what you sell and hide the rest.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F697al5a322lyz3hcvpub.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F697al5a322lyz3hcvpub.png" alt="The WHMCS product's settings, with checkout options generated from DigitalOcean's catalogue" width="800" height="1287"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Give customers a real control panel
&lt;/h2&gt;

&lt;p&gt;A VPS customer expects to manage their own server. At minimum that means power controls, connection details and a way to recover from mistakes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;power on, shut down, reboot and rename;&lt;/li&gt;
&lt;li&gt;IP addresses, an SSH key generated for that server, and a ready-made SSH command;&lt;/li&gt;
&lt;li&gt;a firewall they can edit themselves (DigitalOcean's Cloud Firewalls work well per server);&lt;/li&gt;
&lt;li&gt;snapshots, restore and rebuild;&lt;/li&gt;
&lt;li&gt;CPU and bandwidth graphs, and a history of what happened.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6yyg7ari2r70nwqfkhfi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6yyg7ari2r70nwqfkhfi.png" alt="A customer's server page in the WHMCS client area" width="800" height="1112"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F89r0sk8cy5mzpqpodv9r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F89r0sk8cy5mzpqpodv9r.png" alt="Connection details with a downloadable key and an SSH command" width="560" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A browser console is worth offering too: a terminal in the client area means customers don't need an SSH client to fix a broken config at 2am.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Get the money details right
&lt;/h2&gt;

&lt;p&gt;These are the parts that cost hosts money when they're overlooked:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A powered-off Droplet is still billed.&lt;/strong&gt; Suspending an unpaid service by powering the server off protects your customer's data, but DigitalOcean keeps charging you. Terminate services that stay unpaid.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Snapshots are billed per GB while they exist.&lt;/strong&gt; If customers can take snapshots, give them an allowance and sell extra slots, rather than letting storage grow unchecked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Termination must clean up everything.&lt;/strong&gt; Deleting the Droplet isn't enough. Its Volume, firewall, reserved IP and SSH keys should go too, and the clean-up should confirm with DigitalOcean that they're gone.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft7u0mo6tho1renqajuip.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft7u0mo6tho1renqajuip.png" alt="Snapshots counted against the allowance the customer bought" width="800" height="485"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Mind the cron
&lt;/h2&gt;

&lt;p&gt;Creating a server is quick, but the follow-up work (recording its IPs, attaching storage, creating its firewall, carrying out a customer's reboot) usually runs on a schedule. On the standard WHMCS cron that's typically every five minutes, so a customer's reboot can sit waiting. A dedicated one-minute cron makes the panel feel responsive.&lt;/p&gt;

&lt;h2&gt;
  
  
  The module we built for this
&lt;/h2&gt;

&lt;p&gt;We make PD DigitalOcean Droplets, a WHMCS module that does all of the above: options generated from DigitalOcean's live catalogue, the customer control panel (including the browser console), resizing through WHMCS upgrades, and a clean-up that checks with DigitalOcean when a service ends. It runs inside the free PD Modules panel, which also offers that one-minute cron.&lt;/p&gt;

&lt;p&gt;If you're setting this up, the &lt;a href="https://www.pdhosting.co.uk/modules/whmcs/pd-digitalocean-droplets/" rel="noopener noreferrer"&gt;module page&lt;/a&gt; has the details. Questions about selling DigitalOcean from WHMCS in general are welcome in the comments too.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;PD Modules is made by Projektif Digital Ltd, the team behind PD Hosting.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>whmcs</category>
      <category>digitalocean</category>
      <category>hosting</category>
      <category>devops</category>
    </item>
  </channel>
</rss>
