%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/graphicd/public_html/vebto/vendor/omnipay/stripe/src/Message/
Upload File :
Create Path :
Current File : /home/graphicd/public_html/vebto/vendor/omnipay/stripe/src/Message/AttachSourceRequest.php

<?php
/**
 * CreateSourceRequest
 */
namespace Omnipay\Stripe\Message;

/**
 * Class CreateSourceRequest
 *
 * TODO : Add docblock
 */
class AttachSourceRequest extends AbstractRequest
{
    /**
     * @return mixed
     */
    public function getData()
    {
        $this->validate('customerReference', 'source');

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

        return $data;
    }

    /**
     * @inheritdoc
     *
     * @return string The endpoint for the create token request.
     */
    public function getEndpoint()
    {
        return $this->endpoint . '/customers/' . $this->getCustomerReference() . '/sources';
    }
}

Zerion Mini Shell 1.0