MangoPay/ApiTransfers.php
public function CreateRefund($transferId, $refund, $idempotencyKey = null)
    {
        return $this->CreateObject('transfers_createrefunds', $refund, '\MangoPay\Refund', $transferId, null, $idempotencyKey);
    }
public function CreateRefund($transferId, $refund, $idempotencyKey = null)
    {
        return $this->CreateObject('transfers_createrefunds', $refund, '\MangoPay\Refund', $transferId, null, $idempotencyKey);
    }
public function CreateRefund ( $ transferId , $ refund , $ idempotencyKey = null ) { return $ this -> CreateObject ( 'transfers_createrefunds' , $ refund , '\MangoPay\Refund' , $ transferId , null , $ idempotencyKey ) ; }
Create refund for transfer object
@param string $transferId Transfer identifier
@param \MangoPay\Refund $refund Refund object to create
@return \MangoPay\Refund Object returned by REST API
Create refund for transfer object