-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4675519
commit 065b210
Showing
34 changed files
with
2,303 additions
and
1,188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<xml> | ||
<releaseNumber>6.0.6</releaseNumber> | ||
<releaseNumber>6.1.0</releaseNumber> | ||
</xml> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
namespace GlobalPayments\Api\Builders; | ||
|
||
use GlobalPayments\Api\Entities\Enums\AuthenticationSource; | ||
use GlobalPayments\Api\Entities\Enums\TransactionType; | ||
use GlobalPayments\Api\PaymentMethods\Interfaces\IPaymentMethod; | ||
use GlobalPayments\Api\ServicesContainer; | ||
|
||
class FraudBuilder extends SecureBuilder | ||
{ | ||
public function __construct($transactionType) | ||
{ | ||
parent::__construct(); | ||
|
||
$this->authenticationSource = AuthenticationSource::BROWSER; | ||
$this->transactionType = $transactionType; | ||
} | ||
|
||
public function withPaymentMethod(IPaymentMethod $value) | ||
{ | ||
$this->paymentMethod = $value; | ||
return $this; | ||
} | ||
|
||
public function execute($configName = 'default') | ||
{ | ||
$client = ServicesContainer::instance()->getFraudCheckClient($configName); | ||
return $client->processFraud($this); | ||
} | ||
|
||
/** @return void */ | ||
public function setupValidations() | ||
{ | ||
$this->validations->of(TransactionType::RISK_ASSESS) | ||
->check('paymentMethod')->isNotNull(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
301 changes: 0 additions & 301 deletions
301
src/Builders/RequestBuilder/GpApi/GpApiSecure3DRequestBuilder.php
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.