Download the PHP package blinkpay/laravel without Composer
On this page you can find all versions of the php package blinkpay/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download blinkpay/laravel
More information about blinkpay/laravel
Files in blinkpay/laravel
Package laravel
Short Description BlinkPay payment gateway integration for Laravel
License MIT
Informations about the package laravel
BlinkPay Laravel
A Laravel package for integrating BlinkPay payment gateway into your Laravel applications.
Installation
You can install the package via composer:
Configuration
Publish the configuration file:
Add the following to your .env
file:
Usage
Mobile Money Payments
Credit Card Payments
Features
Mobile Money
- Supports various mobile money providers
- Automatic phone number validation and formatting
- Currency conversion to UGX (configurable)
- Minimum amount validation (500 UGX)
- Transaction status checking
Credit Cards
- Supports major card types (Visa, Mastercard, Amex, Discover)
- Card number validation using Luhn algorithm
- Automatic card type detection
- Billing address support
- Currency conversion to UGX (configurable)
Currency Conversion
The package supports automatic currency conversion to UGX. This can be enabled by setting BLINK_PAYMENTS_CONVERT_TO_UGX=true
in your .env
file.
When enabled:
- All amounts will be converted to UGX using the configured exchange rate
- Minimum amount validation (500 UGX) is automatically applied
- The exchange rate can be configured using
BLINK_PAYMENTS_DEFAULT_EXCHANGE_RATE
- Custom exchange rates can be implemented using
BLINK_PAYMENTS_EXCHANGE_RATE_KEY
Response Format
All payment methods return a response in the following format:
Error Handling
The package throws exceptions for various error conditions:
- Invalid phone number format
- Invalid credit card number
- Minimum amount requirement not met (500 UGX)
- Currency conversion errors
- API communication errors
- Invalid or missing configuration
All exceptions include detailed error messages to help identify the issue.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.