add price log
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
if (!defined('_PS_VERSION_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
use Symfony\Component\HttpClient\HttpClient;
|
||||
|
||||
|
||||
@@ -267,6 +268,7 @@ class Usps_Api_Bridge extends Module
|
||||
return false;
|
||||
}
|
||||
}
|
||||
$this->log("API Response price: " . $response['totalBasePrice']);
|
||||
|
||||
// Add handling fees if any from original module logic
|
||||
return $totalPrice + $shipping_cost;
|
||||
@@ -383,7 +385,7 @@ class Usps_Api_Bridge extends Module
|
||||
'client_id' => $clientId,
|
||||
'client_secret' => $clientSecret,
|
||||
'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