PHPackages                             aiarmada/chip - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. aiarmada/chip

ActiveLibrary[Payment Processing](/categories/payments)

aiarmada/chip
=============

Modern Laravel integration for CHIP payment gateway - Collect &amp; Send APIs

v1.4.7(6mo ago)01113MITPHPPHP ^8.4

Since Nov 6Pushed 1mo agoCompare

[ Source](https://github.com/AIArmada/chip)[ Packagist](https://packagist.org/packages/aiarmada/chip)[ Docs](https://github.com/aiarmada/commerce)[ RSS](/packages/aiarmada-chip/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (34)Used By (3)

CHIP for Laravel
================

[](#chip-for-laravel)

Laravel 12 integration for [CHIP](https://docs.chip-in.asia/) payment platform – **CHIP Collect** (payments) and **CHIP Send** (disbursements).

Features
--------

[](#features)

- **Fully independent** – works standalone without requiring other commerce packages
- **Seamless integration** – auto-integrates with Cart when installed together
- **Universal Gateway** – implements `PaymentGatewayInterface` for provider switching
- **Complete API coverage** – purchases, refunds, subscriptions, payouts, webhooks
- **Laravel DX** – facades, fluent builders, typed data objects, events
- **Production ready** – PHP 8.4, PHPStan level 6, Pest test suite
- **Secure** – webhook signature verification, sensitive data masking

Installation
------------

[](#installation)

```
composer require aiarmada/chip
```

Publish config and migrations:

```
php artisan vendor:publish --tag="chip-config"
php artisan vendor:publish --tag="chip-migrations"
php artisan migrate
```

Configuration
-------------

[](#configuration)

```
# CHIP Collect
CHIP_COLLECT_API_KEY=your-api-key
CHIP_COLLECT_BRAND_ID=your-brand-id

# CHIP Send
CHIP_SEND_API_KEY=your-send-api-key
CHIP_SEND_API_SECRET=your-send-api-secret

# Environment
CHIP_ENVIRONMENT=sandbox

# Webhooks
CHIP_COMPANY_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----..."
CHIP_WEBHOOK_VERIFY_SIGNATURE=true
```

Quick Start
-----------

[](#quick-start)

### Payment Gateway (Recommended)

[](#payment-gateway-recommended)

Works with any `CheckoutableInterface` – Cart, Order, or custom implementations:

```
use AIArmada\Chip\Gateways\ChipGateway;

$gateway = app(ChipGateway::class);
$payment = $gateway->createPayment($checkoutable, $customer, [
    'success_url' => route('checkout.success'),
    'failure_url' => route('checkout.failed'),
]);

return redirect($payment->getCheckoutUrl());
```

When `aiarmada/cart` is installed, Cart automatically implements `CheckoutableInterface`:

```
$cart = app(\AIArmada\Cart\Cart::class);
$payment = $gateway->createPayment($cart, $customer, $options);
```

### CHIP Collect

[](#chip-collect)

```
use AIArmada\Chip\Facades\Chip;

// Create purchase
$purchase = Chip::createPurchase([
    'client' => ['email' => 'customer@example.com'],
    'purchase' => [
        'currency' => 'MYR',
        'products' => [['name' => 'Product', 'price' => 9900]],
    ],
]);

// Fluent builder
$purchase = Chip::purchase()
    ->customer('customer@example.com', 'John Doe')
    ->addProductCents('Product', 9900)
    ->successUrl(route('success'))
    ->create();
```

### CHIP Send

[](#chip-send)

```
use AIArmada\Chip\Facades\ChipSend;

$instruction = ChipSend::createSendInstruction(
    amountInCents: 10000,
    currency: 'MYR',
    recipientBankAccountId: 'bank_123',
    description: 'Payout',
    reference: 'PAY-001',
    email: 'recipient@example.com',
);
```

### Webhooks

[](#webhooks)

```
Route::post('/chip/webhook', function (Request $request) {
    $handler = app(ChipGateway::class)->getWebhookHandler();
    $payload = $handler->verify($request);

    if ($payload->event === 'purchase.paid') {
        // Handle payment
    }

    return response('OK');
});
```

Health Check
------------

[](#health-check)

```
php artisan chip:health
```

Documentation
-------------

[](#documentation)

- [Payment Gateway](docs/payment-gateway.md) – Universal gateway interface
- [CHIP Collect](docs/chip-collect.md) – Payments and purchases
- [CHIP Send](docs/chip-send.md) – Disbursements and payouts
- [Webhooks](docs/webhooks.md) – Event handling
- [API Reference](docs/api-reference.md) – Complete method reference

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) for details.

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance80

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Recently: every ~32 days

Total

33

Last Release

59d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/726da4efcb731bc0ebcdd0b7ce64759e1f8dd63f6f771eab335458f6a2f2d3af?d=identicon)[sairiz](/maintainers/sairiz)

### Embed Badge

![Health badge](/badges/aiarmada-chip/health.svg)

```
[![Health](https://phpackages.com/badges/aiarmada-chip/health.svg)](https://phpackages.com/packages/aiarmada-chip)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laraveldaily/laravel-invoices

Missing invoices for Laravel

1.5k1.3M4](/packages/laraveldaily-laravel-invoices)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[cloudcreativity/laravel-stripe

Laravel integration for Stripe, including Stripe Connect.

4112.4k](/packages/cloudcreativity-laravel-stripe)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
