DHRU Fusion
Prerequisites: self-hosted DHRU Fusion, PHP 7.4+ with curl, HTTPS.
- Install — upload the
modules/andtemplates/folders fromnexuspay-dhru-fusion.zipto the DHRU root (next tocomm.php). This addsmodules/gateways/nexuspay.php,modules/gateways/nexuspay/,modules/gateways/callback/nexuspay_dhru.phpandtemplates/nexuspay_addfunds.tpl. - Activate — Settings → Payment Gateways → Zenq Pay (USDT / USDC) → Activate → Edit; fill in
API URL, store API key, environment (
test/live), USD currency code, checkout mode. - Webhook — Dashboard → Integrations → DHRU Fusion → step 3 registers
https://<dhru>/modules/gateways/callback/nexuspay_dhru.phpforinvoice.paid; paste the secret. - Self-test — open
https://<dhru>/modules/gateways/nexuspay/selftest.php?key=<store API key>while logged in as a client; every row should pass. - Add funds — add
{include file="nexuspay_addfunds.tpl"}to a client template: preset amounts ($10 / $25 / $50 / $100 / $250) or a custom amount create a DHRU Add Funds invoice, credited to the balance from the signed webhook only. - Test — a small invoice on a test store with Simulate payment, then a real testnet payment.
The customer chooses USDT or USDC and the network on the hosted checkout. The module credits the DHRU
invoice once, only when the signed event matches the invoice id, USD amount and environment it
stored, and the payment still covers the invoice's current total. Files that touch DHRU internals
are isolated in modules/gateways/nexuspay/nexuspay_dhru.php (inferred behaviour is marked VERIFY:).