NOWPayments is a cryptocurrency payment processing platform. To use the NOWPayments payment module, you need to install the module in BILLmanager.
NOWPayments can take up to seven days to process payments. If the transaction is not completed within this time, the payment is canceled.
Module installation
- If you are using a BILLmanager version lower than 6.110.0, update the platform.
- Connect to the server with the platform via SSH. For more information about connecting via SSH, see Workstation setup.
-
Install the required dependencies:
Ubuntuapt install -y make billmanager-corporate-dev billmanager-plugin-python-libs python3-venv
AlmaLinuxdnf install -y make billmanager-corporate-devel billmanager-plugin-python-libs
- Copy the BILLmanager repository:
git clone https://github.com/ISPsystemLLC/billmanager
- Go to the module directory:
cd billmanager/paymethod/NOWPayments
- Run the installation:
make install
After the module is installed, the platform will restart and the payment method will be available for configuration.
Configuration on the BILLmanager side
To create a payment module, enter Provider → Payment methods → click Add:
- Selecting the payment module: "NOWPayments".
- Integration setup. Specify data for integration from the account settings in NOWPayments:
- Email.
- Password.
- API key. To find out the API key, log in to NOWPayments and go to Settings → Payments → API Keys.
- If necessary, enable Sandbox mode.
- Payment method setup. Configure internal (within BILLmanager) parameters of the service payment module. For more details, see How to add a payment gateway module.
Additional information
Logs
Logs of interaction between the billing platform and NOWPayments are written to file /usr/local/mgr5/var/pmnowpayments.log.
Module structure
- /dist/skins/common/plugin-logo/billmanager-plugin-pmnowpayments.png — NOWPayments logo, will be copied to /usr/local/mgr5/skins/common/plugin-logo/
- Makefile — script for copying files to required directories
- /nowpayments — directory with auxiliary functions for working with NOWPayments API:
- api.py — auxiliary functions for working with API
- enums.py — auxiliary enumerations for working with API
- __init__.py — preliminary actions before calling the API
- exceptions.py — exception calling
- pmnowpayments.py — main module of the payment system handler
- nowpaymentspayment.py — CGI for regular payments
- nowpaymentspaymentresult.py — CGI for instant payment verification
- /xml/billmgr_mod_pmnowpayments.xml — XML file with description of the form interface