Recurly_Transaction::refund PHP Method

refund() public method

Refund a previous, successful transaction
public refund ( $amountInCents = null )
    public function refund($amountInCents = null)
    {
        $uri = $this->uri();
        if (!is_null($amountInCents)) {
            $uri .= '?amount_in_cents=' . strval(intval($amountInCents));
        }
        $this->_save(Recurly_Client::DELETE, $uri);
    }