This repository was archived by the owner on Jun 3, 2022. It is now read-only.
File tree 2 files changed +18
-4
lines changed
2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change 1
1
Revision history for MaxMind CreditCardFraudDetection PHP API
2
2
3
- 1.54 Aug 27th 2013
3
+ 1.54 Sept 1st 2013
4
4
5
5
- Remove custom DNS cache support. ( Boris Zentner )
6
+ - Fixed Composer require issue. ( james-lsn )
6
7
7
8
1.53 Jun 24th 2013
8
9
- 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.
10
10
``` json
11
11
{
12
12
"require" : {
13
- "minfraud/http" : " ~1.53 "
13
+ "minfraud/http" : " ~1.54 "
14
14
}
15
15
}
16
16
```
@@ -56,12 +56,25 @@ These scripts can be run from the shell.
56
56
## Usage ##
57
57
58
58
``` 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
+ );
59
71
60
72
$ccfs = new CreditCardFraudDetection;
61
- $ccfs->input($hash );
73
+ $ccfs->input($inputs );
62
74
$ccfs->query();
63
- $hash = $ccfs->output();
75
+ $outputs = $ccfs->output();
64
76
77
+ print_r($outputs)
65
78
```
66
79
### $ccfs->isSecure ###
67
80
You can’t perform that action at this time.
0 commit comments