ingresse / legiti-php-sdk
This package's canonical repository appears to be gone and the package has been frozen as a result.
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-02-21 05:56:47 UTC
README
Legiti protects your company from losses due to fraud and chargebacks, maximizing revenue from valid purchases and minimizing unnecessary customer friction. We accomplish this by making predictions based on past and present customer behavior to evaluate the likelihood that an order is fraudulent.
This PHP package is automatically generated by the Swagger Codegen project:
- API version: 1.0
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen
Requirements
PHP 5.5 and later
Installation & Usage
Composer
To install the bindings via Composer:
composer require ingresse/legiti-php-sdk
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/SwaggerClient-php/vendor/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'); $apiInstance = new Swagger\Client\Api\AuthApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Swagger\Client\Model\Auth(); // \Swagger\Client\Model\Auth | try { $result = $apiInstance->auth($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling AuthApi->auth: ', $e->getMessage(), PHP_EOL; } ?>
Documentation for API Endpoints
All URIs are relative to https://legiti-api.lgtcdn.net
Class | Method | HTTP request | Description |
---|---|---|---|
AuthApi | auth | POST /ticketing/v1/auth | Add a use auth operation and result |
Documentation For Models
Documentation For Authorization
bearerAuth
- Type: HTTP bearer authentication