2017 © Pedro Peláez
 

library interkassa

Library for Interkassa API v. 0.4 (28.03.2014)

image

4you4ever/interkassa

Library for Interkassa API v. 0.4 (28.03.2014)

  • Friday, July 25, 2014
  • by 4you4ever
  • Repository
  • 1 Watchers
  • 1 Stars
  • 69 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP Library for Interkassa API

PHP implementation for Interkassa Mass Payments API v 0.4 (28.03.2014), (*1)

Usage

To execute queries to server you must create new instance of API class., (*2)

$api = new interkassa\Api();

Retrieve currencies list:, (*3)

$currencies = $api->getCurrencyList();

Retrieve list of payment system for input:, (*4)

$items = $api->getPaySystemInputList();

Retrieve list of payment system for output:, (*5)

$items = $api->getPaySystemOutputList();

Retrieve account list, (*6)

$items = $api->getAccountList($user, $password);

Retrieve purses list for selected account, (*7)

$items = $api->getAccountList($user, $password, $accountId);

Search and retrieve invoices, (*8)

$form = new interkassa\SearchForm();
$form->fromDate('2014-07-24 16:00:00')->toDate('2014-07-25 16:00:00')->byPurse($id);

$items = $api->getInvoiceList($user, $password, $accountId, $form);

Search and retrieve withdraw, (*9)

$form = new interkassa\SearchForm();
$form->fromDate('2014-07-24 16:00:00')->toDate('2014-07-25 16:00:00')->byPurse($id);

$items = $api->getWithdrawList($user, $password, $accountId, $form);

Create new withdraw, (*10)

$wform = new interkassa\WithdrawForm();
$wform->setAction(interkassa\WithdrawForm::ACTION_CALC);
$wform->setCalcKey(interkassa\WithdrawForm::CALC_PAYEE_AMOUNT);
$wform->setAmount(100.50);
$wform->setPayway('52ef9b77e4ae1a3008000000');
$wform->setPurse('207291561721');
$wform->setDetails(array(
    'card' => '4000123423454578'
));

$api->createWithdraw($username, $password, $account, $wform);

License

This library is released under the Open Source MIT license, which gives you the possibility to use it and modify it in every circumstance., (*11)

For the full copyright and license information, please view the LICENSE file that was distributed with this source code., (*12)

The Versions

25/07 2014

dev-master

9999999-dev

Library for Interkassa API v. 0.4 (28.03.2014)

  Sources   Download

MIT

The Requires

  • php >=5.3
  • ext-curl *

 

by Stanislav Demydiuk

interkassa