MangoPay/ApiPayIns.php
public function CreateRefund($payInId, $refund, $idempotencyKey = null)
    {
        return $this->CreateObject('payins_createrefunds', $refund, '\MangoPay\Refund', $payInId, null, $idempotencyKey);
    }
public function CreateRefund($payInId, $refund, $idempotencyKey = null)
    {
        return $this->CreateObject('payins_createrefunds', $refund, '\MangoPay\Refund', $payInId, null, $idempotencyKey);
    }
public function CreateRefund ( $ payInId , $ refund , $ idempotencyKey = null ) { return $ this -> CreateObject ( 'payins_createrefunds' , $ refund , '\MangoPay\Refund' , $ payInId , null , $ idempotencyKey ) ; }
Create refund for pay-in object
@param string $payInId Pay-in identifier
@param \MangoPay\Refund $refund Refund object to create
@return \MangoPay\Refund Object returned by REST API
Create refund for pay - in object