Chargebacks911 PHP SDK: Manage Chargebacks with a Clean, Fluent API

Chargebacks cost merchants billions every year. Monitoring and disputing them manually is slow, error-prone, and expensive. Chargebacks911 PHP SDK gives you a clean, fluent API to manage the entire chargeback lifecycle programmatically.

The Cost of Chargebacks

A single chargeback doesn't just mean a lost sale. There's the chargeback fee ($20–$100), the lost product, the time spent gathering evidence for disputes, and the hit to your merchant account's health. At scale, chargebacks can threaten your ability to process payments entirely.

Chargebacks911 is a leading chargeback management platform. Our SDK makes it easy to integrate their service into your PHP and Laravel applications.

Clean, Fluent API

Every interaction follows a consistent, readable pattern:

use Laratusk\Chargebacks911\Facades\ChargeBack;

// List orders in a date range
$orders = ChargeBack::orders()
    ->from('2024-01-01')
    ->to('2024-12-31')
    ->list();

// Get chargeback details
$chargeback = ChargeBack::chargebacks()
    ->find('chb_abc123');

// Submit evidence for a dispute
ChargeBack::disputes()
    ->submit('chb_abc123', [
        'evidence_type' => 'delivery_confirmation',
        'tracking_number' => '1Z999AA10123456784',
    ]);

Real-Time Alert Handling

Get notified the moment a chargeback is filed:

// In your webhook controller
ChargeBack::webhooks()->handle($request, [
    'chargeback.created' => function ($event) {
        // Notify your team
        // Auto-gather evidence
        // Update order status
    },
    'alert.triggered' => function ($event) {
        // Proactive refund before chargeback
    },
]);

Type-Safe Interfaces

Every response is a typed object, not a raw array. Your IDE provides full autocompletion, and your static analysis tools can catch errors before they reach production:

$order = ChargeBack::orders()->find('ord_123');

$order->id;          // string
$order->amount;      // float
$order->currency;    // string
$order->status;      // OrderStatus enum
$order->createdAt;   // Carbon instance

Laravel Integration

  • Auto-discovered service provider
  • Facade for expressive code
  • Config publishing for credentials
  • Webhook route registration helpers
  • Queue-friendly event dispatching
composer require laratusk/chargebacks911
php artisan vendor:publish --tag=chargebacks911-config

Protect Your Revenue

Don't let chargebacks eat into your margins. Check out the Chargebacks911 PHP SDK on GitHub and start automating your chargeback management today.

View on GitHubStar the repo, explore the source code, and get started.
Go to Repository
Share this post
Back to Blog