Categories
Hourly Billing

Hourly Billing: Email Template

To send a credit warning email, you will need to create the following email template

  • Unique Name: Credit Warning
  • Type: General
  • Subject: Low Credit Warning
  • Body: (see below)
Dear {$client_name},
Your credit balance has gone below £{$low_credit}. 
Please top-up your credit, when your credit reaches £0 your services will be terminated.
Thanks {$company_name}
Categories
Vultr

Vultr: Upgrading

Here are any manual steps required when upgrading.

All Versions

  • Delete the old files (/modules/addons/vultr and /modules/servers/vultr)
  • Upload the new files
  • Visit the addon page to run the update process

v1.0.0

  • To activate the availability hook, you must edit and re-save each product
Categories
Vultr

Vultr: Customization

You can edit the clientarea.tpl file as required

Categories
Digital Ocean

Digital Ocean: Upgrading

Here are any manual steps required when upgrading.

Current Version < 0.2.7

  • Delete the old files (/modules/addons/digitalocean, /modules/servers/digitalocean and /images/do)
  • Upload the new files
    • If you are upgrading to v0.2.7+ and would like to enable Private Networking, you will need to create a configurable option ‘Private Networking’ with the options ‘No’ and ‘Yes’
  • Visit the addon page to run the update process

Current Version < 1.0.0

  • Delete the old files (/modules/addons/digitalocean and /modules/servers/digitalocean)
  • Upload the new files
    • If you are upgrading to v1.0.0+ and are still using Operating System and Data Center custom fields, you must change these to configurable options (see install instructions)
  • Visit the addon page to run the update process
Categories
Digital Ocean

Digital Ocean: Customization

You can edit the clientarea_*.tpl files as required
You can also edit the “Dedicated/VPS Server Welcome Email”. This must contain:

Main IP Address: {$service_dedicated_ip}
Username: {$service_username}
Password: {$service_password}
Categories
Hourly Billing

Hourly Billing: Changelog

V0.0.3
– Fixed issue where cron was not invoicing terminated services
– Added domain to invoice
V0.0.2
– Minor Changes
V0.0.1
– First Release

Categories
Vultr

Vultr: Changelog

V1.0.3
– Fixed: added workaround for custom field bug
V1.0.2
– Modified: set rdns on create
– Added: display IP reverse
– Added: additional logging
– Fixed: hook for non-vultr products
– Fixed: other bug fixes
V1.0.1
– Fixed: bug fixes
V1.0.0
– Modified: updated client area for WHMCS 6
– Added: additional information in client area (e.g. memory, cpus, disk space etc.)
– Added: additional information in admin area (e.g. memory, cpus, disk space etc.)
– Added: support for applications
– Added: VNC console in client area (warning: will display Vultr URL)
– Added: support for DNS
– Added: hook to check availability (note: must re-save products to activate)
V0.0.4
– [added] Private networking enabled by default
– [added] Email admin when module create fails
– [added] Check cURL version
– [fixed] Bug where hidden images were displayed
– [fixed] Display correct password after reinstall
– [fixed] Set server label on create
V0.0.3
– added option for client to change OS
– added ability to set rDNS for IPv6
V0.0.2
– added reinstall option in client area
– added support for ipv6 when it becomes available
– added startup scripts
– added option to set rDNS in client area
V0.0.1
– Create server
– Terminate Server
– Suspend/Unsuspend Server
– Reboot Server
– Start Server
– Halt Server
– Display IP/Password

Categories
Digital Ocean Digital Ocean v2

Digital Ocean: Changelog

