openprovider / Openprovider-WHMCS-domains

Openprovider WHMCS Domain Module
43 stars 31 forks source link

Domain Module for WHMCS 8.x

This new version of Openprovider domain module is compatible with WHMCS versions up to 8.10.1 and PHP 8.1.

If you notice any bugs or lack of functionality or other problems, please report it to Openprovider Support team immediately with all available details (reseller_id, error details, module logs, WHMCS & PHP & web server version details and screenshot(s)/screen record if possible) so that we can rectify issues accordingly. The more details you can provide about issues, the faster we can reproduce and investigate it for a resolution. Your help in this regard is greatly appreciated!

Introduction

The Openprovider WHMCS module integrates conveniently with your Openprovider account, allowing you to automate domain provisioning and management tasks, such as registration, renewal, deletion, updates to contact details, etc.

The module keeps domain expiration dates, status and auto renew settings synchronized (on all Pending Transfer, Pending Registration, and Active status domains) between your WHMCS installation and Openprovider account, making sure the correct domains get renewed each day.

Additionally, the module allows you to use the Openprovider API to check for domain availability, increasing performance over the default domain availability check.

Features

Install and configure the Openprovider module

Copy files into the module directories

  1. Enter API credentials (username and password, not hash) of your user. Ensure API access is enabled in the Openprovier control panel for the credentials you are using. Please refer to this KB article if API is not enabled already.
  2. Click Save.
  3. Navigate to Utilities > Registrar TLD Sync and click on the Openprovider logo to fetch list of domain extensions and pricing information, configure margin, Automatic Registration, etc. For more details, please refer to Registrar TLD Sync.

image

 

  1. Navigate to Configuration >> System Settings >> Domain Pricing and select Openprovider as registrar for the TLDs which you want to sell via Openprovider Screenshot_20210203_180350

That's all you need to do to get started selling domains from Openprovider! Additional configurations can be found below.

Advanced configurations

Lookup provider and domain name spinning

Screenshot_20210203_181056

Enable premium domains (optional)

First make sure that the currency that you are using to pay Openprovider is configured in Configuration >> System Settings >> Currencies (prior to WHMCS 8.0, Setup >> Payments >> Currencies) and click on Update Exchange Rate. Otherwise WHMCS will not use premium fee correctly, potentially meaning that your client will pay significantly less for the domain.

  1. Enable Support premium domains
  2. Configure premium pricing and margins
  3. In the Advanced configuration file of the module ( /modules/registrars/openprovider/configuration/advanced-module-configurations.php) find the parameter "OpenproviderPremium" and set to true

Allow additional DNS records

If you plan on allowing your end users to edit their own DNS records, and want them to be able to create all record types supported by Openprovider, you can make some modifications to the WHMCS templates as described here:

Allow end users to edit DNSSEC records

Screenshot_20210203_183243

Configure TLDs which don't allow locking (.nl, .be, .eu, .es)

Not all TLDs allow domain locking, but WHMCS assumes that this option is available for all domains. As a result, end users will see a warning "you domain is unlocked" when they visit the domain details page. You can hide this option with the following changes to your template files.

{if $lockstatus eq "unlocked"}

with

{$domainSplit = "."|explode:$domain}
{$domainTld = $domain|replace: $domainSplit.0 : ""}
{if $lockstatus eq "unlocked" && $domainTld != '.eu' && $domainTld != '.nl' && $domainTld != '.be'  && $domainTld != '.es'}

Configure tag management

Set up tag management to send custom emails to the end users of your resellers.

Decide whether to use Openprovider Auto-renew

Various options exist for managing domain renewals. A detailed explanation of your options can be found here

Custom DNS Templates

Troubleshooting

If domain operations from WHMCS are not working or showing errors or if there is any connectivity issues with Openprovider or API errors, the first troubleshooting step should be to enable module logging, reproduce the issue/error and review the System Module Debug Log.

Navigate to Configuration > System Logs > Module Log (prior to WHMCS 8.0, Utilities > Logs)​ and you can find the raw API commands being sent and received by your WHMCS modules. The responses should contain additional information about the problem and how it can be solved.

alt text

If you have Openprovider addon installed and activated in your WHMCS, you should be able to download module and activity logs from Addons >> Openprovider >> click on the 'Download' button.

image

For more details, please refer to WHMCS documentation: Troubleshooting Module Problems and System Logs

Important: Only enable module logging for troubleshooting or testing purposes. At all other times, make certain that you set Module Logging to Off.

FAQ

Common issues and solutions for them can be found here.

[DEPRECATED] Configure the Openprovider cron sync

This feature is deprecated since version 5.3 of the Openprovider domain module, and is not recommended for versions WHMCS 8+. We suggest that you use the WHMCS native domain sync and do not use the Openprovider custom sync for WHMCS 8 and higher.