Skip to content

Laravel PayUMoney

Usage

sh
composer require infyomlabs/laravel-payumoney:"^1.3.0"

Publish the config files and view files

sh
php artisan laravel-payumoney:publish

Above command will publish the following files:

  • resources/views/payumoney/pay.blade.php
  • resources/views/payumoney/fail.blade.php
  • config/payu.php
  • App\Http\Controllers\PayuMoneyController.php

Add the following two routes to VerifyCsrfToken.php into except as its callback routes.

sh
payu-money-payment-cancel
payu-money-payment-success

You need to change the PAYU_TEST_MODE=false when you are done with testing and want to use it in production.

Route to open payumoney form :

sh
{APP_URL}/payu-money-payment