Skip to content
Hassaan Ali edited this page Dec 7, 2025 · 2 revisions

JazzCash Payment Gateway Package

JazzCash Payment Gateway

Latest Version on Packagist MIT Licensed Total Downloads

Overview

The JazzCash Payment Gateway Package is a Laravel package that simplifies integration with JazzCash payment gateway. This package provides a secure and convenient method for merchants to accept online payments through JazzCash's hosted checkout feature.

Quick Navigation

Getting Started

Core Features

Advanced Topics

Features

  • Hosted Checkout - Secure redirect-based payment processing
  • Easy Integration - Simple API with method chaining
  • Sandbox Support - Test payments in sandbox mode
  • Production Ready - Secure hash generation and validation
  • Type Safe - Full type declarations for better IDE support
  • Well Tested - Comprehensive test suite included
  • Security - HTML escaping and input validation

Installation

composer require zfhassaan/jazzcash

Quick Start

use zfhassaan\JazzCash\JazzCash;

$jazzcash = new JazzCash();
$jazzcash->setAmount(1000.00)
    ->setBillReference('ORDER-12345')
    ->setProductDescription('Product Purchase');

return $jazzcash->sendRequest();

Requirements

  • PHP 8.1 or higher
  • Laravel 9.0, 10.0, 11.0, or 12.0
  • JazzCash merchant account with:
    • Merchant ID
    • Password
    • Hash Key
    • Sandbox/Production URLs

Disclaimer

This is an unofficial JazzCash API Payment Gateway package. This repository is created to help developers streamline the integration process. You can review the official JazzCash documentation here.

Note: This package currently covers Hosted Checkout process only. Direct checkout and subscription functionality may be added in future releases.

Support

License

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


Thank you for using the JazzCash Payment Gateway Package! If you have any questions or need assistance, please refer to the documentation pages above or contact support.

Clone this wiki locally