Sindbad~EG File Manager

Current Path : /proc/self/cwd/vendor/omnipay/paypal/src/Message/
Upload File :
Current File : //proc/self/cwd/vendor/omnipay/paypal/src/Message/RestRefundCaptureRequest.php

<?php
/**
 * PayPal REST Refund Captured Payment Request
 */

namespace Omnipay\PayPal\Message;

/**
 * PayPal REST Refund Captured Payment Request
 *
 * Use this call to refund a captured payment.
 *
 * @link https://developer.paypal.com/docs/api/#refund-a-captured-payment
 * @see RestAuthorizeRequest
 * @see RestCaptureRequest
 */
class RestRefundCaptureRequest extends AbstractRestRequest
{
    public function getData()
    {
        $this->validate('transactionReference');

        return array(
            'amount' => array(
                'currency' => $this->getCurrency(),
                'total' => $this->getAmount(),
            ),
            'description' => $this->getDescription(),
        );
    }

    public function getEndpoint()
    {
        return parent::getEndpoint() . '/payments/capture/' . $this->getTransactionReference() . '/refund';
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists