PHPackages                             hestalabs/payments - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. hestalabs/payments

ActiveLibrary[Payment Processing](/categories/payments)

hestalabs/payments
==================

This is simple and easy to use Laravel and Lumen package for using multiple payment gateways in a single place. Now you don't need to install multiple packages for multiple payment gateways. Here we provide 2 of most widely used Payment Gateways (PayPal, Stripe) having easy to use methods such as pay(), invoice(), refund() etc.

v1.0.x-dev(7y ago)15387PHPPHP &gt;=5.3.0

Since Apr 20Pushed 7y ago2 watchersCompare

[ Source](https://github.com/Hestabit/payments)[ Packagist](https://packagist.org/packages/hestalabs/payments)[ Docs](https://github.com/Hestabit/payments)[ RSS](/packages/hestalabs-payments/feed)WikiDiscussions v1.0 Synced 3d ago

READMEChangelogDependencies (7)Versions (1)Used By (0)

Payments
========

[](#payments)

[![Latest Stable Version](https://camo.githubusercontent.com/ea06842b9cb3bf7c76a4302713fba70caafc272dd4c99e91cbc82b95f092868d/68747470733a2f2f706f7365722e707567782e6f72672f68657374616c6162732f7061796d656e74732f762f737461626c65)](https://packagist.org/packages/hestalabs/payments)[![Total Downloads](https://camo.githubusercontent.com/8a82baf1cb98ddb83821c49d6e1b8df50ce4e689b06a2b26f2ab7598dddea7cd/68747470733a2f2f706f7365722e707567782e6f72672f68657374616c6162732f7061796d656e74732f646f776e6c6f616473)](https://packagist.org/packages/hestalabs/payments)[![License](https://camo.githubusercontent.com/b11dd6d781bff90a302ceb98d90716fbb27c42b0e7010e90196d9d9ad9e4eb5a/68747470733a2f2f706f7365722e707567782e6f72672f68657374616c6162732f7061796d656e74732f6c6963656e7365)](https://packagist.org/packages/hestalabs/payments)[![Monthly Downloads](https://camo.githubusercontent.com/7b305f085614e3fd10e0fd8d777b9c9d4bcc096dd109d1efb47855b01a657c0c/68747470733a2f2f706f7365722e707567782e6f72672f68657374616c6162732f7061796d656e74732f642f6d6f6e74686c79)](https://packagist.org/packages/hestalabs/payments)

This is simple and easy to use Laravel and Lumen package for using multiple payment gateways in a single place. Now you don't need to install multiple packages for multiple payment gateways. Here we provide 2 of most widely used Payment Gateways (PayPal, Stripe) having easy to use methods such as `pay()`, `invoice()`, `refund()` etc.

Installation
------------

[](#installation)

Via Composer

for both `Laravel` and `Lumen`

```
$ composer require hetsabit/payments ">=1.0"
```

or you can just add it in your composer.json

```
"require": {
    "hetsabit/payments": ">=1.0"
}

```

Next, run `composer update`.

Usage for Laravel
-----------------

[](#usage-for-laravel)

i). For `Laravel` Add the ServiceProvider to your `config/app.php`

a). Add in `providers` array,

```
'providers' => array(
    // ...

    Hetsabit\Payments\PaymentsServiceProvider::class,
);

```

b). Add alias in `alias` array,

```
'aliases' => array(
    // ...

    'Payment'   => Hetsabit\Payments\Facades\Payment::class,
);

```

c). Finally publish the package configurations by running the following command in `Terminal`

```
`php artisan vendor:publish --provider="Hetsabit\Payments\PaymentsServiceProvider"`

```

Usage for Lumen
---------------

[](#usage-for-lumen)

a). For `Lumen` make a directory named `config` and make a file there named `payments` and add the below code,

```
