Model/PayPalRequest/SetExpressCheckoutRequestBuilder.php
public function addDescriptionParams()
    {
        $basket = $this->getBasket();
        $config = $this->getPayPalConfig();
        $request = $this->getPayPalRequest();

        // description
        $shopNameFull = $config->getBrandName();
        $shopName = substr($shopNameFull, 0, 70);
        if ($shopNameFull != $shopName) {
            $shopName .= "...";
        }

        $subj = sprintf($this->getLang()->translateString("OEPAYPAL_ORDER_SUBJECT"), $shopName, $basket->getFPrice(), $basket->getBasketCurrency()->name);
        $request->setParameter("PAYMENTREQUEST_0_DESC", $subj);
        $request->setParameter("PAYMENTREQUEST_0_CUSTOM", $subj);
    }
public function addDescriptionParams()
    {
        $basket = $this->getBasket();
        $config = $this->getPayPalConfig();
        $request = $this->getPayPalRequest();

        // description
        $shopNameFull = $config->getBrandName();
        $shopName = substr($shopNameFull, 0, 70);
        if ($shopNameFull != $shopName) {
            $shopName .= "...";
        }

        $subj = sprintf($this->getLang()->translateString("OEPAYPAL_ORDER_SUBJECT"), $shopName, $basket->getFPrice(), $basket->getBasketCurrency()->name);
        $request->setParameter("PAYMENTREQUEST_0_DESC", $subj);
        $request->setParameter("PAYMENTREQUEST_0_CUSTOM", $subj);
    }
public function addDescriptionParams ( ) { $ basket = $ this -> getBasket ( ) ; $ config = $ this -> getPayPalConfig ( ) ; $ request = $ this -> getPayPalRequest ( ) ; // description $ shopNameFull = $ config -> getBrandName ( ) ; $ shopName = substr ( $ shopNameFull , 0 , 70 ) ; if ( $ shopNameFull != $ shopName ) { $ shopName .= "..." ; } $ subj = sprintf ( $ this -> getLang ( ) -> translateString ( "OEPAYPAL_ORDER_SUBJECT" ) , $ shopName , $ basket -> getFPrice ( ) , $ basket -> getBasketCurrency ( ) -> name ) ; $ request -> setParameter ( "PAYMENTREQUEST_0_DESC" , $ subj ) ; $ request -> setParameter ( "PAYMENTREQUEST_0_CUSTOM" , $ subj ) ; }
Sets transaction description parameters.
Sets transaction description parameters .