From 736b05cc1be8ebae610b43e60a35a0a2a94773a9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 29 Oct 2025 18:11:18 +0000 Subject: [PATCH] Fix duplicate JSON output in capture_order.php causing PayPal cart errors Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com> --- modules/billing/api/capture_order.php | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/billing/api/capture_order.php b/modules/billing/api/capture_order.php index 1c9d4821..bd487658 100644 --- a/modules/billing/api/capture_order.php +++ b/modules/billing/api/capture_order.php @@ -91,7 +91,6 @@ if ($http !== 201 && $http !== 200) { // Extract payment details $txid = null; capture_log('paypal_capture_success', $capture); -echo json_encode($capture); if (isset($capture['purchase_units'][0]['payments']['captures'][0])) { $txid = $capture['purchase_units'][0]['payments']['captures'][0]['id'] ?? null; }