Skip to content

polen1kaa/cryptobot-whmcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CryptoBot for WHMCS

CryptoBot payment module for WHMCS client panel

Demo

The module is used in ApexNodes and MadHost client panel

Installation

  1. Download the latest release and upload the files from the archive to the following path:
/var/www/whmcs/modules/gateways/
  1. Activate the module, set the USD currency in the payment module settings.

FAQ

How do I get a Token?

First, you need to create a new app and get API token. Open @CryptoBot, go to Crypto Pay and tap Create App to get API Token.

How to enable Webhooks?

Open @CryptoBot, go to Crypto Pay → My Apps, choose an app, then choose Webhooks... and tap 🌕 Enable Webhooks. Then enter the following link:

https://<YOUR WHMCS DOMAIN>/modules/gateways/callback/cryptobot.php

From which IP addresses are notifications sent via webhook?

Unfortunately, CryptoBot does not provide specific addresses. If you use a firewall (such as Cloudflare), create a custom WAF rule that will skip all requests sent to your handler URL(https://.../modules/gateways/callback/cryptobot.php).

I made a bypass rule for webhook, but that opened the backdoor to possible DDoS attacks. How to fix it?

Open @CryptoBot, go to Crypto Pay → My Apps, choose an app, then choose Webhooks... and tap 🌕 Enable Webhooks. Then enter the following link:

https://<YOUR WHMCS DOMAIN>/modules/gateways/callback/cryptobot.php?<RANDOM CHARACTERS WITHOUT SPACES>

Characters after the ? sign count as GET parameters that only you know. Now make a custom WAF rule (e.g. via Cloudflare) that checks the full URL path:

(starts_with(http.request.full_uri, "https://<YOUR WHMCS DOMAIN>/modules/gateways/callback/cryptobot.php?<RANDOM CHARACTERS WITHOUT SPACES>"))

Support

Any questions? Write me in Telegram: @polenikaa