Download the PHP package aliff/chip-in without Composer

On this page you can find all versions of the php package aliff/chip-in. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package chip-in

Chip-In Laravel

Latest Version Laravel

A simple Laravel 12 package to integrate the CHIP Collect API for seamless payment creation, status checking, and webhook handling.


🚀 Features


📦 Installation

Install via Composer:


⚙️ Configuration

Step 1: Publish Configuration Files

This creates config/chipin.php in your application.

Step 2: Set Environment Variables

Add the following to your .env file:

Step 3: Create a Payment Handler Controller

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


📖 Usage Guide

Step 1: Create a Payment Session

In your controller or service, inject the Purchase endpoint class:

Step 2: User Completes Payment

Step 3: Handle Payment Callback

When payment is completed:

  1. ✅ CHIP sends a webhook callback to /chipin/callback
  2. ✅ The ChipInController receives and verifies the request
  3. ✅ Your PaymentController::handleChipInCallback() is automatically called
  4. ✅ Payment record is created/updated in your database
  5. ✅ Your entity (Order, Subscription, etc.) status is updated

Step 4: Display Success/Failed Pages

The package includes default views at:

You can override these by publishing the views:


🔒 Security

Webhook Verification

To verify webhook authenticity, ensure your webhook secret is configured in the CHIP dashboard and stored securely. The ChipInController will validate the X-CHIP-Signature header automatically.


📚 API Reference

Purchase Class

create(array $payload): array

Create a payment without redirecting.

createAndRedirect(array $payload): RedirectResponse

Create a payment and immediately redirect to CHIP checkout.

handleCallback(array $data): array

Normalize callback data from CHIP webhook.

Client Class

post(string $endpoint, array $data): array

Send POST request to CHIP API.

get(string $endpoint): array

Send GET request to CHIP API.


📋 Callback Data Structure

When CHIP sends a webhook callback, the PaymentController::handleChipInCallback() receives data in the following format:


💾 Payment Database Table

Recommended schema for your payments table:


🛠️ Troubleshooting

Issue Solution
CHIP API Error (401) Verify CHIPIN_API_KEY and CHIPIN_BRAND_ID in .env
Callback not received Ensure your webhook URL is registered in CHIP dashboard
No checkout_url returned Check API response payload and CHIP API status
Payment reference not found Ensure reference field matches your entity ID
Callback verification failed Verify webhook secret configuration

📄 License

This package is open-sourced software licensed under the MIT license.


All versions of chip-in with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aliff/chip-in contains the following files

Loading the files please wait ...