Skip to content

Releases: Waqasahmedwaseer/Whmcs-Spaceship-Registrar

v1.2.0 — Nameserver Fix, TLD Pricing Import & GetDomainInformation

15 Feb 08:43

Choose a tag to compare

What's Changed in v1.2.0

✨ New Features

  • GetDomainInformation — Implemented the WHMCS-recommended consolidated domain info function (WHMCS 7.6+). This replaces individual GetNameservers and GetRegistrarLock calls with a single API call, ensuring nameservers, expiry date, transfer lock, ID protection, and registration status are all correctly populated in the WHMCS admin area.
  • TLD Pricing Import & Sync — Implemented GetTldPricing function for the WHMCS Registrar TLD & Pricing Sync Utility. Supports 33+ popular TLDs (gTLDs and ccTLDs) with registration, renewal, and transfer pricing in USD.

🐛 Bug Fixes

  • Nameserver Display Fixed — Nameservers now correctly appear in the WHMCS admin client profile. The Spaceship API returns the nameservers key in lowercase, but the module was checking for camelCase nameServers.
  • TLD Pricing Error Resolved — Fixed "Invalid GetTldPricing Response from Module" error on the WHMCS TLD Sync/Import page. The previous implementation returned an empty array instead of the required ResultsList object.
  • Privacy Level Values — Corrected privacy level values from off to public in registration and transfer functions, per Spaceship API specification.
  • Domain Renewal — Fixed renewal requests by fetching currentExpirationDate from the API before making renewal calls.
  • Transfer Sync — Added handling for cancelled transfer status.

🔧 Improvements

  • SRV Record Handling — Enhanced DNS management for SRV records in both GetDNS and SaveDNS functions.
  • Contact Data Formatting — Improved phone number formatting, field length truncation, and optional field handling.

📦 Installation

  1. Download spaceship-whmcs-registrar-v1.2.0.zip below
  2. Extract to /path/to/whmcs/modules/
  3. Activate in WHMCS Admin → System Settings → Domain Registrars

See CHANGELOG.md for full version history.