This repository contains a fully functional integration of the Konnect payment gateway with Laravel. It includes a streamlined setup for initiating payments, handling success and failure callbacks, and managing payment interactions through the Konnect API.
- Easy integration with Konnect's API.
- Secure and reliable payment flow.
- Dynamic configuration for production and sandbox environments.
- Pre-built success and failure callback handling.
- Modular and extensible structure for Laravel applications.
- Laravel 8.x or higher.
- PHP 7.4 or higher.
- Composer.
-
Clone the repository:
git clone https://github.com/yourusername/laravel-konnect-payment.git cd laravel-konnect-payment
-
Install dependencies:
composer install
-
Configure environment:
KONNECT_API_KEY=your_actual_api_key KONNECT_WALLET_ID=your_actual_wallet_id KONNECT_PRODUCTION=false
-
Cache configuration:
php artisan config:cache
-
Run the application:
php artisan serve http://localhost:8000/payment