Skip to content
This repository was archived by the owner on Jun 3, 2022. It is now read-only.

Commit 120b7a9

Browse files
committed
Updates for 1.54 release
1 parent eb82ba1 commit 120b7a9

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

Changes

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
Revision 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

78
1.53 Jun 24th 2013
89
- Removed deprecated use of `ereg`.

README.md

+16-3
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)