Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel 5.x OmniPay PayUBiz

Laravel package for PayUBiz payment gateway with Omnipay.

Install

Via Composer

$ composer require appoets/omnipay-payubiz

Usage

Configuration

$PayU = OmniAuth::create('PayUBiz');
$PayU->setKey(MERCHANT_ID);
$PayU->setSalt(PAYU_SALT);

$PaymentDetails = [
    'name' => $user->name,
    'first_name' => $user->first_name,
    'last_name' => $user->last_name,
    'email' => $user->email,
    'amount' => $product->amount,
    'product' => $product->name,
    'curl' => url('api/payment/cancelled'),
    'furl' => url('api/payment/failed'),
    'surl' => url('api/payment/success')
];

$PayU->purchase($PaymentDetails)->send()->redirect();

Check official OmniPay documentation for more

Credits

License

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

About

PayU Biz payment gateway integration to Laravel for merchants in India.

Resources

Stars

2 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages