PHPackages                             azpays/laravel - 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. [API Development](/categories/api)
4. /
5. azpays/laravel

ActiveLibrary[API Development](/categories/api)

azpays/laravel
==============

The official repository of AzPays for Laravel

0.1.0(2y ago)029Apache-2.0PHPPHP ^8.1

Since Aug 6Pushed 2y agoCompare

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

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

AzPays Laravel Package
======================

[](#azpays-laravel-package)

[![Latest Stable Version](https://camo.githubusercontent.com/9e7d8e85bf77e3c69f8d33f9f97dfe79b526c1e492f0e9b8f6a9eeb082eef30f/687474703a2f2f706f7365722e707567782e6f72672f617a706179732f6c61726176656c2f76)](https://packagist.org/packages/azpays/laravel) [![Total Downloads](https://camo.githubusercontent.com/b2f8c9bb1b0ecd36f6a9b4aa400111d05fa76e804fa906f829ecc1393e4023a0/687474703a2f2f706f7365722e707567782e6f72672f617a706179732f6c61726176656c2f646f776e6c6f616473)](https://packagist.org/packages/azpays/laravel) [![Latest Unstable Version](https://camo.githubusercontent.com/bfd08e702da65b0f1f0976fef6810e5ffdd67b03faa25618844e876b6761d7b4/687474703a2f2f706f7365722e707567782e6f72672f617a706179732f6c61726176656c2f762f756e737461626c65)](https://packagist.org/packages/azpays/laravel) [![License](https://camo.githubusercontent.com/e2eac7088e0aa0e45329af0679aa22f06d958485fb96534c90d2a6aa34115692/687474703a2f2f706f7365722e707567782e6f72672f617a706179732f6c61726176656c2f6c6963656e7365)](https://packagist.org/packages/azpays/laravel) [![PHP Version Require](https://camo.githubusercontent.com/f44637ddbc8720866030bc1f4fa1008960698a8904533d9d18f45d90178b508e/687474703a2f2f706f7365722e707567782e6f72672f617a706179732f6c61726176656c2f726571756972652f706870)](https://packagist.org/packages/azpays/laravel)

The official repository of AzPays for Laravel

Content Table
-------------

[](#content-table)

- [AzPays Laravel Package](#azpays-laravel-package)
    - [Content Table](#content-table)
    - [Installation](#installation)
    - [Usage](#usage)
        - [Configuration](#configuration)
            - [Sandbox Mode](#sandbox-mode)
            - [Debug Mode](#debug-mode)
            - [API](#api)
                - [API URL](#api-url)
                - [Sandbox API URL](#sandbox-api-url)
                - [API Key](#api-key)
                - [API Version](#api-version)
            - [Routes](#routes)
                - [Routes Enabled](#routes-enabled)
                - [Routes Prefix](#routes-prefix)
            - [Merchant](#merchant)
                - [Key](#key)
        - [Payment Create](#payment-create)
        - [Payment Checkout](#payment-checkout)
        - [Payment Check](#payment-check)
        - [Wallet Claim](#wallet-claim)
    - [Security](#security)

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

[](#installation)

You can install the package via composer:

```
composer require azpays/laravel
```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

```
php artisan vendor:publish --provider="AzPays\Laravel\AzPaysServiceProvider"
```

#### Sandbox Mode

[](#sandbox-mode)

The sandbox mode is used to test the AzPays API. You can set your sandbox mode in the config file called `config/azpays.php` or add key in your `.env` file as follows.

```
AZPAYS_SANDBOX_MODE=true
```

#### Debug Mode

[](#debug-mode)

The debug mode is used to debug the AzPays API. You can set your debug mode in the config file called `config/azpays.php` or add change your `APP_DEBUG` value in your `.env` file.

#### API

[](#api)

##### API URL

[](#api-url)

The API URL is used to set the AzPays API URL. You can set your API URL in the config file called `config/azpays.php` or add key in your `.env` file as follows.

```
AZPAYS_API_URL=https://azpays.net/api
```

##### Sandbox API URL

[](#sandbox-api-url)

The sandbox API URL is used to set the AzPays sandbox API URL. You can set your sandbox API URL in the config file called `config/azpays.php` or add key in your `.env` file as follows.

```
AZPAYS_SANDBOX_API_URL=https://sandbox.azpays.net/api
```

##### API Key

[](#api-key)

The API key is used to authenticate the AzPays API. The API key is generated from the AzPays dashboard. You can set your API key in the config file called `config/azpays.php` or add key in your `.env` file as follows.

```
AZPAYS_API_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```

##### API Version

[](#api-version)

The API version is used to set the AzPays API version. You can set your API version in the config file called `config/azpays.php` or add key in your `.env` file as follows.

```
AZPAYS_API_VERSION=v1
```

#### Routes

[](#routes)

##### Routes Enabled

[](#routes-enabled)

The routes enabled is used to enable the AzPays routes. You can set your routes enabled in the config file called `config/azpays.php` or add key in your `.env` file as follows.

```
AZPAYS_ROUTES_ENABLED=true
```

##### Routes Prefix

[](#routes-prefix)

The routes prefix is used to set the AzPays routes prefix. You can set your routes prefix in the config file called `config/azpays.php` or add key in your `.env` file as follows.

```
AZPAYS_ROUTES_PREFIX=azpays
```

#### Merchant

[](#merchant)

The merchant key is used to authenticate the merchant. The merchant key is generated from the AzPays dashboard.

##### Key

[](#key)

You can set your merchant key in the config file called `config/azpays.php` or add key in your `.env` file as follows.

```
AZPAYS_MERCHANT_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```

### Payment Create

[](#payment-create)

This method is used to create a payment request. The payment request is created with the following parameters.

- `amount` (string) - The amount to be paid in **USD** (Fiat Amount).

To create a payment request, you can use the following code.

```
dispatch_sync(new \AzPays\Laravel\Jobs\CreatePaymentJob('100'));
```

### Payment Checkout

[](#payment-checkout)

This method is used to checkout a payment request. The payment request is checked out with the following parameters.

- `token` (string) - The payment token that given as unique reference in payment create method.

To checkout a payment request, you can use the following code.

```
dispatch_sync(new \AzPays\Laravel\Jobs\CheckoutPaymentJob('PAYMENT_TOKEN'));
```

### Payment Check

[](#payment-check)

This method is used to check a payment request. The payment request is checked with the following parameters.

- `token` (string) - The payment token that given as unique reference in payment create method.

To check a payment request, you can use the following code.

```
dispatch_sync(new \AzPays\Laravel\Jobs\CheckPaymentJob('PAYMENT_TOKEN'));
```

### Wallet Claim

[](#wallet-claim)

This method is used to claim a wallet. The wallet is claimed with the following parameters.

- `currency` (int) - The currency universal code that given as unique reference in `Enums\Wallet\Currency`.
- `amount` (string) - The amount to be claimed in **USD** (Fiat Amount).
- `payment` (string) - The payment token that given as unique reference in payment create method.

To claim a wallet, you can use the following code.

```
dispatch_sync(new \AzPays\Laravel\Jobs\ClaimWalletJob(10001, '100', 'PAYMENT_TOKEN'));
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

1064d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/125727058?v=4)[AzPays](/maintainers/azpays)[@azpays](https://github.com/azpays)

---

Top Contributors

[![t4-muhammad](https://avatars.githubusercontent.com/u/124201331?v=4)](https://github.com/t4-muhammad "t4-muhammad (1 commits)")

---

Tags

apiazpayslaravelpackage

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/azpays-laravel/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k16](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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