Wallogit.com
2017 © Pedro Peláez
Library for Interkassa API v. 0.4 (28.03.2014)
PHP implementation for Interkassa Mass Payments API v 0.4 (28.03.2014), (*1)
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);
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)