|
|
@@ -237,7 +237,12 @@ class Klarna extends Payment
|
|
|
'status' => $response->getStatusCode(),
|
|
|
'body' => $responseBody,
|
|
|
]);
|
|
|
-
|
|
|
+ //添加日志记录
|
|
|
+ Log::channel('payment')->info('klarna Create an order response', [
|
|
|
+ 'data' => json_encode($data),
|
|
|
+ 'status' => $response->getStatusCode(),
|
|
|
+ 'body' => $responseBody,
|
|
|
+ ]);
|
|
|
$resultObject = json_decode($responseBody);
|
|
|
if ($resultObject->fraud_status == 'ACCEPTED') {
|
|
|
return ['transaction_id' => $resultObject->order_id];
|