lib/recurly/transaction.php
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);
  }
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);
  }
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 ) ; }
Refund a previous, successful transaction

@param int $amountInCents
@throws Recurly_Error
Refund a previous successful transaction