Fix duplicate JSON output in capture_order.php causing PayPal cart errors

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-10-29 18:11:18 +00:00
parent bf4ffddc9c
commit 736b05cc1b

View file

@ -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;
}