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:
parent
bf4ffddc9c
commit
736b05cc1b
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue