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

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

			$attributes = array(
			);

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

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

			$attributes = array(
			);

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

Captures a previously completed Deposit where
Deposit.Attributes.AuthorizeOnly was set to 1

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

@param integer $orderid The OrderID of the deposit to capture

@param integer $amount The amount to capture with exactly two decimals.
Only digits. Use dot (.) as decimal separator. The amount must be
less than or equal to the authorized amount. If not specified, the
authorized amount will be captured.

@param integer $currency The currency of the amount

@return Trustly_Data_JSONRPCSignedResponse
Call the Capture API Method .