public static function payment($options)
    {
        $api = new Api\Payment();

        if (isset($options['transactionId'])) {
            $api->setTransactionId($options['transactionId']);
        }
        if (isset($options['terminalId'])) {
            $api->setTerminalId($options['terminalId']);
        }

        $result = $api->doRequest();
        return new Result\Payment($result);
    }
public static function payment($options)
    {
        $api = new Api\Payment();

        if (isset($options['transactionId'])) {
            $api->setTransactionId($options['transactionId']);
        }
        if (isset($options['terminalId'])) {
            $api->setTerminalId($options['terminalId']);
        }

        $result = $api->doRequest();
        return new Result\Payment($result);
    }
public static function payment ( $ options ) { $ api = new Api \ Payment ( ) ; if ( isset ( $ options [ 'transactionId' ] ) ) { $ api -> setTransactionId ( $ options [ 'transactionId' ] ) ; } if ( isset ( $ options [ 'terminalId' ] ) ) { $ api -> setTerminalId ( $ options [ 'terminalId' ] ) ; } $ result = $ api -> doRequest ( ) ; return new Result \ Payment ( $ result ) ; }
Send the payment to a terminal

Options:
['transactionId'] The transactionId (result from Transaction::Start())
['terminalId'] The id of the terminal, to get a list of terminals use \Paynl\Instore::getAllTerminals()
@param array $options (see above)

@return Result\Payment
Send the payment to a terminal