Skip to content

Commit 5cf1b51

Browse files
20201119 deployment
1 parent 3cdeb3b commit 5cf1b51

File tree

4 files changed

+14
-30
lines changed

4 files changed

+14
-30
lines changed

src/Builders/Secure3dBuilder.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -857,12 +857,16 @@ public function withCustomerEmail($value)
857857
}
858858

859859
/**
860-
* @param DecoupledFlowRequest
860+
* @param bool
861861
* @return Secure3dBuilder
862862
*/
863863
public function withDecoupledFlowRequest($decoupledFlowRequest)
864864
{
865-
$this->decoupledFlowRequest = $decoupledFlowRequest;
865+
if ($decoupledFlowRequest == true) {
866+
$this->decoupledFlowRequest = "TRUE";
867+
} else {
868+
$this->decoupledFlowRequest = "FALSE";
869+
}
866870
return $this;
867871
}
868872

@@ -1257,12 +1261,16 @@ public function withTransactionType($transactionType)
12571261
}
12581262

12591263
/**
1260-
* @param WhiteListStatus
1264+
* @param bool
12611265
* @return Secure3dBuilder
12621266
*/
12631267
public function withWhitelistStatus($whitelistStatus)
12641268
{
1265-
$this->whitelistStatus = $whitelistStatus;
1269+
if ($whitelistStatus == true) {
1270+
$this->whitelistStatus = "TRUE";
1271+
} else {
1272+
$this->whitelistStatus = "FALSE";
1273+
}
12661274
return $this;
12671275
}
12681276

src/Entities/Enums/DecoupledFlowRequest.php

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/Entities/Enums/WhiteListStatus.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

test/Integration/Gateways/RealexConnector/Secure3dServiceTests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ public function testFullCycle_v2_2()
207207
->withMethodUrlCompletion(MethodUrlCompletion::NO)
208208
->withChallengeRequestIndicator(ChallengeRequestIndicator::NO_PREFERENCE)
209209
->withMerchantInitiatedRequestType(MerchantInitiatedRequestType::TOP_UP)
210-
// ->withWhitelistStatus(WhiteListStatus::NOT_WHITELISTED)
211-
// ->withDecoupledFlowRequest(DecoupledFlowRequest::DO_NOT_USE_DECOUPLED)
210+
->withWhitelistStatus(true)
211+
->withDecoupledFlowRequest(false)
212212
->withDecoupledFlowTimeout('9001')
213213
->withDecoupledNotificationUrl('https://example-value.com')
214214
->execute();

0 commit comments

Comments
 (0)