PHPackages                             dagar/payu - 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. dagar/payu

ActiveComposer-package[Payment Processing](/categories/payments)

dagar/payu
==========

Easy Integration with PayU Redirect Payment Gateway

22[2 issues](https://github.com/4nkitd/payu/issues)PHP

Since Nov 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/4nkitd/payu)[ Packagist](https://packagist.org/packages/dagar/payu)[ RSS](/packages/dagar-payu/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Dagar / PayU
============

[](#dagar--payu)

Reason of Existance
===================

[](#reason-of-existance)

Working with payment Gateways/aggregator's has become a common thing for me at office we work with almost all major payment gateway available in india. PayU, Razorpay &amp; Stripe are at the top of our list. Razorpay &amp; Stripe has Phenomenally good sdks for all major languages/frameworks.

But when it comes to payu it's like they don't care about dev tooling.

i build this for people new to payu integration . So that they can follow the standard process and also be productive in 30-40 mins of reading this repository.

Future
------

[](#future)

- will add features along the way.

Note :- specifics can be found in issues

FEATURES
========

[](#features)

```
- Trigger payu redirect payment with ease.

- Verify Payment Callback/Manually

```

Import Package
--------------

[](#import-package)

```
use Dagar\PayU\PaymentGateway\Api;
```

Create Class Instance
---------------------

[](#create-class-instance)

```
$inst = new Api(
    'KEY', # key provided by Team PayU
    "SECRET", # secret provided by Team PayU
    true # is test mode required
);
```

Set Return uri routes
---------------------

[](#set-return-uri-routes)

```
$inst->setURI($success_return_uri, $failure_return_uri);
```

Change Parameters after creating the instance
---------------------------------------------

[](#change-parameters-after-creating-the-instance)

```
$inst->setMerchantKey($string);
$inst->setMerchantSecret($string);
$inst->isProd($bool);

$inst->setProdUri( $string );
# https://secure.payu.in/_payment
$inst->setTestUri( $string );
# https://test.payu.in/_payment

$inst->setTestPaymentVerifyUri( $string );
# https://test.payu.in/merchant/postservice.php?form=2
$inst->setProdPaymentVerifyUri( $string );
# https://info.payu.in/merchant/postservice.php?form=2
```

Set Fee / Discount
==================

[](#set-fee--discount)

```
$inst->setDiscount( 10 );
$inst->setFee( 100 );
```

Triger Payment
--------------

[](#triger-payment)

```
$inst->createOrder(
    $amount ?? 0 ,
    $receipt_No ?? random_int(1,999),
    [
        'name' => 'test', # name of client
        'email' => 'test@test.test', # name of client
        'phone' => '9999999999', # name of client
    ]
);
```

Verify Callback Requests from PayU
----------------------------------

[](#verify-callback-requests-from-payu)

```

```

###  Health Score

10

—

LowBetter than 0% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 90.9% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a6321ab1a9e8751d856009a451a970cff58064b1c8e04818dd5a64978757ddce?d=identicon)[4nkitd](/maintainers/4nkitd)

---

Top Contributors

[![4nkitd](https://avatars.githubusercontent.com/u/52023083?v=4)](https://github.com/4nkitd "4nkitd (10 commits)")[![Rohit-mcsam](https://avatars.githubusercontent.com/u/93900525?v=4)](https://github.com/Rohit-mcsam "Rohit-mcsam (1 commits)")

---

Tags

composerextensionlaravelpackagepayupayumoney

### Embed Badge

![Health badge](/badges/dagar-payu/health.svg)

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

###  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)
