PHPackages                             sina42048/lara-pay - 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. sina42048/lara-pay

ActiveLibrary

sina42048/lara-pay
==================

Iranian Payment Gateways , All in one !

41PHP

Since Nov 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/sina42048/LaraPay)[ Packagist](https://packagist.org/packages/sina42048/lara-pay)[ RSS](/packages/sina42048-lara-pay/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

LaraPay
=======

[](#larapay)

Iranian payment gateways for laravel , all in one !

Install
=======

[](#install)

```
Step 1 :
composer require sina42048/lara-pay
Step 2 :
php artisan vendor:publish
Step 3 :
configure your api key in the config/larapay.php

```

---

for laravel version 5.5 and below following step is required

```
In your config/app.php file add these two lines

```

```
// In your providers array.
'providers' => [
    ...
    Sina42048\LaraPay\Provider\LaraPayServiceProvider::class,
],

// In your aliases array.
'aliases' => [
    ...
    'LaraPay' => Sina42048\LaraPay\Facade\Lapay::class,
],
```

Supported Drivers
=================

[](#supported-drivers)

Driverstabilitysandbox\_stabilitydescriptionidpay✅✅-parspal✅❌this web service sand box has issue and doesnt work , however the sandbox functions is implemented, maybe in the future parspal fix this issue !zarinpal✅✅this driver sandbox doesnt work properly but we can simulate this with the help of api key in the parspal documentationzibal✅✅-nextpay✅❌this web service doesnt support sandbox featureExample Usage For Payment Process
=================================

[](#example-usage-for-payment-process)

### For more information about required field for every driver please refer to that driver documentation page

[](#for-more-information-about-required-field-for-every-driver-please-refer-to-that-driver-documentation-page)

```
use Sina42048\LaraPay\LaraBill;
use Sina42048\LaraPay\Exception\PaymentRequestException;

Route::get('/payment', function () {
    $bill = new LaraBill();
    $bill->amount(1000);
    $bill->order_id = 2;

    try {
        return LaraPay::setBill($bill)
            ->setDriver('idpay')
            ->prepare(function($transactionId, $driverName) {
                //dd($transactionId); // do database actions
            })
            ->render();
    } catch (PaymentRequestException $e) {
        dd($e->getMessage());
    }
});
```

Example Usage For Verify Process
================================

[](#example-usage-for-verify-process)

```
use Sina42048\LaraPay\LaraRecipt;
use Sina42048\LaraPay\Exception\PaymentVerifyException;

Route::match(['GET', 'POST'], '/verify', function() {
    try {
        LaraPay::setDriver('idpay')
            ->checkAmount(function($transactionId) {
                return $amount; // $amount should be return from your table in database based on transaction id, throw exception if amount not found
            })
            ->verify(function(LaraRecipt $recipt) {
                dd($recipt); // payment is verfied , recipt data accessable
            });

    } catch (PaymentVerifyException $e) {
        dd($e->getMessage());
    }
});
```

Contributing
============

[](#contributing)

pull request are welcome !

License
=======

[](#license)

MIT

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 97.3% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16323963?v=4)[Sina](/maintainers/sina42048)[@sina42048](https://github.com/sina42048)

---

Top Contributors

[![sina42048](https://avatars.githubusercontent.com/u/16323963?v=4)](https://github.com/sina42048 "sina42048 (71 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

### Embed Badge

![Health badge](/badges/sina42048-lara-pay/health.svg)

```
[![Health](https://phpackages.com/badges/sina42048-lara-pay/health.svg)](https://phpackages.com/packages/sina42048-lara-pay)
```

PHPackages © 2026

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