Svea/WebService/Payment/WebServicePayment.php
/**
     * Format Order row with svea_soap package and calculate vat
     * @param type $rows
     * @return \SveaCreateOrderInformation
     */
Format Order row with svea_soap package and calculate vat
@param type $rows
@return \SveaCreateOrderInformation
Format Order row with svea_soap package and calculate vat @param type $rows @return \ SveaCreateOrderInformation
protected function formatOrderInformationWithOrderRows($rows) {
        $orderInformation = new WebServiceSoap\SveaCreateOrderInformation(
                (isset($this->order->campaignCode) ? $this->order->campaignCode : ""),
                (isset($this->order->sendAutomaticGiroPaymentForm) ? $this->order->sendAutomaticGiroPaymentForm : 0)
            )
        ;
        $formatter = new WebServiceRowFormatter($this->order);
        $formattedOrderRows = $formatter->formatRows();
        foreach ($formattedOrderRows as $formattedOrderRow) {
            $orderInformation->addOrderRow($formattedOrderRow);
        }
        return $orderInformation;
    }
protected function formatOrderInformationWithOrderRows ( $ rows ) { $ orderInformation = new WebServiceSoap \ SveaCreateOrderInformation ( ( isset ( $ this -> order -> campaignCode ) ? $ this -> order -> campaignCode : " " ) , ( isset ( $ this -> order -> sendAutomaticGiroPaymentForm ) ? $ this -> order -> sendAutomaticGiroPaymentForm : 0 ) ) ; $ formatter = new WebServiceRowFormatter ( $ this -> order ) ; $ formattedOrderRows = $ formatter -> formatRows ( ) ; foreach ( $ formattedOrderRows as $ formattedOrderRow ) { $ orderInformation -> addOrderRow ( $ formattedOrderRow ) ; } return $ orderInformation ; }
Format Order row with svea_soap package and calculate vat
 @param type $rows
 @return \SveaCreateOrderInformation
Format Order row with svea_soap package and calculate vat @param type $rows @return \ SveaCreateOrderInformation
// rewrite order rows to soap_class order rows