models/oxpspaymorrowoxbasket.php
protected function _getPaymorrowVouchersSummary( $iLineItem )
    {
        $sPmPrefix = OxpsPaymorrowOxBasketItem::getPaymorrowBasketSummaryLineItemPrefix( $iLineItem );

        /** @var oxPrice $oVoucher */
        $oVoucher = $this->getVoucherDiscount();

        return array(
            $sPmPrefix . 'quantity'       => 1,
            $sPmPrefix . 'articleId'      => 'Voucher',
            $sPmPrefix . 'name'           => 'VoucherCosts',
            $sPmPrefix . 'type'           => 'VOUCHER',
            $sPmPrefix . 'unitPriceGross' => (double) $oVoucher->getBruttoPrice(),
            $sPmPrefix . 'grossAmount'    => (double) $oVoucher->getBruttoPrice(),
            $sPmPrefix . 'vatAmount'      => 0.0,
            $sPmPrefix . 'vatRate'        => 0.0,
        );
    }
protected function _getPaymorrowVouchersSummary( $iLineItem )
    {
        $sPmPrefix = OxpsPaymorrowOxBasketItem::getPaymorrowBasketSummaryLineItemPrefix( $iLineItem );

        /** @var oxPrice $oVoucher */
        $oVoucher = $this->getVoucherDiscount();

        return array(
            $sPmPrefix . 'quantity'       => 1,
            $sPmPrefix . 'articleId'      => 'Voucher',
            $sPmPrefix . 'name'           => 'VoucherCosts',
            $sPmPrefix . 'type'           => 'VOUCHER',
            $sPmPrefix . 'unitPriceGross' => (double) $oVoucher->getBruttoPrice(),
            $sPmPrefix . 'grossAmount'    => (double) $oVoucher->getBruttoPrice(),
            $sPmPrefix . 'vatAmount'      => 0.0,
            $sPmPrefix . 'vatRate'        => 0.0,
        );
    }
protected function _getPaymorrowVouchersSummary ( $ iLineItem ) { $ sPmPrefix = OxpsPaymorrowOxBasketItem :: getPaymorrowBasketSummaryLineItemPrefix ( $ iLineItem ) ; /** @var oxPrice $oVoucher */ $ oVoucher = $ this -> getVoucherDiscount ( ) ; return array ( $ sPmPrefix . 'quantity' => 1 , $ sPmPrefix . 'articleId' => 'Voucher' , $ sPmPrefix . 'name' => 'VoucherCosts' , $ sPmPrefix . 'type' => 'VOUCHER' , $ sPmPrefix . 'unitPriceGross' => ( double ) $ oVoucher -> getBruttoPrice ( ) , $ sPmPrefix . 'grossAmount' => ( double ) $ oVoucher -> getBruttoPrice ( ) , $ sPmPrefix . 'vatAmount' => 0.0 , $ sPmPrefix . 'vatRate' => 0.0 , ) ; }
Get voucher discount summary.

@param $iLineItem - Paymorrow line item must be passed in order to properly merge line items.

@return array
Get voucher discount summary .