!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/vendor/laravel/cashier/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:     Checkout.php (4.16 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Laravel\Cashier;

use 
Illuminate\Contracts\Support\Arrayable;
use 
Illuminate\Contracts\Support\Jsonable;
use 
Illuminate\Contracts\Support\Responsable;
use 
Illuminate\Support\Facades\Redirect;
use 
Illuminate\Support\Facades\View;
use 
JsonSerializable;
use 
Stripe\Checkout\Session;

class 
Checkout implements ArrayableJsonableJsonSerializableResponsable
{
    
/**
     * The Stripe model instance.
     *
     * @var \Illuminate\Database\Eloquent\Model
     */
    
protected $owner;

    
/**
     * The Stripe checkout session instance.
     *
     * @var \Stripe\Checkout\Session
     */
    
protected $session;

    
/**
     * Create a new checkout session instance.
     *
     * @param  \Illuminate\Database\Eloquent\Model  $owner
     * @param  \Stripe\Checkout\Session  $session
     * @return void
     */
    
public function __construct($ownerSession $session)
    {
        
$this->owner $owner;
        
$this->session $session;
    }

    
/**
     * Begin a new checkout session.
     *
     * @param  \Illuminate\Database\Eloquent\Model  $owner
     * @param  array  $sessionOptions
     * @param  array  $customerOptions
     * @return \Laravel\Cashier\Checkout
     */
    
public static function create($owner, array $sessionOptions = [], array $customerOptions = [])
    {
        
$customer $owner->createOrGetStripeCustomer($customerOptions);

        
// Make sure to collect address and name when Tax ID collection is enabled...
        
if ($sessionOptions['tax_id_collection']['enabled'] ?? false) {
            
$sessionOptions['customer_update']['address'] = 'auto';
            
$sessionOptions['customer_update']['name'] = 'auto';
        }

        
$session $owner->stripe()->checkout->sessions->create(array_merge([
            
'customer' => $customer->id,
            
'mode' => 'payment',
            
'success_url' => $sessionOptions['success_url'] ?? route('home').'?checkout=success',
            
'cancel_url' => $sessionOptions['cancel_url'] ?? route('home').'?checkout=cancelled',
            
'payment_method_types' => ['card'],
        ], 
$sessionOptions));

        return new static(
$owner$session);
    }

    
/**
     * Get the view instance for the button.
     *
     * @param  string  $label
     * @param  array  $options
     * @return \Illuminate\Contracts\View\View
     *
     * @deprecated Use the redirect method instead.
     */
    
public function button($label 'Check out', array $options = [])
    {
        return 
View::make('cashier::checkout'array_merge([
            
'label' => $label,
            
'sessionId' => $this->session->id,
            
'stripeKey' => config('cashier.key'),
        ], 
$options));
    }

    
/**
     * Redirect to the checkout session.
     *
     * @return \Illuminate\Http\RedirectResponse
     */
    
public function redirect()
    {
        return 
Redirect::to($this->session->url303);
    }

    
/**
     * Create an HTTP response that represents the object.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Symfony\Component\HttpFoundation\Response
     */
    
public function toResponse($request)
    {
        return 
$this->redirect();
    }

    
/**
     * Get the Checkout Session as a Stripe Checkout Session object.
     *
     * @return \Stripe\Checkout\Session
     */
    
public function asStripeCheckoutSession()
    {
        return 
$this->session;
    }

    
/**
     * Get the instance as an array.
     *
     * @return array
     */
    
public function toArray()
    {
        return 
$this->asStripeCheckoutSession()->toArray();
    }

    
/**
     * Convert the object to its JSON representation.
     *
     * @param  int  $options
     * @return string
     */
    
public function toJson($options 0)
    {
        return 
json_encode($this->jsonSerialize(), $options);
    }

    
/**
     * Convert the object into something JSON serializable.
     *
     * @return array
     */
    
#[\ReturnTypeWillChange]
    public function 
jsonSerialize()
    {
        return 
$this->toArray();
    }

    
/**
     * Dynamically get values from the Stripe object.
     *
     * @param  string  $key
     * @return mixed
     */
    
public function __get($key)
    {
        return 
$this->session->{$key};
    }
}

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