Download the PHP package kevin-kibet/lipisha-sdk without Composer

On this page you can find all versions of the php package kevin-kibet/lipisha-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package lipisha-sdk


Lipisha Payments PHP SDK

This package provides bindings for the Lipisha Payments API (http://developer.lipisha.com/)

Features

Installation

This package can be installed using composer

composer require lipisha/sdk

Or added to your composer dependencies:

{
    "require": {
        "lipisha/sdk": "^1.0"
    },
}

For existing composer projects, you can immediately start using lipisha:

$lipisa = new \Lipisha\Lipisha("<API-KEY>", "<API-SIGNATURE>", "<ENVIRONMENT>")

For all other usecases, you can include the generated composer class autoloader.

require_once "vendor/autoload.php"

Examples

IPN callback examples are in the examples directory:

https://github.com/lipisha/lipisha-php-sdk/tree/master/examples

Quick start

$lipisha = new \Lipisha\Lipisha("<YOUR API KEY>", "<YOUR API SIGNATURE>", "LIVE");
// To connect to the sandbox, pass the environment asm ``TEST`` instead.

// Get balance
$response = $lipisha.get_balance();
print_r($response)
$balance = $response->content["balance"];

// Send money
$payout_account = "033111";
$response = $lipisha->send_money($payout_account, "0722123456", 500);
$status = $response->status; //SUCCCESS or FAIL

// Acknowledge a transaction
$response = $lipisha->confirm_transaction("TX98089890");
$status = $response->status; //SUCCESS or FAIL
$content = $response->content; //Transaction details

Running Tests

Running tests requires php unit and setting up environment variables for authentication:

First, run composer to install dependencies:

composer install

Then set up environmental variables for authentication:

export LIPISHA_API_KEY="<YOUR LIPISHA API KEY>"
export LIPISHA_API_SIGNATURE="<YOUR LIPISHA API SIGNATURE>"

Run the tests:

phpunit tests/LipishaTest.php

Majority of tests require setting up parameters in the test suite.

See class documentation for detailed API. Refer to Lipisha API for parameters required for each method.


All versions of lipisha-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
ext-curl Version ^0.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kevin-kibet/lipisha-sdk contains the following files

Loading the files please wait ....