Download the PHP package asciisd/kashier without Composer
On this page you can find all versions of the php package asciisd/kashier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download asciisd/kashier
More information about asciisd/kashier
Files in asciisd/kashier
Package kashier
Short Description A Laravel package for Kashier payment gateway integration
License MIT
Informations about the package kashier
Kashier Payment Gateway for Laravel
A Laravel package for integrating with the Kashier payment gateway in your Laravel applications.
Overview
This package provides a simple and elegant way to integrate Kashier payment processing into your Laravel applications. It handles payment requests, callbacks, and webhooks with minimal configuration.
Features
- Easy integration with Kashier payment gateway
- Support for multiple payment methods (cards, wallets, bank installments)
- Secure payment processing with hash verification
- Webhook handling for payment notifications
- Response handling for payment callbacks
- Event-driven architecture for custom payment processing logic
Installation
You can install the package via composer:
Configuration
Publish the configuration file:
Then, set your Kashier credentials in your .env file:
Usage
Basic Payment Processing
Customizing Payment Methods
Handling Payment Responses
The package automatically handles payment responses at the /kashier/response endpoint. You can listen for the KashierResponseHandled event to process successful payments:
Custom Redirect After Payment
By default, users are shown a receipt page after completing payment. If you prefer to redirect users to your own custom page, you can set the KASHIER_CALLBACK_URL in your .env file:
When this is configured, users will be redirected to your custom URL after payment processing, with all payment data included as query parameters. This allows you to create a completely custom post-payment experience.
Handling Webhooks
Kashier will send webhook notifications to the /kashier/webhook endpoint. You can listen for the KashierWebhookHandled event to process these notifications:
Retrieving Transaction Details
Security
The package automatically verifies the signature of incoming webhook and response requests to ensure they are legitimate and have not been tampered with.
Events
KashierResponseHandled: Dispatched when a payment response is receivedKashierWebhookHandled: Dispatched when a webhook notification is received
License
The MIT License (MIT). Please see License File for more information.