PHPackages                             aliff/chip-in - 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. aliff/chip-in

ActiveLibrary[Payment Processing](/categories/payments)

aliff/chip-in
=============

Laravel package for CHIP Collect payment gateway integration.

v1.0.4(6mo ago)013MITPHPPHP ^8.1

Since Nov 10Pushed 6mo agoCompare

[ Source](https://github.com/Moon1100/chip-in-laravel)[ Packagist](https://packagist.org/packages/aliff/chip-in)[ RSS](/packages/aliff-chip-in/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

Chip-In Laravel
===============

[](#chip-in-laravel)

[![Latest Version](https://camo.githubusercontent.com/ca1eedb56bb24b5c96c8e61482cff6186cc871843ce645a1c2f2c8431b7582ff/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f4d6f6f6e313130302f636869702d696e2d6c61726176656c)](https://github.com/Moon1100/chip-in-laravel/releases)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![Laravel](https://camo.githubusercontent.com/b72e0aa3b09f6ee9f1cd47f19792a8204408312803c6b277768a5d2c99ffd60c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d31322e782d7265642e737667)](https://laravel.com)

A simple Laravel 12 package to integrate the [CHIP Collect API](https://docs.chip-in.asia/chip-collect/overview/introduction) for seamless payment creation, status checking, and webhook handling.

---

🚀 Features
----------

[](#-features)

- 🔧 Easy integration with CHIP Collect API
- 💳 Create new payment sessions
- 📦 Verify and query payment status
- 🌐 Webhook-ready for payment notifications
- ⚙️ Simple `.env` configuration
- 🧩 Clean and extensible API client

---

📦 Installation
--------------

[](#-installation)

Install via Composer:

```
composer require aliff/chip-in
```

---

⚙️ Configuration
----------------

[](#️-configuration)

### Step 1: Publish Configuration Files

[](#step-1-publish-configuration-files)

```
php artisan vendor:publish --tag=chipin-config
```

This creates `config/chipin.php` in your application.

### Step 2: Set Environment Variables

[](#step-2-set-environment-variables)

Add the following to your `.env` file:

```
CHIPIN_API_KEY=your_api_key_here
CHIPIN_BRAND_ID=your_brand_id_here
CHIPIN_MODE=sandbox
CHIPIN_BASE_URL=https://gate.chip-in.asia/api/v1/
CHIP_IN_CALLBACKHANDLER=App\Http\Controllers\PaymentController
```

### Step 3: Create a Payment Handler Controller

[](#step-3-create-a-payment-handler-controller)

Create a controller to handle payment callbacks at `app/Http/Controllers/PaymentController.php`:

```
