axelpal/poscredit

PosCredit 集成 API

1.0.0 2018-02-02 12:45 UTC

This package is auto-updated.

Last update: 2024-09-05 00:48:27 UTC


README

License Dependency Status Latest Stable Version Total Downloads PHP Version

完整文档 v2.7(2018年2月1日发布):https://api.b2pos.ru/loan/manual/full/

简略文档 v2.4(2018年2月1日发布):https://api.b2pos.ru/loan/manual/

安装

composer require axelpal/poscredit

初始化服务

$loanService = new LoanService();

通过“简短问卷”服务获取申请决策

$statusRequest = new StatusShortOptyRequest($userId, $userToken, $profileId);
$response = $loanService->statusShortOpty($statusRequest);

检查申请状态

$statusRequest = new StatusOptyRequest($userId, $userToken, $profileId);
$response = $loanService->statusOpty($statusRequest);

检查网店申请状态

$statusRequest = new StatusSelectedOptyRequest($userId, $userToken, $orderId, $profileId);
$response = $loanService->statusSelectedOpty($statusRequest);