public function create($chargeId, $amount = null, array $parameters = [])
    {
        $parameters = array_merge($parameters, array_filter(compact('amount')));

        return $this->_post("charges/{$chargeId}/refunds", $parameters);
    }
public function create($chargeId, $amount = null, array $parameters = [])
    {
        $parameters = array_merge($parameters, array_filter(compact('amount')));

        return $this->_post("charges/{$chargeId}/refunds", $parameters);
    }
public function create ( $ chargeId , $ amount = null , array $ parameters = [ ] ) { $ parameters = array_merge ( $ parameters , array_filter ( compact ( 'amount' ) ) ) ; return $ this -> _post ( "charges/{$chargeId}/refunds" , $ parameters ) ; }
Creates a new refund for the given charge.

@param  string  $chargeId
@param  int  $amount
@param  array  $parameters
@return array
Creates a new refund for the given charge .