Json decode for correct context view
This commit is contained in:
parent
38f0a0c0a4
commit
43ac5c6517
2 changed files with 5 additions and 3 deletions
|
@ -121,7 +121,7 @@ if (!class_exists('WC_Retailcrm_Proxy')) :
|
|||
$response->getStatusCode(),
|
||||
$response->getErrorString()
|
||||
),
|
||||
['response' => $response->getRawResponse()],
|
||||
['response' => json_decode($response->getRawResponse(), true)],
|
||||
WC_Retailcrm_Logger::TYPE['res']
|
||||
);
|
||||
}
|
||||
|
|
|
@ -95,7 +95,8 @@ if (!class_exists('WC_Retailcrm_Loyalty')) :
|
|||
if (!$response->isSuccessful()) {
|
||||
WC_Retailcrm_Logger::error(
|
||||
__METHOD__,
|
||||
'Error while registering in the loyalty program: ' . $response->getRawResponse()
|
||||
'Error while registering in the loyalty program',
|
||||
['response' => json_decode($response->getRawResponse(), true)]
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -125,7 +126,8 @@ if (!class_exists('WC_Retailcrm_Loyalty')) :
|
|||
if (!$response->isSuccessful()) {
|
||||
WC_Retailcrm_Logger::error(
|
||||
__METHOD__,
|
||||
'Error while registering in the loyalty program: ' . $response->getRawResponse()
|
||||
'Error while registering in the loyalty program',
|
||||
['response' => json_decode($response->getRawResponse(), true)]
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue