PHPackages                             semernur/chapa - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. semernur/chapa

ActiveLibrary[Payment Processing](/categories/payments)

semernur/chapa
==============

Laravel Package for Chapa payment gate way

1.1(3y ago)042MITPHPPHP ^7.4|^8.0

Since Mar 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/semer-11/Chapa)[ Packagist](https://packagist.org/packages/semernur/chapa)[ Docs](https://github.com/semer-11/chapa)[ RSS](/packages/semernur-chapa/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

 [![](https://camo.githubusercontent.com/58bde0ece2576e5795e9af942d723a9a7fa5177e22c4561681dcd6c8e7c0c674/68747470733a2f2f657468696f7069616e6c6f676f732e636f6d2f6c6f676f732f63686170612f63686170612e737667)](https://camo.githubusercontent.com/58bde0ece2576e5795e9af942d723a9a7fa5177e22c4561681dcd6c8e7c0c674/68747470733a2f2f657468696f7069616e6c6f676f732e636f6d2f6c6f676f732f63686170612f63686170612e737667) [![](https://camo.githubusercontent.com/954ad07bace8636f45f111ae2c6305a977a539567e813fad608e66c03e59878c/68747470733a2f2f7777772e7376677265706f2e636f6d2f73686f772f3335333938352f6c61726176656c2e737667)](https://camo.githubusercontent.com/954ad07bace8636f45f111ae2c6305a977a539567e813fad608e66c03e59878c/68747470733a2f2f7777772e7376677265706f2e636f6d2f73686f772f3335333938352f6c61726176656c2e737667)

Chapa Package for Laravel
==========================

[](#chapa-package-for-laravel)

 Chapa is one of the payment gateways in Ethiopia. This laravel package will help you integrate chapa with your next/existing laravel project.Install via > composer require semernur/chapa

This package has functionalities that will help you to easily initialize payment,verify payment at the moment and other functionalities will be added very soon .

Docs
=====

[](#docs)

First thing is first before you start using this package you need to have Chapa API key which you can get one from [Chapa](https://dashboard.chapa.co/)

Once you get your API key add your secret key inside .env file or You can pass it directly to the constructor.if you are using the former method which is accessing via .env file the variable should have name `CHAPA_SECRET_KEY` . After successful installation you need to run `php artisan migrate` in order to setup database table for the package.

Available Methods
==================

[](#available-methods)

`initializePayment(array $details, bool $will_redirect = FALSE, string $custom_ref = NULL)`

$details, details you need to initialize in chapa's API. **You don't need to pass authorization tokens!**$will\_redirect, if set to true it will redirect customer to the checkout\_url automatically if the payment initialization was successful.

$custom\_ref if not NULL `initializePayment` will use $custom\_ref for chapa`s `tx_ref` field.

if $custom\_ref is not defined and $ref\_prefix is defined `initializePayment` will generate unique tx\_ref with prefix `$ref_prefix`. **Note:-** `initializePayment` will return Chapa`s response/object whether you set `$will_redirect` to TRUE or FALSE.

`verifyPayment(string $tx_ref, bool $only_status = FALSE)`

This method will verify payment require `$tx_ref` transaction reference to the transaction need to be verified.If `$only_status` set to true it only return the status of the transaction **TRUE** if the transaction status is **success** false otherwise.

Enjoy!
======

[](#enjoy)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1151d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3a1c1349758a2d8c0c314257dc1ec56f20bfad2f0832260f21d00809249bfd14?d=identicon)[semer-11](/maintainers/semer-11)

---

Top Contributors

[![semernur](https://avatars.githubusercontent.com/u/85545098?v=4)](https://github.com/semernur "semernur (5 commits)")

---

Tags

laravelpackagepaymentgatewaychapasemernur

### Embed Badge

![Health badge](/badges/semernur-chapa/health.svg)

```
[![Health](https://phpackages.com/badges/semernur-chapa/health.svg)](https://phpackages.com/packages/semernur-chapa)
```

###  Alternatives

[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[omalizadeh/laravel-multi-payment

A driver-based laravel package for online payments via multiple gateways

491.1k](/packages/omalizadeh-laravel-multi-payment)[henryejemuta/laravel-monnify

A laravel package to seamlessly integrate monnify api within your laravel application

132.1k](/packages/henryejemuta-laravel-monnify)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
