src/SoCommunicator.php
public function SendTransferInitiatorDetails($transferInitiatorDetails, $targetUrl = null)
    {
        if ($transferInitiatorDetails->RemittanceIdentifier != null)
            $transferInitiatorDetails->RemittanceIdentifier = $this->AppendHash($transferInitiatorDetails->RemittanceIdentifier);

        if ($transferInitiatorDetails->UnstructuredRemittanceIdentifier != null)
            $transferInitiatorDetails->UnstructuredRemittanceIdentifier = $this->AppendHash($transferInitiatorDetails->UnstructuredRemittanceIdentifier);

        if ($targetUrl == null)
            $targetUrl = 'https://routing.eps.or.at/appl/epsSO/transinit/eps/v2_5';

        $data = $transferInitiatorDetails->GetSimpleXml();
        $xmlData = $data->asXML();
        $response = $this->PostUrl($targetUrl, $xmlData, 'Send payment order');

        XmlValidator::ValidateEpsProtocol($response);
        return $response;
    }
public function SendTransferInitiatorDetails($transferInitiatorDetails, $targetUrl = null)
    {
        if ($transferInitiatorDetails->RemittanceIdentifier != null)
            $transferInitiatorDetails->RemittanceIdentifier = $this->AppendHash($transferInitiatorDetails->RemittanceIdentifier);

        if ($transferInitiatorDetails->UnstructuredRemittanceIdentifier != null)
            $transferInitiatorDetails->UnstructuredRemittanceIdentifier = $this->AppendHash($transferInitiatorDetails->UnstructuredRemittanceIdentifier);

        if ($targetUrl == null)
            $targetUrl = 'https://routing.eps.or.at/appl/epsSO/transinit/eps/v2_5';

        $data = $transferInitiatorDetails->GetSimpleXml();
        $xmlData = $data->asXML();
        $response = $this->PostUrl($targetUrl, $xmlData, 'Send payment order');

        XmlValidator::ValidateEpsProtocol($response);
        return $response;
    }
public function SendTransferInitiatorDetails ( $ transferInitiatorDetails , $ targetUrl = null ) { if ( $ transferInitiatorDetails -> RemittanceIdentifier != null ) $ transferInitiatorDetails -> RemittanceIdentifier = $ this -> AppendHash ( $ transferInitiatorDetails -> RemittanceIdentifier ) ; if ( $ transferInitiatorDetails -> UnstructuredRemittanceIdentifier != null ) $ transferInitiatorDetails -> UnstructuredRemittanceIdentifier = $ this -> AppendHash ( $ transferInitiatorDetails -> UnstructuredRemittanceIdentifier ) ; if ( $ targetUrl == null ) $ targetUrl = 'https://routing.eps.or.at/appl/epsSO/transinit/eps/v2_5' ; $ data = $ transferInitiatorDetails -> GetSimpleXml ( ) ; $ xmlData = $ data -> asXML ( ) ; $ response = $ this -> PostUrl ( $ targetUrl , $ xmlData , 'Send payment order' ) ; XmlValidator :: ValidateEpsProtocol ( $ response ) ; return $ response ; }
Sends the given TransferInitiatorDetails to the Scheme Operator
@param TransferInitiatorDetails $transferInitiatorDetails
@param string $targetUrl url with preselected bank identifier
@throws XmlValidationException when the returned BankResponseDetails does not validate against XSD
@throws \UnexpectedValueException when using security suffix without security seed
@return string BankResponseDetails
Sends the given TransferInitiatorDetails to the Scheme Operator