artme/laravel-paysera

There is no license information available for the latest version (0.9.1) of this package.

Paysera module for Laravel 5.1

This package's canonical repository appears to be gone and the package has been frozen as a result.

0.9.1 2016-12-07 11:41 UTC

This package is not auto-updated.

Last update: 2023-04-01 10:26:55 UTC


README

Package that helps to use Paysera API in laravel application.

Installation

First require package with composer:

$ composer require artme/laravel-paysera

Then add service provider to config/app.php:

'providers' => [
    ...
    Artme\Paysera\PayseraServiceProvider::class,
],

Facede to aliases:

'aliases' => [
    ...
    'Paysera'   => Artme\Paysera\PayseraFacade::class,
],

And last is to publish config, migrations and view:

$ php artisan vendor:publish --provider="Artme\Paysera\PayseraServiceProvider"
$ php artisan migrate

Usage

Get payment methods

Paysera::getPaymentMethods($locale, $groups);

Both parameters for this method is optional. $locale have to be string of locale key. By default $locale will be set by application locale (App::getLocale()). $groups variable sets what payment method to get and have to be array. For example if we want only e-banking methods, we can set ['e-banking']. Result of this method will be array with payment methods and information about them.