Looking to hire Laravel developers? Try LaraJobs

jomabee-laravel maintained by kodbee

Description
Laravel integration for the Jomabee payment API by Kodbee — facade, config, and webhook verification.
Author
Last update
2026/06/19 21:17 (dev-main)
License
Downloads
0

Comments
comments powered by Disqus

Jomabee for Laravel

Laravel integration for the Jomabee payment API by Kodbee. Wraps kodbee/jomabee-php with a config file, a Jomabee facade, and webhook signature middleware.

Install

composer require kodbee/jomabee-laravel
php artisan vendor:publish --tag=jomabee-config

Add to .env:

JOMABEE_BASE_URL=https://pay.kodbee.com
JOMABEE_API_KEY=your_api_key
JOMABEE_SECRET_KEY=your_secret_key
JOMABEE_WEBHOOK_SECRET=your_webhook_secret

The service provider and Jomabee facade are auto-discovered.

Usage

use Kodbee\JomabeeLaravel\Facades\Jomabee;

$payment = Jomabee::createPayment([
    'amount' => 500,
    'product_name' => 'Premium Plan',
    'customer_email' => 'karim@example.com',
    'redirect_url' => route('checkout.thanks'),
    'callback_url' => route('webhooks.jomabee'),
]);

return redirect($payment['payment_url']);
Jomabee::paymentStatus('JOMB-XXXXXX');
Jomabee::verifyPayment('JOMB-XXXXXX', 'TRXID123', 'bkash');
Jomabee::transactions(['status' => 'verified']);
Jomabee::balance();

Webhooks

Protect your webhook route with the jomabee.webhook middleware — it rejects requests with a missing or invalid X-Jomabee-Signature.

use Illuminate\Support\Facades\Route;

Route::post('/webhooks/jomabee', function (\Illuminate\Http\Request $request) {
    $event = $request->json()->all(); // signature already verified
    // handle $event['event'] === 'payment.verified'
    return response()->noContent();
})->middleware('jomabee.webhook')->name('webhooks.jomabee');

Exclude the webhook route from CSRF protection (VerifyCsrfToken::$except).

License

MIT © Kodbee