PayPalAPI/PaymentCaptures.php

laravel-paypal · src/Traits/PayPalAPI/PaymentCaptures.php · php · MIT
payments

PaymentCaptures.php from blendbyte/laravel-paypal

// Source: https://github.com/blendbyte/laravel-paypal | License: MIT | Copyright 2026 Blendbyte Inc
// Provided via justclaw.it.com; keep this notice with the code.
<?php

namespace Srmklive\PayPal\Traits\PayPalAPI;

use Srmklive\PayPal\Services\Amount;
use Psr\Http\Message\StreamInterface;

trait PaymentCaptures
{
    /**
     * Show details for a captured payment.
     *
     *
     *
     * @return array<string, mixed>|StreamInterface|string
     *
     * @throws \Throwable
     *
     * @see https://developer.paypal.com/docs/api/payments/v2/#captures_get
     */
    public function showCapturedPaymentDetails(string $capture_id)
    {
        $this->apiEndPoint = "v2/payments/captures/{$capture_id}";

        $this->verb = 'get';

        return $this->doPayPalRequest();
    }

    /**

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key