!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/   drwxr-xr-x
Free 13.06 GB of 57.97 GB (22.53%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * Stripe Update Credit Card Request.
 */
namespace Omnipay\Stripe\Message;

/**
 * Stripe Update Credit Card Request.
 *
 * If you need to update only some card details, like the billing
 * address or expiration date, you can do so without having to re-enter
 * the full card details. Stripe also works directly with card networks
 * so that your customers can continue using your service without
 * interruption.
 *
 * When you update a card, Stripe will automatically validate the card.
 *
 * This requires both a customerReference and a cardReference.
 *
 * @link https://stripe.com/docs/api#update_card
 */
class UpdateCardRequest extends AbstractRequest
{
    public function 
getData()
    {
        
$this->validate('cardReference');
        
$this->validate('customerReference');

        if (
$this->getCard()) {
            return 
$this->getCardData();
        } else {
            return array();
        }
    }

    public function 
getEndpoint()
    {
        return 
$this->endpoint.'/customers/'.$this->getCustomerReference().
            
'/cards/'.$this->getCardReference();
    }

    
/**
     * Get the card data.
     *
     * This request uses a slightly different format for card data to
     * the other requests and does not require the card data to be
     * complete in full (or valid).
     *
     * @return array
     */
    
protected function getCardData()
    {
        
$data = array();
        
$card $this->getCard();
        if (!empty(
$card)) {
            if (
$card->getExpiryMonth()) {
                
$data['exp_month'] = $card->getExpiryMonth();
            }
            if (
$card->getExpiryYear()) {
                
$data['exp_year'] = $card->getExpiryYear();
            }
            if (
$card->getName()) {
                
$data['name'] = $card->getName();
            }
            if (
$card->getNumber()) {
                
$data['number'] = $card->getNumber();
            }
            if (
$card->getAddress1()) {
                
$data['address_line1'] = $card->getAddress1();
            }
            if (
$card->getAddress2()) {
                
$data['address_line2'] = $card->getAddress2();
            }
            if (
$card->getCity()) {
                
$data['address_city'] = $card->getCity();
            }
            if (
$card->getPostcode()) {
                
$data['address_zip'] = $card->getPostcode();
            }
            if (
$card->getState()) {
                
$data['address_state'] = $card->getState();
            }
            if (
$card->getCountry()) {
                
$data['address_country'] = $card->getCountry();
            }
        }

        return 
$data;
    }
}

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