PHPackages                             fathallah/paymob-bagisto-package - 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. fathallah/paymob-bagisto-package

ActiveLibrary

fathallah/paymob-bagisto-package
================================

Paymob Payment Method for Bagisto 2.x - Extended with Automated Refund Support

1.0.0(today)01↑2900%MITPHP

Since Jul 31Pushed todayCompare

[ Source](https://github.com/fathallah7/paymob-bagisto-package)[ Packagist](https://packagist.org/packages/fathallah/paymob-bagisto-package)[ Docs](https://github.com/fathallah7/paymob-bagisto-package)[ RSS](/packages/fathallah-paymob-bagisto-package/feed)WikiDiscussions main Synced today

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

Paymob Payment Gateway for Bagisto 2.x (Extended with Refund Support)
=====================================================================

[](#paymob-payment-gateway-for-bagisto-2x-extended-with-refund-support)

An extended and improved version of the official **Paymob Payment** module for **Bagisto 2.x**.

In addition to the standard checkout functionality, this package introduces **automatic refund synchronization** with Paymob.

---

Features
========

[](#features)

- Paymob payment gateway integration for Bagisto 2.x
- Secure checkout using Paymob Checkout
- **Automatic Refund synchronization with Paymob**
- Queue-based refund processing for better performance

---

Installation
============

[](#installation)

Install the package via Composer:

```
composer require fathallah/paymob-bagisto-package
```

Publish the package assets and run the migrations:

```
php artisan vendor:publish --force --tag=paymob
php artisan migrate
php artisan optimize
```

---

CSRF Configuration
==================

[](#csrf-configuration)

Open:

```
app/Http/Middleware/VerifyCsrfToken.php

```

Add the Paymob callback endpoint to the `$except` array:

```
protected $except = [
    'paymob/callback',
];
```

This allows Paymob to send secure callback requests without CSRF verification.

---

Cache Configuration
===================

[](#cache-configuration)

Run:

```
php artisan config:cache
```

---

Step 1 — Obtain Your Paymob Credentials
---------------------------------------

[](#step-1--obtain-your-paymob-credentials)

Login to your Paymob Dashboard.

Navigate to:

```
Settings

```

Collect the following values:

- Secret Key
- Public Key
- HMAC
- Integration IDs (Payment Method IDs)

---

Step 2 — Configure Bagisto
--------------------------

[](#step-2--configure-bagisto)

Open the Bagisto Admin Panel.

Navigate to:

```
Configure
    → Sales
        → Payment Methods
            → Paymob

```

Fill in:

- Secret Key
- Public Key
- HMAC
- Integration IDs

If you have multiple payment methods, separate the Integration IDs using commas.

Example:

```
123456,789654,456123

```

These Integration IDs determine which payment methods appear during checkout.

---

Step 3 — Queue
--------------

[](#step-3--queue)

Start a queue worker:

```
php artisan queue:work
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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

0d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/333d088466123310703c21f003f637dcfc0eeeb6cc93df4c4a24f43b1595976e?d=identicon)[fathallah](/maintainers/fathallah)

---

Top Contributors

[![fathallah7](https://avatars.githubusercontent.com/u/114351000?v=4)](https://github.com/fathallah7 "fathallah7 (1 commits)")

---

Tags

laravelpayment-methodsbagistopaymobbagisto-payment-methods

### Embed Badge

![Health badge](/badges/fathallah-paymob-bagisto-package/health.svg)

```
[![Health](https://phpackages.com/badges/fathallah-paymob-bagisto-package/health.svg)](https://phpackages.com/packages/fathallah-paymob-bagisto-package)
```

###  Alternatives

[bagistoplus/visual

Bagisto theme framework and visual theme editor

749.9k5](/packages/bagistoplus-visual)[bagisto/b2b-suite

A comprehensive B2B Suite extension for Bagisto, providing company management, customer-company associations, and role-based permissions.

181.5k](/packages/bagisto-b2b-suite)

PHPackages © 2026

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