LaravelPackages.net
Acme Inc.
Toggle sidebar
appoets/larvel-omnipay-payubiz

Laravel package for PayUBiz payment gateway with Omnipay

43
2
About appoets/larvel-omnipay-payubiz

appoets/larvel-omnipay-payubiz is a Laravel package for laravel package for payubiz payment gateway with omnipay. It currently has 2 GitHub stars and 43 downloads on Packagist. Install it with composer require appoets/larvel-omnipay-payubiz. Discover more Laravel packages by appoets or browse all Laravel packages to compare alternatives.

Last updated

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.

Comments