This repository was archived by the owner on Jun 3, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 11Revision history for MaxMind CreditCardFraudDetection PHP API
22
3- 1.54 Aug 27th 2013
3+ 1.54 Sept 1st 2013
44
55 - Remove custom DNS cache support. ( Boris Zentner )
6+ - Fixed Composer require issue. ( james-lsn )
67
781.53 Jun 24th 2013
89 - Removed deprecated use of `ereg`.
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ To do this, add ```minfraud/http``` to your ```composer.json``` file.
1010``` json
1111{
1212 "require" : {
13- "minfraud/http" : " ~1.53 "
13+ "minfraud/http" : " ~1.54 "
1414 }
1515}
1616```
@@ -56,12 +56,25 @@ These scripts can be run from the shell.
5656## Usage ##
5757
5858``` php
59+ <?php
60+ require_once 'vendor/autoload.php';
61+
62+ $inputs = array(
63+ "license_key" => "YOUR_LICENSE_KEY_HERE",
64+ "i" => "24.24.24.24",
65+ "city" => "New York",
66+ "region" => "NY",
67+ "postal" => "11434",
68+ "country" => "US",
69+ // Other inputs from http://dev.maxmind.com/minfraud/
70+ );
5971
6072$ccfs = new CreditCardFraudDetection;
61- $ccfs->input($hash );
73+ $ccfs->input($inputs );
6274$ccfs->query();
63- $hash = $ccfs->output();
75+ $outputs = $ccfs->output();
6476
77+ print_r($outputs)
6578```
6679### $ccfs->isSecure ###
6780
You can’t perform that action at this time.
0 commit comments