Download the PHP package plisio/plisio-sdk-laravel without Composer
On this page you can find all versions of the php package plisio/plisio-sdk-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download plisio/plisio-sdk-laravel
More information about plisio/plisio-sdk-laravel
Files in plisio/plisio-sdk-laravel
Package plisio-sdk-laravel
Short Description SDK package for building your own payment gateway using Plisio API.
License MIT
Informations about the package plisio-sdk-laravel
Plisio SDK for Laravel framework
Laravel compatibility
Laravel | plisio-sdk-laravel |
---|---|
5.6. - 8. (PHP 7 required) | 1.0.0 |
Installation
Use the package manager composer to install Plisio SDK package.
Publish config file.
Edit the config file located in app/config/plisio.php
and enter your Plisio Api Key
Usage
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.
Get shop information
Get information about shop which api key is specified in the config file.
Get balance information
Get balance of the specified wallet.
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.
Create invoice and handle Plisio response
Create white label invoice
In this case you should check if white label is enabled in the store:
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
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.
More about Plisio API
https://plisio.net/documentation
License
All versions of plisio-sdk-laravel with dependencies
ext-curl Version *