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

ActiveLibrary[Payment Processing](/categories/payments)

larapay/payu
============

Payu Payment Gateway Ready To Use

2.2(1y ago)07MITPHPPHP &gt;=8.0

Since Jan 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Pratiksahu2003/larapay)[ Packagist](https://packagist.org/packages/larapay/payu)[ RSS](/packages/larapay-payu/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Larapay - PayU Payment Integration for Laravel Larapay is a simple and easy-to-use Laravel package for integrating the PayU payment gateway. This package supports Laravel versions 8, 9, and 10, and provides an efficient way to handle PayU payments, store transaction details in the database, and manage the PayU response.

Features Easy PayU Integration: Integrate PayU payment gateway with minimal configuration. Transaction Data Storage: Automatically store payment details in your database. Fully Configurable: Configure PayU credentials in the .env file. Laravel Support: Compatible with Laravel 8, 9, and 10. Installation Step 1: Install the Package You can install the package via Composer by running the following command:

bash Copy Edit composer require larapay/payu Step 2: Publish Configuration After installing the package, publish the configuration file using the following command:

bash Copy Edit php artisan vendor:publish --provider="Larapay\\Payu\\PayuServiceProvider" --tag="larapay-config" This will generate the larapay.php configuration file in your config directory.

Step 3: Run Database Migrations The package includes a migration file that creates a payu\_transactions table to store payment details. Run the following command to migrate the database:

bash Copy Edit php artisan migrate Step 4: Add PayU Credentials to .env You need to configure your PayU credentials in the .env file. Add the following lines:

env Copy Edit PAYU\_KEY=your\_payu\_key PAYU\_SALT=your\_payu\_salt PAYU\_BASE\_URL= # Use production URL for live environment Replace your\_payu\_key and your\_payu\_salt with the credentials provided by PayU.

Usage Step 1: Define Routes You need to define routes to handle the payment process. Add the following route in routes/web.php:

php Copy Edit use Larapay\\Payu\\Http\\Controllers\\PayuController;

Route::post('/payu/process-payment', \[PayuController::class, 'processPayment'\]); Step 2: Send Payment Data To initiate a payment, send a POST request to /payu/process-payment with the necessary payment data. The payment data should look like the following example:

json Copy Edit { "amount": 500.00, "product": "Product Name", "user\_info": { "name": "John Doe", "email": "" } } Step 3: Handle Response After PayU processes the payment, the response will be returned and stored in the payu\_transactions table in your database. You can access this data from the table to check the payment status or other transaction details.

Database Schema The payu\_transactions table is used to store transaction details. Here is an overview of the schema:

transaction\_id: The unique transaction ID. amount: The total amount processed. status: The current status of the payment. response\_data: The full response from PayU stored as JSON. created\_at: Timestamp when the transaction was created. updated\_at: Timestamp when the transaction was last updated. Example Migration: php Copy Edit Schema::create('payments', function (Blueprint $table) { $table-&gt;id(); $table-&gt;string('transaction\_id'); $table-&gt;decimal('amount', 10, 2); $table-&gt;string('status'); $table-&gt;json('response\_data'); $table-&gt;string('email'); // Add email column $table-&gt;string('mobile\_number'); // Add mobile number column $table-&gt;timestamps(); }); License This package is open-source and available under the MIT License.

Troubleshooting PayU API Not Responding: Verify that the PAYU\_BASE\_URL is correct and ensure the PayU gateway is operational. Invalid Credentials: Ensure that PAYU\_KEY and PAYU\_SALT in your .env file are correct. Migration Issues: If you face any issues with migrations, you can try running php artisan migrate:refresh. Contributing We welcome contributions to this package. If you'd like to improve or add features to Larapay, please follow these steps:

Fork the repository. Make your changes. Create a pull request with a description of the changes you've made. Please ensure that you follow Laravel’s coding standards and write tests for any new features.

Support If you encounter any issues or have any questions, please open an issue on the GitHub repository.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

Every ~0 days

Total

3

Last Release

528d ago

Major Versions

v1.1.0 → 2.12025-01-21

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/121413854?v=4)[Pratik Sahu](/maintainers/Pratiksahu2003)[@Pratiksahu2003](https://github.com/Pratiksahu2003)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.2k](/packages/msilabs-bkash)[patryqhyper/polish_payments_api

Library for polish payment providers

141.6k](/packages/patryqhyper-polish-payments-api)

PHPackages © 2026

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