Download the PHP package mustafataj/tabby-laravel without Composer
On this page you can find all versions of the php package mustafataj/tabby-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package tabby-laravel
Tabby Laravel
Laravel package for Tabby Buy Now Pay Later: checkout sessions, payment capture/refund, and webhooks. Supports sandbox and production, plus regional APIs for UAE/Kuwait (api.tabby.ai) and KSA (api.tabby.sa).
Requirements
- PHP 8.2+
- Laravel 10, 11, 12, or 13
Installation
Publish the config:
Configuration
Add credentials to .env:
| Variable | Description |
|---|---|
TABBY_ENV |
sandbox or production — selects which key pair is used |
TABBY_REGION |
ai (UAE/KW) or sa (KSA) |
TABBY_CAPTURE_ON_AUTHORIZE |
Auto-capture after verify/webhook when payment is AUTHORIZED with no prior captures |
TABBY_WEBHOOK_ENABLED |
Register the incoming webhook route (default true) |
TABBY_WEBHOOK_PATH |
Incoming webhook path (default tabby/webhook) |
TABBY_WEBHOOK_URL |
Absolute URL registered with Tabby (optional) |
TABBY_WEBHOOK_AUTH_HEADER |
Shared secret Tabby sends on webhook POSTs (required when REQUIRE_AUTH=true) |
TABBY_WEBHOOK_AUTH_HEADER_NAME |
Header name registered with Tabby (default X-Tabby-Webhook-Token) |
TABBY_WEBHOOK_REQUIRE_AUTH |
Reject unauthenticated webhooks (default true) |
TABBY_WEBHOOK_ENFORCE_IP |
Restrict webhooks to Tabby IP allowlist |
TABBY_WEBHOOK_THROTTLE |
Laravel throttle string, e.g. 60,1 (set empty to disable) |
Environment is determined by the API keys you send (sk_test_… vs sk_…). Base URLs do not change between sandbox and production.
Usage
Eligibility check
Create session and redirect
Verify and capture (return URL)
Never trust the redirect alone — always verify server-side:
Refund
Promo snippet
Ensure your layout yields @stack('scripts').
Official payment method name: Pay later with Tabby / ادفع لاحقًا مع تابي.
Webhooks
Incoming route: POST /tabby/webhook (no web middleware / CSRF; protected by tabby.webhook auth + optional IP allowlist + throttle).
Auth is required by default. Set TABBY_WEBHOOK_AUTH_HEADER, then register so Tabby sends that header:
Registration includes header.title / header.value from your config so Tabby signs each POST.
Listen for events in your app:
Event behaviour:
PaymentAuthorized— first authorize notification (no captures yet). WithTABBY_CAPTURE_ON_AUTHORIZE=true, the package also POSTs a capture (idempotentreference_id). Fulfill on this event or onPaymentClosed.- Capture notifications (
authorized+captures[]) are ignored for re-dispatch / re-capture. PaymentClosed— Tabby close webhook after capture settles.PaymentRefunded— payload includes a non-emptyrefundsarray.- Processing failures return HTTP 500 so Tabby retries.
Make fulfillment handlers idempotent — Tabby may deliver duplicates.
Going live
- Complete Tabby’s testing checklist
- Set
TABBY_ENV=productionand live keys - For KSA merchants set
TABBY_REGION=sa - Re-register webhooks with the production secret key
Docs
License
MIT
All versions of tabby-laravel with dependencies
illuminate/console Version ^10.0|^11.0|^12.0|^13.0
illuminate/contracts Version ^10.0|^11.0|^12.0|^13.0
illuminate/events Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
illuminate/routing Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/view Version ^10.0|^11.0|^12.0|^13.0