!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/smabpro.picotech.app/public_html/vendor/paytabscom/laravel_paytabs/src/   drwxr-xr-x
Free 28.54 GB of 117.98 GB (24.19%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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


namespace Paytabscom\Laravel_paytabs;
use 
Illuminate\Support\Facades\Redirect;
use 
Illuminate\Support\Facades\Log;


class 
paypage
{

    public  
$paytabsinit,
        
$paytabs_core,
        
$paytabs_api,
        
$follow_transaction,
        
$laravel_version,
        
$package_version;
    function 
__construct()
    {
        
$this->paytabsinit = new paytabs_core();
        
$this->paytabs_core = new PaytabsRequestHolder();
        
$this->paytabs_core_token = new PaytabsTokenHolder();
        
$this->paytabs_api PaytabsApi::getInstance(config('paytabs.region'), config('paytabs.profile_id'), config('paytabs.server_key'));
        
$this->follow_transaction = new PaytabsFollowupHolder();
        
$this->laravel_version app()::VERSION;
        
$this->package_version '1.4.0';
    }

    public function 
sendPaymentCode($code)
    {
        
$this->paytabs_core->set01PaymentCode($code);
        return 
$this;
    }

    public function 
sendTransaction($transaction,$tran_class)
    {
        
$this->paytabs_core->set02Transaction($transaction,$tran_class);
        return 
$this;
    }

    public function 
sendCart($cart_id$amount$cart_description)
    {
        
$this->paytabs_core->set03Cart($cart_idconfig('paytabs.currency'), $amount$cart_description);
        return 
$this;
    }

    public function 
sendCustomerDetails($name$email$phone$address$city$state$country$zip$ip)
    {
        
$this->paytabs_core->set04CustomerDetails($name$email$phone$address$city$state$country$zip$ip);
        return 
$this;
    }
    
    public function 
sendShippingDetails($name$email$phone$address$city$state$country$zip$ip)
    {
        
$this->paytabs_core->set05ShippingDetails(false$name$email$phone$address$city$state$country$zip$ip);
        return 
$this;
    }

    public function 
shipping_same_billing()
    {
        
$this->paytabs_core->set05ShippingDetails(true);
        return 
$this;
    }

    public function 
sendHideShipping($on false)
    {
        
$this->paytabs_core->set06HideShipping($on);
        return 
$this;
    }

    public function 
sendURLs($return_url$callback_url)
    {
        
$this->paytabs_core->set07URLs($return_url$callback_url);
        return 
$this;
    }

    public function 
sendLanguage($language)
    {
        
$this->paytabs_core->set08Lang($language);
        return 
$this;
    }

    public function 
sendFramed($on false)
    {
        
$this->paytabs_core->set09Framed($on);
        return 
$this;
    }

    public function 
sendTokinse($on false)
    {
        
$this->paytabs_core->set10Tokenise($on);
        return 
$this;
    }

    public function 
sendToken($token$tran_ref)
    {
        
$this->paytabs_core_token->set20Token($token$tran_ref);
        return 
$this
    }

    public function 
sendUserDefined(array $user_defined = [])
    {
        
$this->paytabs_core->set100userDefined($user_defined);
        return 
$this
    }

    public function 
create_pay_page()
    {
        
$this->paytabs_core->set99PluginInfo('Laravel',8,'1.4.0');
        
$pp_params $this->paytabs_core->pt_build();
        
$response $this->paytabs_api->create_pay_page($pp_params);

        if (
$response->success) {
            
$redirect_url $response->redirect_url;
            if (isset(
$pp_params['framed']) &&  $pp_params['framed'] == true)
            {
                return 
$redirect_url;
            }
            return 
Redirect::to($redirect_url);
        }
        else {
            
Log::channel('PayTabs')->info(json_encode($response));
            
print_r(json_encode($response));
        }
    }


    public function 
refund($tran_ref,$order_id,$amount,$refund_reason)
    {
        
$this->follow_transaction->set02Transaction(PaytabsEnum::TRAN_TYPE_REFUND)
            ->
set03Cart($order_idconfig('paytabs.currency'), $amount$refund_reason)
            ->
set30TransactionInfo($tran_ref)
            ->
set99PluginInfo('Laravel'$this->laravel_version$this->package_version);

        
$refund_params $this->follow_transaction->pt_build();
        
$result $this->paytabs_api->request_followup($refund_params);

        
$success $result->success;
        
$message $result->message;
        
$pending_success $result->pending_success;

        if (
$success) {
            
$payment $this->paytabs_api->verify_payment($tran_ref);
            if ((float)
$amount < (float)$payment->cart_amount) {
                
$status 'partially_refunded';
            } else {
                
$status 'refunded';
            }
            return 
response()->json(['status' => $status], 200);
        } else if (
$pending_success) {
            
Log::channel('PayTabs')->info(json_encode($result));
            
print_r('some thing went wrong with integration' $message);
        }

    }

    public function 
capture($tran_ref,$order_id,$amount,$capture_description)
    {
        
$this->follow_transaction->set02Transaction(PaytabsEnum::TRAN_TYPE_CAPTURE)
            ->
set03Cart($order_idconfig('paytabs.currency'), $amount$capture_description)
            ->
set30TransactionInfo($tran_ref)
            ->
set99PluginInfo('Laravel'$this->laravel_version$this->package_version);

        
$capture_params $this->follow_transaction->pt_build();
        
$result $this->paytabs_api->request_followup($capture_params);

        
$success $result->success;
        
$message $result->message;
        
$pending_success $result->pending_success;

        if (
$success) {
            
$payment $this->paytabs_api->verify_payment($tran_ref);
            if ((float)
$amount < (float)$payment->cart_amount) {
                
$status 'partially_captured';
            } else {
                
$status 'captured';
            }
            return 
response()->json(['status' => $status], 200);
        } else if (
$pending_success) {
            
Log::channel('PayTabs')->info(json_encode($result));
            
print_r('some thing went wrong with integration' $message);
        }
    }

    public function 
void($tran_ref,$order_id,$amount,$void_description)
    {
        
$this->follow_transaction->set02Transaction(PaytabsEnum::TRAN_TYPE_VOID)
            ->
set03Cart($order_idconfig('paytabs.currency'), $amount$void_description)
            ->
set30TransactionInfo($tran_ref)
            ->
set99PluginInfo('Laravel'$this->laravel_version$this->package_version);

        
$void_params $this->follow_transaction->pt_build();
        
$result $this->paytabs_api->request_followup($void_params);

        
$success $result->success;
        
$message $result->message;
        
$pending_success $result->pending_success;

        if (
$success) {
            
$payment $this->paytabs_api->verify_payment($tran_ref);
            if ((float)
$amount < (float)$payment->cart_amount) {
                
$status 'partially_voided';
            } else {
                
$status 'voided';
            }
            return 
response()->json(['status' => $status], 200);
        } else if (
$pending_success) {
            
Log::channel('PayTabs')->info(json_encode($result));
            
print_r('some thing went wrong with integration' $message);
        }
    }

    public function 
queryTransaction($tran_ref)
    {
        
$transaction $this->paytabs_api->verify_payment($tran_ref);
        return 
$transaction;
    }
}


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