Generator

Monthly Sponsors

Our Laravel Products

InfyHMSInfyHMS-SAASInfyJobsInfyChatInfyCareInfyVCards-SaaSInfyInvoicesInfyInvoices-SaaSInfyCalInfyFundingInfyNews

Laravel PayUMoney

Usage

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

Publish the config files and view files

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.

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 :

{APP_URL}/payu-money-payment