PHPackages                             raziul/shurjopay-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. [Payment Processing](/categories/payments)
4. /
5. raziul/shurjopay-laravel

ActiveLibrary[Payment Processing](/categories/payments)

raziul/shurjopay-laravel
========================

ShurjoPay payment gateway integration for Laravel.

v1.0.0(3y ago)11523MITPHPPHP &gt;=7.3

Since Jun 16Pushed 3y ago1 watchersCompare

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

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

 [ ![ShurjoPay payment gateway integration for Laravel](https://camo.githubusercontent.com/48967b09619f1366e3dc74e9d5794c8bfd982e1ab7539204e4b1cb0cd08535a9/68747470733a2f2f7777772e736875726a6f7061792e636f6d2e62642f6465762f696d616765732f736875726a6f5061792e706e67) ](https://github.com/iraziul)

ShurjoPay payment gateway integration for Laravel
=================================================

[](#shurjopay-payment-gateway-integration-for-laravel)

This is a [Laravel](https://laravel.com) package for integrating **ShurjoPay** payment gateway in your Laravel application.

---

Features
--------

[](#features)

- Easy to use.
- Friendly simple interface.
- Laravel Facade.

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

[](#installation)

Add the dependency to your Laravel project using Composer:

```
composer require raziul/shurjopay-laravel
```

> **Note**: This package supports Laravel auto-discovery. You don't need to add the service provider manually.

Configuration
-------------

[](#configuration)

You can add ShurjoPay mercant credentials in the `.env` file like below:

```
# ShurjoPay merchant credentials
SHURJOPAY_SANDBOX_MODE=false
SHURJOPAY_MERCHANT_USERNAME=""
SHURJOPAY_MERCHANT_PASSWORD=""
SHURJOPAY_MERCHANT_PREFIX=""
```

or you can publish the config file:

```
php artisan vendor:publish --provider="Raziul\Shurjopay\ShurjopayServiceProvider"
```

> It should copy the config file to `config/shurjopay.php` of your project.

Usage Guide
-----------

[](#usage-guide)

Whenever you need to use Shurjopay payment gateway, just use the `Shurjopay` Facade.

```
use Raziul\Shurjopay\Facades\Shurjopay;
```

### To make a payment

[](#to-make-a-payment)

In your controller

```
// The payload will be passed to Shurjopay.
$payload = [
    // order info
    // customer info
    // custom values
];

// set the callback url
Shurjopay::setCallbackUrl($success_url, $cancel_url);

// Make a payment
Shurjopay::makePayment($payload);

// OR use methond chaining like below:
Shurjopay::setCallbackUrl($success_url, $cancel_url)->makePayment($payload);
```

### Verify Payment

[](#verify-payment)

> **Note**: You need to call this method in the callback url. The `order_id` will be available in the query string.

```
$payment = Shurjopay::verifyPayment($order_id);

if ($payment->success()) {
    // payment success
} else {
    // payment failed
}
```

> `Shurjopay::verifyPayment` return an instance of `Raziul\Shurjopay\Data\Payment`.

### Available methods in the `Payment` class.

[](#available-methods-in-the-payment-class)

MethodDescription$payment-&gt;success()Return payment success status$payment-&gt;failed()Return payment failed status$payment-&gt;message()Get the success/error message$payment-&gt;orderId()Get the order ID$payment-&gt;currency()Get currency code$payment-&gt;amount()Get the amount$payment-&gt;customerOrderId()Get customer order ID$payment-&gt;paymentMethod()Get the payment method name$payment-&gt;dateTime()Get the transaction date time$payment-&gt;toArray()Get all the data as array### Error Handling

[](#error-handling)

> For better error handling you can catch the `Raziul\Shurjopay\Exceptions\ShurjopayException`.

```
try {
	// making payment
	Shurjopay::setCallbackUrl($success_url, $cancel_url)
		->makePayment($payload);

	// or verfication
	Shurjopay::verifyPayment($order_id);

} catch (Raziul\Shurjopay\Exceptions\ShurjopayException $e) {
	return $e->getMessage();
}
```

Suggestion/Issues
-----------------

[](#suggestionissues)

If you found any issues or have any suggestion then please create an [issue](https://github.com/iRaziul/shurjopay-laravel/issues).

You can also submit PR regarding any issues.

License
-------

[](#license)

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

Thank You
---------

[](#thank-you)

Thanks for using this package and If you foound this package useful then consider giving it a star.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

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

1427d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

payment gatewayshurjopayshurjopay gatewayshurjopay phpshurjopay laravelshurjopay payment gateway laravel

### Embed Badge

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

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

###  Alternatives

[shetabit/payment

Laravel Payment Gateway Integration Package

944330.1k5](/packages/shetabit-payment)[shetabit/multipay

PHP Payment Gateway Integration Package

291348.2k3](/packages/shetabit-multipay)[cybersource/rest-client-php

Client SDK for CyberSource REST APIs

39881.3k6](/packages/cybersource-rest-client-php)[jomweb/billplz

PHP Agnostic library for working with BillPlz API

77199.0k3](/packages/jomweb-billplz)[luigel/laravel-paymongo

A laravel wrapper for Paymongo API

7956.2k1](/packages/luigel-laravel-paymongo)[hexters/coinpayment

CoinPayment is a Laravel module for handling transactions from CoinPayment like a create transaction, history transaction, etc.

7058.0k](/packages/hexters-coinpayment)

PHPackages © 2026

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