PHP code example of bravist / cnvex-white-finance
1. Go to this page and download the library: Download bravist/cnvex-white-finance library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
bravist / cnvex-white-finance example snippets
'providers' => [
//...
Bravist\CnvexWhiteFinance\ServiceProvider::class,
],
'aliases' => [
'CnvexWhiteFinance' => Bravist\CnvexWhiteFinance\Facade\CnvexWhiteFinance::class
],
...
// $app->withEloquent();
$app->register(Bravist\CnvexWhiteFinance\ServiceProvider::class);
...
>>> CnvexWhiteFinance::supportWhiteFinance('5131261983082700301')
=> {#1239
+"result": true,
+"errorCode": 0,
+"errorMessage": "success",
+"data": {#1237
+"creditAccountNumber": "5131261983082700301",
+"idCardType": "身份证",
+"idCardNumber": "5131261983082700301",
+"effectiveDate": 1479710296558,
+"expiredDate": 1605940696558,
+"creditLimitAmount": 10000,
+"frozenAmount": 0,
+"availableAmount": 9400,
+"usedAmount": 300,
+"overdue": true,
+"lastRepayDate": 1511159896558,
+"lastRepayAmount": 0,
+"overdueInterestAmount": 0,
+"loanAccountCount": 0,
+"acLoanAccountCount": 0,
+"overdueLoanAccountCount": 0,
+"overLoanAccountCount": 0,
+"createDate": 1479710296558,
+"lastUpdateDate": 1479710296558,
},
}
php
php artisan vendor:publish --provider="Bravist\CnvexWhiteFinance\ServiceProvider"