Skip to content

Commit

Permalink
Minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
fraudlabspro committed Jul 6, 2018
1 parent 1980502 commit 63322d1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "library",
"description": "FraudLabs Pro PHP SDK to help merchants to detect fraud order and therefore reduce chargebacks.",
"license": "MIT",
"version": "3.1.1",
"version": "3.1.2",
"authors": [
{
"name": "FraudLabs Pro",
Expand Down
2 changes: 1 addition & 1 deletion lib/FraudLabsPro/FraudLabsPro.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class FraudLabsPro
*
* @const string
*/
const VERSION = '3.1.1';
const VERSION = '3.1.2';

public function __construct()
{
Expand Down
4 changes: 2 additions & 2 deletions lib/FraudLabsPro/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ public static function validate($params = [])
// Credit card information
'bin_no' => (isset($params['card']['number'])) ? substr($params['card']['number'], 0, 6) : '',
'card_hash' => (isset($params['card']['number'])) ? self::doHash($params['card']['number']) : '',
'avs_result' => (isset($params['card']['avs'])) ? self::doHash($params['card']['avs']) : '',
'cvv_result' => (isset($params['card']['cvv'])) ? self::doHash($params['card']['cvv']) : '',
'avs_result' => (isset($params['card']['avs'])) ? $params['card']['avs'] : '',
'cvv_result' => (isset($params['card']['cvv'])) ? $params['card']['cvv'] : '',

// Shipping information
'ship_addr' => (isset($params['shipping']['address'])) ? $params['shipping']['address'] : '',
Expand Down

0 comments on commit 63322d1

Please sign in to comment.