Merge pull request #39 from GameServerPanel/copilot/fix-paypal-cart-error
Fix duplicate JSON output in PayPal capture endpoint
This commit is contained in:
commit
5fd7a009ef
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