src/Client.php
public function refundOrder(Order $order, $currency, array $params = [])
    {
        $params['currency'] = $currency;

        $this->postAndMap($order->getResourcePath().'/refund', $params, 'toOrder', $order);
    }
public function refundOrder(Order $order, $currency, array $params = [])
    {
        $params['currency'] = $currency;

        $this->postAndMap($order->getResourcePath().'/refund', $params, 'toOrder', $order);
    }
public function refundOrder ( Order $ order , $ currency , array $ params = [ ] ) { $ params [ 'currency' ] = $ currency ; $ this -> postAndMap ( $ order -> getResourcePath ( ) . '/refund' , $ params , 'toOrder' , $ order ) ; }
Refunds an order.

Supported parameters include:

* mispayment (string)
* refund_address (string)
Refunds an order .