Skip to content

Commit

Permalink
Merge branch 'release/1.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyrichardson committed Dec 12, 2020
2 parents 703fc62 + db5fb61 commit d95e894
Show file tree
Hide file tree
Showing 9 changed files with 229 additions and 485 deletions.
6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,17 @@
}
],
"type": "library",
"version": "1.2.1",
"version": "1.3.0",
"require": {
"grayl/config": "^1.1",
"grayl/gateway-common": "^1.1",
"grayl/mixin-common": "^1.0",
"grayl/omnipay-common": "^1.2",
"grayl/store-order": "^1.0",
"grayl/omnipay-common": "^1.3",
"maxmind/minfraud": "^1",
"php": "~7.4"
},
"require-dev": {
"grayl/gateway-pdo": "^1",
"grayl/omnipay-authorizenet": "^1",
"phpunit/phpunit": "^9"
},
"autoload": {
Expand Down
2 changes: 2 additions & 0 deletions src/Entity/MinFraudInsightsRequestData.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Grayl\Gateway\MinFraud\Entity;

use Grayl\Gateway\Common\Entity\RequestDataAbstract;
use Grayl\Gateway\MinFraud\Traits\MinFraudAccountParametersTrait;
use Grayl\Gateway\MinFraud\Traits\MinFraudBillingParametersTrait;
use Grayl\Gateway\MinFraud\Traits\MinFraudCreditCardParametersTrait;
use Grayl\Gateway\MinFraud\Traits\MinFraudCustomParametersTrait;
Expand All @@ -25,6 +26,7 @@ class MinFraudInsightsRequestData extends RequestDataAbstract
{

// Traits
use MinFraudAccountParametersTrait;
use MinFraudBillingParametersTrait;
use MinFraudCreditCardParametersTrait;
use MinFraudCustomParametersTrait;
Expand Down
15 changes: 15 additions & 0 deletions src/Helper/MinFraudHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,19 @@ public function getEmailAddressTLD ( string $email ): ?string
1 );
}


/**
* Gets an MD5 hash of a username
*
* @param string $username The username itself
*
* @return string
*/
public function getUsernameMD5 ( string $username ): string
{

// Return an MD% hash of the username
return md5( $username );
}

}
61 changes: 0 additions & 61 deletions src/Helper/MinFraudOmnipayHelper.php

This file was deleted.

214 changes: 0 additions & 214 deletions src/Helper/MinFraudOrderHelper.php

This file was deleted.

Loading

0 comments on commit d95e894

Please sign in to comment.