kbtonmoy/fraud-checker-for-bagisto

Order fraud checker for Bagisto — screens customer phone numbers against BD Courier delivery history and flags risky cash-on-delivery orders in the admin panel.

Maintainers

Package info

github.com/kbtonmoy/fraud-checker-for-bagisto

pkg:composer/kbtonmoy/fraud-checker-for-bagisto

Transparency log

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.2 2026-07-04 21:22 UTC

This package is auto-updated.

Last update: 2026-07-04 21:24:39 UTC


README

Order fraud screening for Bagisto 2.4.x. Checks a customer's phone number against BD Courier delivery history and surfaces a success/return ratio in the admin order view — useful for vetting risky cash-on-delivery orders.

Requirements

  • Bagisto ^2.4
  • PHP ^8.3
  • A BD Courier API key

Installation

1. Require the package

From Packagist (public):

composer require kbtonmoy/fraud-checker-for-bagisto

From the Git repo (reuse across your own projects): add the repository to your project's root composer.json, then require it:

"repositories": [
    { "type": "vcs", "url": "https://github.com/kbtonmoy/fraud-checker-for-bagisto.git" }
]
composer require kbtonmoy/fraud-checker-for-bagisto:^1.0

From a local path (monorepo / same machine): with Bagisto's default packages/*/* path repository in place, drop the folder into packages/Webkul/FraudChecker/ and run:

composer require kbtonmoy/fraud-checker-for-bagisto:@dev

The main service provider is auto-discovered — no need to edit bootstrap/providers.php.

2. Register the Concord module

Concord model registration is not auto-discovered. Add this one line to the modules array in your project's config/concord.php:

'modules' => [
    // ...
    Webkul\FraudChecker\Providers\ModuleServiceProvider::class,
],

3. Migrate and clear caches

php artisan migrate            # creates the fraud_checks table
php artisan optimize:clear

The fraud check runs on a queued job (CheckOrderFraud), so make sure a queue worker is running (php artisan queue:work) if you use a non-sync queue driver.

Configuration

In the admin panel go to Configure → Sales → Fraud Checker and set:

Setting Config key Notes
Enabled sales.fraud_checker.settings.enabled Master on/off switch
API Key sales.fraud_checker.settings.api_key Your BD Courier API key
Base URL sales.fraud_checker.settings.base_url Defaults to https://api.bdcourier.com
Auto check sales.fraud_checker.settings.auto_check Automatically screen new orders

Usage

With Auto check on, each new order is screened automatically and the result appears in a panel on the admin order view. You can also trigger a re-check manually from that panel.

License

MIT © Khabirul Basar