Laravel package
Laravel integration built on the PHP client: configuration from your environment, container bindings you can replace, an opt-in webhook route, artisan commands, logging and testing helpers. Laravel 12 or 13.
Repository: selcom-developers/laravel-selcom
Install
composer require selcom-developers/laravel-selcomThe service provider and the Selcom facade register themselves. Publish the config:
php artisan vendor:publish --tag=selcom-configConfigure
Everything comes from the environment, through config/selcom.php. There is no default environment:
SELCOM_ENVIRONMENT=sandbox # "sandbox" or "production". REQUIRED, no default
SELCOM_API_KEY=...
SELCOM_API_SECRET=...
SELCOM_VENDOR=... # the vendor (till) ID
SELCOM_PIN=... # float PIN: payout operations onlyQuickstart
The Selcom facade proxies the PHP client, so every operation of the PHP client is available.
<?php
use SelcomDevelopers\LaravelSelcom\Facades\Selcom;
use SelcomDevelopers\Selcom\Request\OrderStatusRequest;
use SelcomDevelopers\Selcom\Request\UtilityPaymentRequest;
use SelcomDevelopers\Selcom\Status;
// Persist the transid BEFORE you call (see "Idempotency and retries"), then:
$result = Selcom::utilityPayment(new UtilityPaymentRequest(
transid: 'TXN-UTL-0001', utilityCode: 'LUKU', utilityRef: '01234567891', amount: 8000,
));
match ($result->status) {
Status::Success => /* paid */ null,
Status::Failed => /* it did not happen */ null,
Status::Pending, Status::Ambiguous => /* unknown: query later, never resubmit */ null,
Status::NotFound => /* only on queries */ null,
};
$status = Selcom::orderStatus(new OrderStatusRequest('ORD-1001'));You can also type-hint SelcomDevelopers\Selcom\Client and let the container inject it.
The README covers the container bindings, the webhook route, events, models, artisan commands and testing.
How it behaves
The client follows the shared spec. These pages explain what it does:
Help and issues
Found a problem, or want to help? Open an issue in the repository , or read Contributing. For security problems, see Security reporting.