hashstudio/fintech-market-sdk
Composer 安装命令:
composer require hashstudio/fintech-market-sdk
包简介
fintech market api description
README 文档
README
fintech-market.com Laravel API SDK. At a moment this package supports only pushInquiry method.
Requirements
- PHP >= 8.1
- Laravel >= 9.0
Installation
You can install the package via composer:
composer require hashstudio/fintech-market-sdk
Usage
publish config and set up api keys
php artisan vendor:publish --tag=fintech-market-config
use Hashstudio\FintechMarketSdk\FintechMarketSdk; $sdk = app(FintechMarketSdk::class); $data = [ 'data' => [ 'person_external_id' => 'f3529593-e832', 'entity_external_id' => 'f3529593-e832-40e9-bf1d-45272d8ffffsdfsd', 'lock_version' => 5, 'fields' => [ 'aml_factor' => 'true', 'collateral_insurance' => '1', 'collateral_types' => '1', 'collateral_value_volatility' => '1', 'data_reliability' => '1', 'enforceability_of_collateral' => '1', 'feasibility_of_collateral' => '1', 'fin_borrowings' => '0', 'fin_collateral_value' => '0', 'fin_credit_history' => 'true', 'fin_current_assets' => '1000', 'fin_current_liabilities' => '1000', 'fin_loan_amount' => '0', 'fin_personal_income' => '9000', 'fin_profit' => '5000', 'fin_revenue' => '1000', 'fin_total_assets' => '1000', 'fin_total_liabilities' => '5000', 'non_fin_experience' => '13', 'non_fin_term_length' => '11', 'reputation' => '1', 'sustainability' => '1', 'ultimate_beneficiary' => '1', ], ], ]; $branch = 'some_branch'; $scenarioKey = 'short_test'; $sdk->pushInquiry($branch, $scenarioKey, $data);
Testing
composer test
统计信息
- 总下载量: 6.55k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-04-25