Trustly/Api/signed.php
public function refund($orderid, $amount, $currency) {

		$data = array(
			'OrderID' => $orderid,
			'Amount' => $amount,
			'Currency' => $currency,
		);

		$request = new Trustly_Data_JSONRPCRequest('Refund', $data);
		return $this->call($request);
	}
public function refund($orderid, $amount, $currency) {

		$data = array(
			'OrderID' => $orderid,
			'Amount' => $amount,
			'Currency' => $currency,
		);

		$request = new Trustly_Data_JSONRPCRequest('Refund', $data);
		return $this->call($request);
	}
public function refund ( $ orderid , $ amount , $ currency ) { $ data = array ( 'OrderID' => $ orderid , 'Amount' => $ amount , 'Currency' => $ currency , ) ; $ request = new Trustly_Data_JSONRPCRequest ( 'Refund' , $ data ) ; return $ this -> call ( $ request ) ; }
Call the Refund API Method.

Refunds the customer on a previous deposit.

@see https://trustly.com/en/developer/api#/refund

@param integer $orderid The OrderID of the initial deposit.

@param float $amount The amount to refund the customer with exactly two
decimals. Only digits. Use dot (.) as decimal separator.

@param string currency The currency of the amount to refund the
customer.

@return Trustly_Data_JSONRPCSignedResponse
Call the Refund API Method .