src/SecucardConnect/Product/Payment/Service/PaymentService.php
public function capture($paymentId, $contractId = null)
    {
        $class = $this->resourceMetadata->resourceClass;

        $object = [
            'contract' => $contractId,
        ];

        $res = $this->execute($paymentId, 'capture', null, $object, $class);

        if ($res) {
            return true;
        }

        return false;
    }
public function capture($paymentId, $contractId = null)
    {
        $class = $this->resourceMetadata->resourceClass;

        $object = [
            'contract' => $contractId,
        ];

        $res = $this->execute($paymentId, 'capture', null, $object, $class);

        if ($res) {
            return true;
        }

        return false;
    }
public function capture ( $ paymentId , $ contractId = null ) { $ class = $ this -> resourceMetadata -> resourceClass ; $ object = [ 'contract' => $ contractId , ] ; $ res = $ this -> execute ( $ paymentId , 'capture' , null , $ object , $ class ) ; if ( $ res ) { return true ; } return false ; }
Capture a pre-authorized payment transaction.

@param string $paymentId The payment transaction id
@param string $contractId The id of the contract that was used to create this transaction.
@return bool TRUE if successful, FALSE otherwise.
@throws GuzzleException
@throws ApiError
@throws AuthError
@throws ClientError
Capture a pre - authorized payment transaction .