src/Twisto/Invoice.php
public function refund($amount)
    {
        $data = array(
            'amount' => (float)$amount
        );
        $data = $this->twisto->requestJson('POST', 'invoice/' . urlencode($this->invoice_id) . '/refund/', $data);
        $this->deserialize($data);
    }
public function refund($amount)
    {
        $data = array(
            'amount' => (float)$amount
        );
        $data = $this->twisto->requestJson('POST', 'invoice/' . urlencode($this->invoice_id) . '/refund/', $data);
        $this->deserialize($data);
    }
public function refund ( $ amount ) { $ data = array ( 'amount' => ( float ) $ amount ) ; $ data = $ this -> twisto -> requestJson ( 'POST' , 'invoice/' . urlencode ( $ this -> invoice_id ) . '/refund/' , $ data ) ; $ this -> deserialize ( $ data ) ; }
Refunds specified amount from the invoice
@param float amount to refund
Refunds specified amount from the invoice