futurepay / swagger-creditdecisioning-php
Installs: 3 693
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.4
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~2.6
This package is not auto-updated.
Last update: 2025-07-06 07:37:29 UTC
README
This is a microservice used to make a credit decision for a user based on input
This PHP package is automatically generated by the Swagger Codegen project:
- API version: 1.0.0
- Build package: io.swagger.codegen.languages.PhpClientCodegen
Requirements
PHP 5.4.0 and later
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/futurepay/swagger-creditdecisioning-php.git"
}
],
"require": {
"futurepay/swagger-creditdecisioning-php": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/SwaggerClient-php/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); $api_instance = new FuturePay\SDK\CreditDecisioning\Api\DefaultApi(); $data = new \FuturePay\SDK\CreditDecisioning\Model\Data(); // \FuturePay\SDK\CreditDecisioning\Model\Data | User information try { $result = $api_instance->decision($data); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->decision: ', $e->getMessage(), PHP_EOL; } ?>
Documentation for API Endpoints
All URIs are relative to http://credit.futurepay.ca
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | decision | POST /v1/decision | Submit some information to perform a decision on |
Documentation For Models
- CreditInformation
- CreditSummary
- CreditSummaryClosedWithBalanceAmount
- CreditSummaryInstallmentAmount
- CreditSummaryRevolvingAmount
- CreditSummaryTotalHistory
- Data
- Decision
- FraudAlert
- InlineResponse200
- InputCategoryCreditRule
- InputUser
- SuppliedInformation
Documentation For Authorization
All endpoints do not require authorization.