4you4ever / interkassa
Interkassa API v. 0.4 (28.03.2014) 的库
dev-master
2014-07-26 10:14 UTC
Requires
- php: >=5.3
- ext-curl: *
This package is not auto-updated.
Last update: 2024-09-30 18:17:20 UTC
README
Interkassa Mass Payments API v 0.4 (28.03.2014) 的 PHP 实现
用法
要向服务器执行查询,必须创建 API 类的新实例。
$api = new interkassa\Api();
检索货币列表
$currencies = $api->getCurrencyList();
检索输入的支付系统列表
$items = $api->getPaySystemInputList();
检索输出的支付系统列表
$items = $api->getPaySystemOutputList();
检索账户列表
$items = $api->getAccountList($user, $password);
检索选定账户的钱包列表
$items = $api->getAccountList($user, $password, $accountId);
搜索并检索发票
$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);
搜索并检索提现
$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);
创建新的提现
$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);
许可证
此库在开源 MIT 许可证下发布,您可以在任何情况下使用和修改它。
有关完整的版权和许可信息,请查看与此源代码一起分发的 LICENSE 文件。