V2.2.2
– Modified: minor fixes and improvements
V2.2.1
– Added: support for WHMCS 7.5 & PHP 7.1+
V2.2.0
– Added: option for client to add ssh key when creating droplet
– Added: option to have a live list of images, or list specified from configurable options when rebuilding droplets
– Added: check for php-imap on addon page
– Added: better error reporting in client area
– Modified: major code changes
– Modified: minor changes to addon pages
– Modified: minor clientarea tweaks
– Modified: uses image slugs when creating confgurable options
– Removed: email piping, must now use IMAP import
V2.1.3
– Fixed: fixed IMAP issue
– Added: debug information for support requests
V2.1.2
– Fixed: added workaround for custom field bug
V2.1.1
– Modified: updated updated database calls to use capsule
– Modified: other minor changes
V2.1.0
– Modified: updated client area for WHMCS 6
– Modified: will now power off droplet during resize
– Added: additional information in client area (e.g. memory, cpus, disk space etc.)
– Added: additional information in admin area (e.g. memory, cpus, disk space etc.)
– Added: ability for client to change kernel
– Added: user data can be added by clients on order form
V2.0.5
– Fixed: client area for custom themes
– Added: Resize disk when upgrading
V2.0.4
– Modified: Option to disable IMAP certificate validation
– Fixed: Fixed error caused by complex IMAP passwords
V2.0.2
– Fixed: Minor bug fixes
V2.0.1
– Fixed: Minor bug fixes
V2.0.0
– Added: Ability to create products with required settings from within module
– Added: If no hostname set srv{serviceid}.yourdomain.com will be set
– Added: IPv6 saved to ‘assigned IPs’ in WHMCS
– Added: All IPs saved under ‘notes’ in WHMCS to comply with proposed government regulations
– Added: debug log
– Added: send email on creation fail
– Added: push snapshot to all regions
– Added: DNS/Domain support
– Added: POP/IMAP import of emails
– Modified: Updated to APIv2
– Modified: Snapshots now a separate product (can be billed separately from droplet)
– Modified: IPv6 and Private Networking enabled by default (where available)
– Modified: Revamped ClientArea
– Modified: Processing bar when performing actions
– Fixed: Email piping
V1.0.0
– Module now only supports configurable options
– Modified admin area to display droplet IDs
– Modified create command so if hostname/domain is empty auto generate one
– Modified create option groups command to include all available regions/images
– Modified terminate command to always scrub data
– Modified email pipe to use whmcs “Dedicated/VPS Server Welcome Email” template
– Modified management actions to hide actions
– Added save username and default password to database
– Added clientarea.tpl for the client area
– Added destroy option on control tab
V0.2.7
– Added support for Private Networking
– Added support for global SSH Keys
V0.2.6
– Minor changes to cURL connection
V0.2.5
– Fixed backup issue after Digital Ocean system changes
– Added language file for email
V0.2.4
– Added suspend/unsuspend function
– Added language file for client area
V0.2.3
– API cURL fixes
– Added auto create option group button
V0.2.2
– Added option to use configurable option groups for Datacenter and Operating System
V0.2.1
– Added ability for client to rename/change hostname of droplet
– Added dropdown for choosing droplet size
– Added option to reinstall snapshot from another droplet in the same datacentre
– Added completed history items status to database for faster loading
V0.2.0
– Added support for backups
– Added support for snapshots
– Piping timeout bug fixes
V0.1.5
– Ability to get IP address if it is not assigned
– Option to fix cURL SSL error
– Better error messages
V0.1.4
– Display API error details
V0.1.3
– New admin addon page layout
– Added droplet list to addon page
– View current module version & latest version
– Upgrade/Downgrade droplets (see notes)
V0.1.2
– First Release
V0.1.1
– Development Version
V0.1
– Development Version

Categories
Hourly Billing

Hourly Billing: Installation

  • Upload the modules folder
  • Visit Setup>Addon Modules
    • Click activate
    • Click configure
      • Enter your license
      • Tick Full Administrator
      • Click Save
        1
  • Go to Setup>Products/Services>Products/Services
    • Create a new product (or modify an existing product)
      • Set price to Free
      • Set to “Automatically setup the product as soon as an order is placed”
  • Go to Addons>Hourly Billing
    • [Module Info Tab]
      • Modify settings and save (see notes below)
        2
    • [Products Tab]
      • Enable the products, set prices and save
        3
  • Go to Setup>Email Templates
    • Make sure you have a template called “Credit Warning” (required if you want to send low credit warning – see email template wiki)
  • Create a cron job that runs every 2-5 minutes pointing to (modify the address to match your install):
    "wget -O /dev/null https://www.domain.com/modules/addons/hourlybilling/cron.php"
    • If you have enabled logging visit Utilities>Logs>Activity Log and make sure the cron is running

Notes:

  • Disable SSL – tick this option if you receive a cURL verification error
  • Minimum Charge – this is the starting charge of a product, allowing you to choose between charging at the beginning or end of the hour e.g. if set to 1 client will be charged 1 hour upon setup, if set to 0 client will not be charged 1 hour until after the first hour has passed.
  • Require Credit – if enabled (PrePay) client will require credit for services to continue, if credit reaches 0 the service will be terminated. If disabled (PostPay) the client will be invoiced for the amount at the end of the month.
  • Grace – if PrePay is enabled, when the clients credit reaches 0 they will go in to the grace period. This will mean the service is not terminated until charges reach the grace limit. The grace amount will be billed at the end of the month.
  • Low Credit – if prepay and client has active services, they will receive a daily low credit warning email once they reach this threshold. Set this option to ‘-1’ to disable sending.
  • Invoice Day – day of the month invoices should be generated (between 1 and 28).
  • Enable Log – if logging is enabled, the activity log will be updated every time the cron runs.

 

Categories
Vultr

Vultr: Installation

  • Upload the modules folder
  • Visit Setup>Addon Modules
    • Click activate
    • Click configure
      • Enter your license & API key
      • Tick Full Administrator
      • Click Save
  • Go to Addons > Vultr
    • Create a Non-Windows option group
    • Create a Windows option group
    • {Note:} if you receive a cURL error, tick the disable_ssl option and save changes
  • Go to Setup>Products/Services>Products/Services
    • Create a new product
      • [Product Type:] Dedicated/VPS Server
      • Continue
      • Details Tab
        • [Welcome Email:] Dedicated/VPS Server Welcome Email
      • Module Settings Tab
        • [Module Name:] Vultr
          • Choose a plan
          • Choose a startup script if you have any
      • Custom Fields Tab
        • [Field Name:] server_id
        • [Field Type:] Text Box
        • Admin Only
      • Configurable Options Tab
        • Choose the group you crated
        • {Note:} Windows/Non-Windows will depend on the plan you have chosen
      • Save Changes

Next Step.. Customization