PHPackages                             hopeofiran/nicardpayment - 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. hopeofiran/nicardpayment

ActiveLibrary[Payment Processing](/categories/payments)

hopeofiran/nicardpayment
========================

You can make your Nick Card payments with this package.

v1.0.3(3y ago)11.0kMITPHPPHP ^7.3|^8.0

Since Mar 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hopeofiran/nicardPayment)[ Packagist](https://packagist.org/packages/hopeofiran/nicardpayment)[ RSS](/packages/hopeofiran-nicardpayment/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (5)Used By (0)

Laravel Parsian Refund
======================

[](#laravel-parsian-refund)

Laravel Parsian Refund provides amount refundation.

License
-------

[](#license)

Laravel Persian Validation is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

Requirement
-----------

[](#requirement)

- Laravel 8.\* to up
- PHP 7.3 to up

Install
-------

[](#install)

Via Composer

```
$ composer require hopeofiran/nicardpayment
```

Config
------

[](#config)

Add the following provider to providers part of config/app.php

```
HopeOfIran\NicardPayment\Providers\NicardPaymentProvider::class
```

vendor:publish
--------------

[](#vendorpublish)

You can run vendor:publish command to have custom config file of package on this path ( config/parsianRefund.php )

```
php artisan vendor:publish --provider=HopeOfIran\NicardPayment\Providers\NicardPaymentProvider
```

Sample code (payment)
---------------------

[](#sample-code-payment)

```
Route::any('/payment', function () {
return \HopeOfIran\NicardPayment\Facades\NicardPaymentFacade::creditAmount(200000)
        ->cashAmount(0)
        ->callbackUrl(\route('payment.verification'))
        ->backUrl(\route('payment.verification'))
        ->installmentsCountList([3, 4])
        ->purchase(function (\HopeOfIran\NicardPayment\NicardPayment $nicardPayment, \Illuminate\Http\Client\Response $response, $data) {
            return $nicardPayment->pay($data['open_cpg_url']);
            return 'payment failed';
        });
})->name('payment');
```

Sample code (verification)
--------------------------

[](#sample-code-verification)

```
Route::any('/payment/verification', function (\Illuminate\Http\Request $request) {
    $response = \HopeOfIran\NicardPayment\Facades\NicardPaymentFacade::verify($request->input('tid'));
    if ($response->successful()) {
        return $response['is_totally_success'];
    }
    return $response->collect()->get('status');
})->name('payment.verification');
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Every ~79 days

Total

4

Last Release

1284d ago

PHP version history (3 changes)V1.0.0PHP ^7.3

v1.0.2PHP ^7.3|8.0

v1.0.3PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c4f3e794ef10961851e8719644a96a19cfd79379e4e5ecd82c9e123f4f99d761?d=identicon)[hopeofiran](/maintainers/hopeofiran)

---

Top Contributors

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

---

Tags

paymentnicardnicard-paymentnicardPayment

### Embed Badge

![Health badge](/badges/hopeofiran-nicardpayment/health.svg)

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

###  Alternatives

[paymentsuite/stripe-bundle

Stripe PaymentSuite Component

105.0k](/packages/paymentsuite-stripe-bundle)

PHPackages © 2026

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