PHPackages                             akcybex/laravel-jazzcash - 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. akcybex/laravel-jazzcash

ActiveLibrary[Payment Processing](/categories/payments)

akcybex/laravel-jazzcash
========================

Jazzcash - Laravel Jazzcash Payment Gateway Integration

1.0(4y ago)437.9k↓24.4%1MITPHP

Since Dec 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/akcybex/laravel-jazzcash)[ Packagist](https://packagist.org/packages/akcybex/laravel-jazzcash)[ RSS](/packages/akcybex-laravel-jazzcash/feed)WikiDiscussions main Synced 1mo ago

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

[![Jazzcash](https://camo.githubusercontent.com/923d03bfd51639783d0e54383b92997bb127c32b67e3a6037a67e8ec6ff5028e/68747470733a2f2f73616e64626f782e6a617a7a636173682e636f6d2e706b2f53616e64626f782f436f6e74656e742f696d616765732f6c6f676f5f4a617a7a436173682e706e67)](https://sandbox.jazzcash.com.pk/Sandbox/Home/GettingStarted)

[![Build Status](https://camo.githubusercontent.com/15878e61a69af2077f584b34e459784a94a6cffb148cc4e050bff9cc129ac52e/68747470733a2f2f7472617669732d63692e6f72672f616b63796265782f6c61726176656c2d6a617a7a636173682e737667)](https://travis-ci.org/akcybex/laravel-jazzcash)[![Total Downloads](https://camo.githubusercontent.com/ae17bba33a881fe74424b024a9e4ab055c22fed53843694a9ce394be559a7427/68747470733a2f2f706f7365722e707567782e6f72672f616b63796265782f6c61726176656c2d6a617a7a636173682f642f746f74616c2e737667)](https://packagist.org/packages/akcybex/laravel-jazzcash)[![Latest Stable Version](https://camo.githubusercontent.com/0d2b7523aa61d029a709678cd209e7dbfde42486a19b0e8a526fcbf4a239b18b/68747470733a2f2f706f7365722e707567782e6f72672f616b63796265782f6c61726176656c2d6a617a7a636173682f762f737461626c652e737667)](https://packagist.org/packages/akcybex/laravel-jazzcash)[![License](https://camo.githubusercontent.com/53714b556b7bdf2ff4682578114a29e43c1d761a31ee379411c1976f25dd5546/68747470733a2f2f706f7365722e707567782e6f72672f616b63796265782f6c61726176656c2d6a617a7a636173682f6c6963656e73652e737667)](https://packagist.org/packages/akcybex/laravel-jazzcash)

Installation Steps
------------------

[](#installation-steps)

### 1. Require the Package

[](#1-require-the-package)

After creating your new Laravel application you can include the ***Laravel Jazzcash*** package with the following command:

```
composer require akcybex/laravel-jazzcash

```

### 2. Add the Jazzcash Merchant Sandbox or Live Credentials

[](#2-add-the-jazzcash-merchant-sandbox-or-live-credentials)

Next make sure to Jazzcash Merchant Sandbox or Live credentials to your .env file &amp; their environment to use relevant credentials:

```
# Jazzcash Merchant
JAZZCASH_ENVIRONMENT=sandbox #You can set sandbox or live

SANDBOX_JAZZCASH_MERCHANT_ID=
SANDBOX_JAZZCASH_PASSWORD=
SANDBOX_JAZZCASH_INTEGERITY_SALT=
SANDBOX_JAZZCASH_RETURN_URL=
SANDBOX_JAZZCASH_ENDPOINT=https://sandbox.jazzcash.com.pk/CustomerPortal/transactionmanagement/merchantform

JAZZCASH_MERCHANT_ID=
JAZZCASH_PASSWORD=
JAZZCASH_INTEGERITY_SALT=
JAZZCASH_RETURN_URL=
JAZZCASH_ENDPOINT=https://payments.jazzcash.com.pk/CustomerPortal/transactionmanagement/merchantform
```

### 3. Run Migration

[](#3-run-migration)

Next to run migration command to migrate jazzcash transaction table.

```
php artisan migrate

```

### 4. Generate MWALLET Request Form Fields, Generate form &amp; Send Payment Request

[](#4-generate-mwallet-request-form-fields-generate-form--send-payment-request)

Next to generate MWALLET request form fields from your checkout details and set amount as well as send request:

> ***Note:*** Currently this package is only supporting MWALLET request soon we will add other features.

```
// ...

// Get request data after validation while submitting checkout
$i = $request->all();

// will return form fields
$data = \AKCybex\JazzCash\Facades\JazzCash::request()->setAmount($i['amount'])->toArray($i);

// ...
```

Pass generated fields data to view and then paste this code in view:

```
{{-- ... --}}

@php
    $jazzcash_environment = config('jazzcash.environment');
@endphp

    @foreach($data as $key => $value)

    @endforeach

    setTimeout(function () {
        document.forms['redirect-to-payment-gateway'].submit();
    }, 1000);

{{-- ... --}}
```

this will submit your request to jazzcash merchant and redirect automatically.

### 5. Handle Jazzcash response on transaction complete

[](#5-handle-jazzcash-response-on-transaction-complete)

Lastly, you just need to check code and get checkout details from jazzcash object which was submitted while checkout.

```
// ...

Route::post('/jazzcash/payment', function (\Illuminate\Http\Request $request, $gateway) {
    $jazzcash = \AKCybex\JazzCash\Facades\JazzCash::response();
    if ($jazzcash->code() == 000) {
        // Checkout form details you can get here
        $order = $jazzcash->order();

        // ...
    } else {
        $error = $jazzcash->message();
        // ...
    }

});

// ...
```

### Support

[](#support)

[Contact Us](https://akcybex.com/contact)

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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

1604d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/774bfa169eda591de133876fedfdbb5eb9a8040d95dd6958be1f573dc8a9b68e?d=identicon)[akcybex](/maintainers/akcybex)

---

Top Contributors

[![mtt786](https://avatars.githubusercontent.com/u/57855073?v=4)](https://github.com/mtt786 "mtt786 (27 commits)")

### Embed Badge

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

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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