!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/Transfers/   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:     CreateTransferReversalRequest.php (2.32 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * Stripe Reverse Transfer Request (Connect only).
 */

namespace Omnipay\Stripe\Message\Transfers;

use 
Omnipay\Stripe\Message\RefundRequest;

/**
 * Stripe Transfer Reversal Request.
 *
 * When you create a new reversal, you must specify a transfer to create it on.
 *
 * When reversing transfers, you can optionally reverse part of the transfer.
 * You can do so as many times as you wish until the entire transfer has been
 * reversed.
 *
 * Once entirely reversed, a transfer can't be reversed again. This method will
 * return an error when called on an already-reversed transfer, or when trying
 * to reverse more money than is left on a transfer.
 *
 * <code>
 *   // Once the transaction has been authorized, we can capture it for final payment.
 *   $transaction = $gateway->reverseTransfer(array(
 *       'transferReference' => '{TRANSFER_ID}',
 *       'description'       => 'Had to reverse this transfer because of things'
 *   ));
 *   $response = $transaction->send();
 * </code>
 *
 * @link https://stripe.com/docs/api#create_transfer_reversal
 */
class CreateTransferReversalRequest extends RefundRequest
{
    
/**
     * @return mixed
     */
    
public function getTransferReference()
    {
        return 
$this->getParameter('transferReference');
    }

    
/**
     * @param string $value
     *
     * @return \Omnipay\Common\Message\AbstractRequest
     */
    
public function setTransferReference($value)
    {
        return 
$this->setParameter('transferReference'$value);
    }

    
/**
     * {@inheritdoc}
     */
    
public function getData()
    {
        
$this->validate('transferReference');

        
$data = array();

        
// If no amount is passed, then the entire transfer is reversed
        
if ($this->getAmountInteger()) {
            
$data['amount'] = $this->getAmountInteger();
        }

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

        if (
$this->getDescription()) {
            
$data['description'] = $this->getDescription();
        }

        if (
$this->getRefundApplicationFee()) {
            
$data['refund_application_fee'] = 'true';
        }

        return 
$data;
    }

    
/**
     * {@inheritdoc}
     */
    
public function getEndpoint()
    {
        return 
$this->endpoint.'/transfers/'.$this->getTransferReference().'/reversals';
    }
}

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