From 89111d6e1e737ec230e4117576068567672c1f6b Mon Sep 17 00:00:00 2001 From: O K Date: Sun, 7 Dec 2025 23:40:01 +0200 Subject: [PATCH] add price log --- usps_api_bridge.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usps_api_bridge.php b/usps_api_bridge.php index 31d05f0..0bb748c 100644 --- a/usps_api_bridge.php +++ b/usps_api_bridge.php @@ -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 ], ]);