File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -89,8 +89,13 @@ public function isSuccessful(): bool
8989 {
9090 if ($ this ->getIsRedirect ()) {
9191 return true ;
92- } else {
93- return (string )$ this ->data ->Transaction ->Response ->Code === '00 ' ;
9492 }
93+
94+ return (string )$ this ->data ->Transaction ->Response ->Code === '00 ' ;
95+ }
96+
97+ public function getTransactionReference (): ?string
98+ {
99+ return (string )$ this ->data ->Transaction ->RetrefNum ;
95100 }
96101}
Original file line number Diff line number Diff line change @@ -39,6 +39,6 @@ public function getRedirectUrl(): string
3939 {
4040 $ urlType = $ this ->getRequest ()->getParameters ()['testMode ' ] ? 'test ' : 'prod ' ;
4141
42- return $ this ->isRedirect () ? $ this ->redirectUrl [$ urlType ] : null ;
42+ return $ this ->isRedirect () ? $ this ->redirectUrl [$ urlType ] : '' ;
4343 }
4444}
You can’t perform that action at this time.
0 commit comments