File tree 1 file changed +19
-2
lines changed 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -92,9 +92,26 @@ public function updateOrder($order, $signifydId)
92
92
* @throws InvalidClassException
93
93
* @throws \Signifyd\Core\Exceptions\LoggerException
94
94
*/
95
- public function getCase ($ signifydId )
95
+ public function getCase ($ orderId )
96
96
{
97
- //TODO: implements getCase for v3
97
+ $ this ->logger ->info ('SaleApi: Get case method called ' );
98
+ if (false === is_numeric ($ orderId )) {
99
+ $ this ->logger ->error ('SaleApi: Invalid case id for get case ' . $ orderId );
100
+ }
101
+
102
+ $ this ->logger ->info (
103
+ 'SaleApi: Connection call get case api with order id: ' . $ orderId
104
+ );
105
+
106
+ $ endpoint = 'orders/ ' . $ orderId . '/decision ' ;
107
+ $ response = $ this ->connection ->callApi (
108
+ $ endpoint ,
109
+ '' ,
110
+ 'get ' ,
111
+ 'sale '
112
+ );
113
+
114
+ return $ response ;
98
115
}
99
116
100
117
/**
You can’t perform that action at this time.
0 commit comments