Overview

DompetX provides SDKs for custom integrations and platform plugins for merchants who want a faster setup. Use package managers for SDKs, because they make versioning, updates, and dependency management safer. Use ZIP downloads for platform plugins that are installed manually, such as WooCommerce and WHMCS.
IntegrationBest DistributionInstall
PHP SDKPackagist / Composercomposer require dompetx/php-sdk
Laravel SDKPackagist / Composercomposer require dompetx/laravel-sdk
Node SDKnpmnpm install @dompetx/sdk
WooCommerce PluginZIP downloadDownload WooCommerce Plugin
WHMCS GatewayZIP downloadDownload WHMCS Gateway

WooCommerce

Download and install from WordPress Admin:
  1. Plugins → Add New → Upload Plugin.
  2. Upload dompetx-woocommerce.zip.
  3. Activate DompetX for WooCommerce.
  4. Open WooCommerce → Settings → Payments → DompetX.
  5. Enter your DompetX API key and API base URL.
Webhook URL:
https://your-store.com/wc-api/dompetx

WHMCS

Download the WHMCS gateway ZIP, then upload the modules folder into your WHMCS installation. Callback URL:
https://your-whmcs-domain.com/modules/gateways/callback/dompetx.php
After uploading:
  1. Open WHMCS Admin.
  2. Go to System Settings → Payment Gateways.
  3. Activate DompetX.
  4. Enter your DompetX API key and API base URL.

Laravel

composer require dompetx/laravel-sdk
php artisan vendor:publish --tag=dompetx-config
Environment:
DOMPETX_API_KEY=your_api_key
DOMPETX_BASE_URL=https://api.dompetx.com/v1
DOMPETX_TIMEOUT=30
Usage:
use DompetX\Client;

Route::post('/checkout', function (Client $dompetx) {
    return $dompetx->createCheckout([
        'amount' => 50000,
        'currency' => 'IDR',
        'reference' => 'ORDER-' . now()->timestamp,
    ]);
});

Node.js

The Node.js SDK is available on npm: @dompetx/sdk.
npm install @dompetx/sdk
const { DompetxClient } = require('@dompetx/sdk');

const dompetx = new DompetxClient({
  apiKey: process.env.DOMPETX_API_KEY,
});

const checkout = await dompetx.createCheckout({
  amount: 50000,
  currency: 'IDR',
  reference: `ORDER-${Date.now()}`,
});

PHP

composer require dompetx/php-sdk
use DompetX\Client;

$dompetx = new Client(apiKey: getenv('DOMPETX_API_KEY'));

$channels = $dompetx->channels();

Versioning Recommendation

  • Publish SDKs through package managers.
  • Keep plugin ZIP filenames stable for latest downloads.
  • Keep release notes in the integration repository changelog.
  • Test plugin ZIPs against staging before replacing public downloads.