negusnati / chapa-laravel-11x
A Laravel Package to Accept Payment through Chapa
Requires
- php: ^7.2|^8.0|^8.1
- guzzlehttp/guzzle: ~6|~7|~8|~9
- illuminate/support: ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-10-04 20:45:59 UTC
README
Official Laravel package for Chapa's API (Support for Laravel ^11)
If your are doing a Laravel project and want to integrate Chapa's payment solution, this package would help big time.
Go to Chapa to signup and get your secret key
Composer install
'composer require negusnati/chapa-laravel-11x'
Documentation
Please visit Chapa for full documentation.
Guide
Please visit Developers Guide for full guide and examples.
Usage
You can check this sample Laravel code as a reference.
Configuration
Open your .env file and add your public key, secret keys, and other environment variables like this:
CHAPA_SECRET_KEY=CHAPA-SECK-xxxxxxxxxxxxxxxxxxxxx-X
Features
The current features have been implemented
- Initiate Payment
- Payment verification
API Reference
Collecting Customer Information
POST https://api.chapa.co/v1/transaction/initialize
Verify Payments
GET https://api.chapa.dev/v1/transaction/verify/{tx-ref}
Changelog
Please see CHANGELOG for more information what has changed recently.
Security
If you discover any security related issues, please email kidusy@chapa.co instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.