PHPackages                             blognevis/plisio-sdk-laravel - 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. blognevis/plisio-sdk-laravel

ActiveSdk[Payment Processing](/categories/payments)

blognevis/plisio-sdk-laravel
============================

SDK package for building your own payment gateway using Plisio API.

0.0.1(1y ago)0291MITPHPPHP &gt;=7.3

Since Aug 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/arsaey/pliso)[ Packagist](https://packagist.org/packages/blognevis/plisio-sdk-laravel)[ RSS](/packages/blognevis-plisio-sdk-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (1)

Plisio SDK for Laravel framework
================================

[](#plisio-sdk-for-laravel-framework)

Laravel compatibility
---------------------

[](#laravel-compatibility)

Laravelplisio-sdk-laravel5.6.\* - 8.\* (PHP 7 required)1.0.0Installation
------------

[](#installation)

Use the package manager [composer](https://getcomposer.org/) to install Plisio SDK package.

```
composer require plisio/plisio-sdk-laravel
```

Publish config file.

```
php artisan vendor:publish --provider="Plisio\PlisioSdkLaravel\Providers\PlisioProvider"
```

Edit the config file located in `app/config/plisio.php` and enter your Plisio Api Key

Usage
=====

[](#usage)

### Initialize Plisio SDK

[](#initialize-plisio-sdk)

To use Plisio sdk functionality you need to initialize it. The following examples will take into account that the initialization of the sdk has already taken place.

```
use Plisio\PlisioSdkLaravel\Payment;

//Initializing payment gateway with api_key in app/config .
$plisioGateway = new Payment(config('plisio.api_key'));
```

### Get shop information

[](#get-shop-information)

Get information about shop which api key is specified in the config file.

```
$shopInfo = $plisioGateway->getShopInfo();
```

### Get balance information

[](#get-balance-information)

Get balance of the specified wallet.

```
$btcWalletBalance = $plisioGateway->getBalances('BTC');
```

### Get enabled cryptocurrencies

[](#get-enabled-cryptocurrencies)

Get information about the cryptocurrencies that are enabled in the store. Specify $source\_currency to get fiat/crypto rate otherwise USD/crypto will be shown.

```
$currencies = $plisioGateway->getCurrencies('CAD');
```

### Create invoice and handle Plisio response

[](#create-invoice-and-handle-plisio-response)

```
//Data about the client and his order, which must be inserted into the invoice.
$params = [...];

$data = array(
    'order_name' => 'Order #' . $params['invoiceid'], //Merchant internal order name.
    'order_number' => $params['invoiceid'],           //Merchant internal order number. Must be a unique number in your store for each new store`s order.
    'description' => $params['order_description'],    //Optional order description.
    'source_amount' => number_format($params['amount'], 8, '.', ''),  //Invoice total float value in fiat currency.
    'source_currency' => $params['currency'],         //Fiat currency code. For example: USD, BRL, CAD etc.
    'cancel_url' => 'https://examplestore.com/failedOrder.php?id=' . $params['invoiceid'],  //User will be redirected to this link in a case of invoice payment failure.
    'callback_url' => 'https://examplestore.com/callback.php',       //The link to which you will receive a notification about a change in the status of the order.
    'success_url' => 'https://examplestore.com/successOrder.php?id=' . $params['invoiceid'],  //User will be redirected to this link in a case of invoice payment success.
    'email' => $params['clientdetails']['email'],     //User's email. If not specified user will be asked to enter his email on the invoice page.
    'plugin' => 'laravelSdk',                         //Payment gateway origin. This value will help Plisio to analyse any problem occurred with SDK functionality.
    'version' => '1.0.0'                              //Consider updating this setting every time you update the functionality related to this sdk.
    );

    //Create invoice and put response to the $response variable.
    $response = $plisioGateway->createTransaction($data);

    //Check the response and, depending on the result, redirect the user to Plisio for further payment or return to the checkout page with an error.
    if ($response && $response['status'] !== 'error' && !empty($response['data'])) {
        redirect($response['data']['invoice_url']);
        clearCart();
    } else {
        $errorMessage = implode(',', json_decode($response['data']['message'], true));
        redirectToCheckout();
    }
```

### Create white label invoice

[](#create-white-label-invoice)

In this case you should check if white label is enabled in the store:

```
$shopInfo = $plisioGateway->getShopInfo();
$isWhiteLabel = $shopInfo['data']['white_label'];
```

If the white label is enabled, then when you create an invoice, you will receive full information about it, which will allow you to render the invoice on any page of your site.

### Verify callback data

[](#verify-callback-data)

When creating an invoice and changing its status, Plisio will send a callback to the address specified when creating the invoice. To verify the authenticity of a callback, use the verifyCallbackData function.

```
//callback.php
$callbackData = $_POST;

if ($plisioGateway->verifyCallbackData($callbackData)) {
    //Change invoice status, notify user etc.
} else {
    //HTTP 403 error. Callback data is not valid!
}
```

More about Plisio API
=====================

[](#more-about-plisio-api)

License
-------

[](#license)

[MIT](https://choosealicense.com/licenses/mit/)

pliso
=====

[](#pliso)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

632d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0c8600872556e878d3852b5bf5a31bf9c9a2c40136d794c7c053198cce3455fa?d=identicon)[arsae](/maintainers/arsae)

---

Top Contributors

[![arsae](https://avatars.githubusercontent.com/u/68208604?v=4)](https://github.com/arsae "arsae (3 commits)")

### Embed Badge

![Health badge](/badges/blognevis-plisio-sdk-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/blognevis-plisio-sdk-laravel/health.svg)](https://phpackages.com/packages/blognevis-plisio-sdk-laravel)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
