!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)

/uploads/script/vendor/omnipay/stripe/src/Message/PaymentIntents/   drwxr-xr-x
Free 13.16 GB of 57.97 GB (22.71%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * Stripe Payment Intents Response.
 */
namespace Omnipay\Stripe\Message\PaymentIntents;

use 
Omnipay\Stripe\Message\Response as BaseResponse;
use 
Omnipay\Common\Message\RedirectResponseInterface;

/**
 * Stripe Payment Intents Response.
 *
 * This is the response class for all payment intents related responses.
 *
 * @see \Omnipay\Stripe\PaymentIntentsGateway
 */
class Response extends BaseResponse implements RedirectResponseInterface
{
    
/**
     * Get the status of a payment intents response.
     *
     * @return string|null
     */
    
public function getStatus()
    {
        if (isset(
$this->data['object']) && 'payment_intent' === $this->data['object']) {
            return 
$this->data['status'];
        }

        return 
null;
    }

    
/**
     * Return true if the payment intent requires confirmation.
     *
     * @return bool
     */
    
public function requiresConfirmation()
    {
        return 
$this->getStatus() === 'requires_confirmation';
    }

    
/**
     * @inheritdoc
     */
    
public function getCardReference()
    {
        if (isset(
$this->data['object']) && 'payment_method' === $this->data['object']) {
            if (!empty(
$this->data['id'])) {
                return 
$this->data['id'];
            }
        }

        if (isset(
$this->data['object']) && 'payment_intent' === $this->data['object']) {
            if (!empty(
$this->data['payment_method'])) {
                return 
$this->data['payment_method'];
            }
        }

        return 
parent::getCardReference();
    }

    
/**
     * @inheritdoc
     */
    
public function getCustomerReference()
    {
        if (isset(
$this->data['object']) && 'payment_method' === $this->data['object']) {
            if (!empty(
$this->data['customer'])) {
                return 
$this->data['customer'];
            }
        }

        if (isset(
$this->data['object']) && 'payment_intent' === $this->data['object']) {
            if (!empty(
$this->data['customer'])) {
                return 
$this->data['customer'];
            }
        }

        return 
parent::getCustomerReference();
    }

    
/**
     * Get the capture method of a payment intents response.
     *
     * @return string|null
     */
    
public function getCaptureMethod()
    {
        if (isset(
$this->data['object']) && 'payment_intent' === $this->data['object']) {
            return 
$this->data['capture_method'];
        }

        return 
null;
    }

    
/**
     * @inheritdoc
     */
    
public function getTransactionReference()
    {
        if (isset(
$this->data['object']) && 'payment_intent' === $this->data['object']) {
            if (!empty(
$this->data['charges']['data'][0]['id'])) {
                return 
$this->data['charges']['data'][0]['id'];
            }
        }

        return 
parent::getTransactionReference();
    }

    
/**
     * @inheritdoc
     */
    
public function isSuccessful()
    {
        if (isset(
$this->data['object']) && 'payment_intent' === $this->data['object']) {
            return 
in_array($this->getStatus(), ['succeeded''requires_capture']);
        }

        return 
parent::isSuccessful();
    }

    
/**
     * @inheritdoc
     */
    
public function isCancelled()
    {
        if (isset(
$this->data['object']) && 'payment_intent' === $this->data['object']) {
            return 
$this->getStatus() === 'canceled';
        }

        return 
parent::isCancelled();
    }

    
/**
     * @inheritdoc
     */
    
public function isRedirect()
    {
        if (
$this->getStatus() === 'requires_action' || $this->getStatus() === 'requires_source_action') {
            
// Currently this gateway supports only manual confirmation, so any other
            // next action types pretty much mean a failed transaction for us.
            
return (!empty($this->data['next_action']) && $this->data['next_action']['type'] === 'redirect_to_url');
        }

        return 
parent::isRedirect();
    }

    
/**
     * @inheritdoc
     */
    
public function getRedirectUrl()
    {
        return 
$this->isRedirect() ? $this->data['next_action']['redirect_to_url']['url'] : parent::getRedirectUrl();
    }

    
/**
     * Get the payment intent reference.
     *
     * @return string|null
     */
    
public function getPaymentIntentReference()
    {
        if (isset(
$this->data['object']) && 'payment_intent' === $this->data['object']) {
            return 
$this->data['id'];
        }

        return 
null;
    }
}

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