File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,12 @@ public function getSignature()
53
53
$ this ->httpRequest ->request ->get ('DeclineCode ' , '' ).
54
54
$ this ->httpRequest ->request ->get ('ExpiryDate ' , '' ).
55
55
$ this ->httpRequest ->request ->get ('FraudResponse ' , '' ).
56
- $ this ->httpRequest ->request ->get ('BankAuthCode ' , '' );
56
+ $ this ->httpRequest ->request ->get ('BankAuthCode ' , '' ).
57
+ // New for protocol v4.00
58
+ // Described in the docs here: https://developer.elavon.com/products/opayo-server/v1/notification-of-transaction-result
59
+ $ this ->httpRequest ->request ->get ('ACSTransID ' , '' ).
60
+ $ this ->httpRequest ->request ->get ('DSTransID ' , '' ).
61
+ $ this ->httpRequest ->request ->get ('SchemeTraceID ' , '' );
57
62
58
63
return md5 ($ signature_string );
59
64
}
Original file line number Diff line number Diff line change @@ -120,9 +120,14 @@ public function testCompleteAuthorizeSuccess()
120
120
'DeclineCode ' => '00 ' ,
121
121
'ExpiryDate ' => '0722 ' ,
122
122
'BankAuthCode ' => '999777 ' ,
123
+ // New fields for protocol v4.0
124
+ 'ACSTransID ' => 'abcuuid ' ,
125
+ 'DSTransID ' => '123uuid ' ,
126
+ 'SchemeTraceID ' => 'V123 ' ,
123
127
'VPSSignature ' => md5 (
124
128
'{F955C22E-F67B-4DA3-8EA3-6DAC68FA59D2} '
125
129
. '438791 ' . 'OK ' . 'bexamplecJEUPDN1N7Edefghijklm ' . '00 ' . '0722 ' . '999777 '
130
+ . 'abcuuid ' . '123uuid ' . 'V123 '
126
131
),
127
132
)
128
133
);
You can’t perform that action at this time.
0 commit comments