PHPackages                             saeedvaziry/payir - 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. saeedvaziry/payir

ActiveLibrary[Payment Processing](/categories/payments)

saeedvaziry/payir
=================

Pay.ir Laravel Package

1.0(3y ago)74.6k4MITPHPPHP ^7.1.3 || ^8.0

Since May 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/saeedvaziry/payir)[ Packagist](https://packagist.org/packages/saeedvaziry/payir)[ RSS](/packages/saeedvaziry-payir/feed)WikiDiscussions master Synced today

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

**⚠️ This repository is archived and is not maintained anymore.**

Please consider using [Pay.ir PHP SDK](https://github.com/paydotir/php-sdk) instead

Pay.ir Laravel
==============

[](#payir-laravel)

Laravel package to connect to Pay.ir Payment Gateway

Installation
------------

[](#installation)

`composer require saeedvaziry/payir`

Publish Configurations
----------------------

[](#publish-configurations)

`php artisan vendor:publish --provider="SaeedVaziry\Payir\PayirServiceProvider"`

Config
------

[](#config)

Set your api key and redirect url in `.env` file:

```
PAYIR_API_KEY=test
PAYIR_REDIRECT=/payir/callback

```

Usage
-----

[](#usage)

### Payment Controller

[](#payment-controller)

```
