!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)

/var/www/html/main_file/vendor/srmklive/paypal/src/Traits/PayPalAPI/   drwxr-xr-x
Free 13.23 GB of 57.97 GB (22.83%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Srmklive\PayPal\Traits\PayPalAPI;

trait 
BillingPlans
{
    
/**
     * Create a new billing plan.
     *
     * @param array  $data
     * @param string $request_id
     *
     * @throws \Throwable
     *
     * @return array|\Psr\Http\Message\StreamInterface|string
     *
     * @see https://developer.paypal.com/docs/api/subscriptions/v1/#plans_create
     */
    
public function createPlan(array $datastring $request_id)
    {
        
$this->apiEndPoint 'v1/billing/plans';

        
$this->options['headers']['PayPal-Request-Id'] = $request_id;
        
$this->options['json'] = $data;

        
$this->verb 'post';

        return 
$this->doPayPalRequest();
    }

    
/**
     * List all billing plans.
     *
     * @param int  $page
     * @param int  $size
     * @param bool $totals
     *
     * @throws \Throwable
     *
     * @return array|\Psr\Http\Message\StreamInterface|string
     *
     * @see https://developer.paypal.com/docs/api/subscriptions/v1/#plans_list
     */
    
public function listPlans(int $page 1int $size 20bool $totals true)
    {
        
$totals = ($totals) ? 'true' 'false';

        
$this->apiEndPoint "v1/billing/plans?page={$page}&page_size={$size}&total_required={$totals}";

        
$this->verb 'get';

        return 
$this->doPayPalRequest();
    }

    
/**
     * Update an existing billing plan.
     *
     * @param string $plan_id
     * @param array  $data
     *
     * @throws \Throwable
     *
     * @return array|\Psr\Http\Message\StreamInterface|string
     *
     * @see https://developer.paypal.com/docs/api/invoicing/v2/#invoices_update
     */
    
public function updatePlan(string $plan_id, array $data)
    {
        
$this->apiEndPoint "v1/billing/plans/{$plan_id}";

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

        
$this->verb 'patch';

        return 
$this->doPayPalRequest(false);
    }

    
/**
     * Show details for an existing billing plan.
     *
     * @param string $plan_id
     *
     * @throws \Throwable
     *
     * @return array|\Psr\Http\Message\StreamInterface|string
     *
     * @see https://developer.paypal.com/docs/api/subscriptions/v1/#plans_get
     */
    
public function showPlanDetails(string $plan_id)
    {
        
$this->apiEndPoint "v1/billing/plans/{$plan_id}";

        
$this->verb 'get';

        return 
$this->doPayPalRequest();
    }

    
/**
     * Activate an existing billing plan.
     *
     * @param string $plan_id
     *
     * @throws \Throwable
     *
     * @return array|\Psr\Http\Message\StreamInterface|string
     *
     * @see https://developer.paypal.com/docs/api/subscriptions/v1/#plans_activate
     */
    
public function activatePlan(string $plan_id)
    {
        
$this->apiEndPoint "v1/billing/plans/{$plan_id}/activate";

        
$this->verb 'post';

        return 
$this->doPayPalRequest(false);
    }

    
/**
     * Deactivate an existing billing plan.
     *
     * @param string $plan_id
     *
     * @throws \Throwable
     *
     * @return array|\Psr\Http\Message\StreamInterface|string
     *
     * @see https://developer.paypal.com/docs/api/subscriptions/v1/#plans_deactivate
     */
    
public function deactivatePlan(string $plan_id)
    {
        
$this->apiEndPoint "v1/billing/plans/{$plan_id}/deactivate";

        
$this->verb 'post';

        return 
$this->doPayPalRequest(false);
    }

    
/**
     * Update pricing for an existing billing plan.
     *
     * @param string $plan_id
     * @param array  $pricing
     *
     * @throws \Throwable
     *
     * @return array|\Psr\Http\Message\StreamInterface|string
     *
     * @see https://developer.paypal.com/docs/api/subscriptions/v1/#plans_update-pricing-schemes
     */
    
public function updatePlanPricing(string $plan_id, array $pricing)
    {
        
$this->apiEndPoint "v1/billing/plans/{$plan_id}/update-pricing-schemes";

        
$this->options['json'] = [
            
'pricing_schemes' => $pricing,
        ];

        
$this->verb 'post';

        return 
$this->doPayPalRequest(false);
    }
}

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