appoets / omnipay-payubiz by Sidharth

Laravel package for PayUBiz payment gateway with Omnipay
43
2
4
Package Data
Maintainer Username: Sidharth
Maintainer Contact: sidharth.s.r@appoets.com (Sidharth Raveendran)
Package Create Date: 2016-11-24
Package Last Update: 2016-11-24
Language: PHP
License: MIT
Last Refreshed: 2024-11-22 03:13:35
Package Statistics
Total Downloads: 43
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 4
Total Forks: 1
Total Open Issues: 0

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.