Skip to content

Commit 1cc5f2e

Browse files
authored
RGOPS-4923 Add new 3DS reason codes (#70)
1 parent 968f980 commit 1cc5f2e

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
src/RunChecksum.php

src/GatewayChecksum.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010

1111
class GatewayChecksum
1212
{
13+
private const VERSION = "P8.14";
1314
public static $checksum = "";
14-
public static $baseChecksum = "89378da3b0687fd78719a912c39aab92";
15-
public static $versionNo = "P8.13";
15+
public static $baseChecksum = "40fbe28e2fb89bed66cc0e5eddc1499a";
16+
public static $versionNo = GatewayChecksum::VERSION;
1617

1718
//////////////////////////////////////////////////////////////////////
1819
//
@@ -30,7 +31,7 @@ static function SetVersion()
3031
md5_file($dirName . "/GatewayCodes.php");
3132
GatewayChecksum::$checksum = md5($baseString);
3233
if (GatewayChecksum::$checksum != GatewayChecksum::$baseChecksum) {
33-
GatewayChecksum::$versionNo = "P8.13m";
34+
GatewayChecksum::$versionNo = GatewayChecksum::VERSION . "m";
3435
}
3536
}
3637
}

src/GatewayCodes.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,12 @@ class GatewayCodes {
123123
const REASON_3DSECURE_INITIATION = 225;
124124
const REASON_3DSECURE_FRICTIONLESS_FAILED_AUTH = 227;
125125
const REASON_3DSECURE_SCA_REQUIRED = 228;
126-
126+
const REASON_3DSECURE_CARDHOLDER_CANCEL = 229;
127+
const REASON_3DSECURE_ACS_TIMEOUT = 230;
128+
const REASON_3DSECURE_INVALID_CARD = 231;
129+
const REASON_3DSECURE_INVALID_TRANSACTION = 232;
130+
const REASON_3DSECURE_ACS_TECHNICAL_ISSUE = 233;
131+
const REASON_3DSECURE_EXCEEDS_MAX_CHALLENGES = 234;
127132
const REASON_DNS_FAILURE = 300;
128133
const REASON_UNABLE_TO_CONNECT = 301;
129134
const REASON_REQUEST_XMIT_ERROR = 302;

0 commit comments

Comments
 (0)