PHPackages                             omnifraud/kount - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. omnifraud/kount

AbandonedLibrary[Security](/categories/security)

omnifraud/kount
===============

Kount driver for the Omnifraud PHP fraud prevention library

v0.3.0(7y ago)012.3k1MITPHP

Since Mar 21Pushed 7y ago3 watchersCompare

[ Source](https://github.com/lxrco/omnifraud-kount)[ Packagist](https://packagist.org/packages/omnifraud/kount)[ RSS](/packages/omnifraud-kount/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (6)Used By (1)

Omnifraud: Kount
================

[](#omnifraud-kount)

**Kount driver for the Omnifraud PHP fraud prevention library**

[![Build Status](https://camo.githubusercontent.com/703aa623f059b38074a08414d44ed127bbfd296c916722ece7bcac275b21bd88/68747470733a2f2f7472617669732d63692e6f72672f6c7872636f2f6f6d6e6966726175642d6b6f756e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lxrco/omnifraud-kount)[![Test Coverage](https://camo.githubusercontent.com/b5601201bffe542c39a60bdf9535ecab4274feaacaa8216418e4ec80c0a9db7f/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f33353535303562666433363437336432356333352f746573745f636f766572616765)](https://codeclimate.com/github/lxrco/omnifraud-kount/test_coverage)

[Omnifraud](https://github.com/lxrco/omnifraud) is an fraud prevention livrary for PHP. It aims at providing a clear and consisten API for interacting with different fraud prevention service.

### Installation

[](#installation)

```
composer require omnifraud/kount
```

### Usage

[](#usage)

The Kount fraud service driver implements the following methods: `trackingCode` ,`validateRequest`, `updateRequest`, `getRequestExternalLink`, `logRefusedRequest`.

The only method that is left empty is `cancelRequest` as Kount does not need requests to be cancelled.

#### Initialisation

[](#initialisation)

The KountService constructor accepts the following configuration values (those are the default values):

```
$service = new KountService([
    'testing' => false, // Use testing endpoint
    'website' => 'DEFAULT', // Website setting, will be passed as `SITE` to Kount
    'testRequestUrl' => 'https://awc.test.kount.net/workflow/detail.html?id=%s', // Url to view a TEST request
    'requestUrl' => 'https://awc.kount.net/workflow/detail.html?id=%s', // Url to view a PRODUCTION request
]);
```

#### Submitting a sale

[](#submitting-a-sale)

Submitting a (successful or refused) sale to Kount requires a Session ID, so you will need to [implement the frontend code](https://github.com/lxrco/omnifraud#frontend-code) on the checkout page:

```
