add price log
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
if (!defined('_PS_VERSION_')) {
|
if (!defined('_PS_VERSION_')) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
use Symfony\Component\HttpClient\HttpClient;
|
use Symfony\Component\HttpClient\HttpClient;
|
||||||
|
|
||||||
|
|
||||||
@@ -267,6 +268,7 @@ class Usps_Api_Bridge extends Module
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$this->log("API Response price: " . $response['totalBasePrice']);
|
||||||
|
|
||||||
// Add handling fees if any from original module logic
|
// Add handling fees if any from original module logic
|
||||||
return $totalPrice + $shipping_cost;
|
return $totalPrice + $shipping_cost;
|
||||||
@@ -383,7 +385,7 @@ class Usps_Api_Bridge extends Module
|
|||||||
'client_id' => $clientId,
|
'client_id' => $clientId,
|
||||||
'client_secret' => $clientSecret,
|
'client_secret' => $clientSecret,
|
||||||
'grant_type' => 'client_credentials',
|
'grant_type' => 'client_credentials',
|
||||||
// 'scope' => 'prices international-prices' // Specifying scope helps avoid ambiguity
|
// 'scope' => 'prices international-prices' // Specifying scope helps avoid ambiguity
|
||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user