public function addTransactionDetail($amount, $buyOrder, $commerceCode = null)
    {
        $detail = new TransactionDetail();
        $detail->amount = $amount;
        $detail->buyOrder = $buyOrder;
        $detail->commerceCode = $commerceCode ? $commerceCode : SecurityHelper::getCommonName(
            $this->service->getCertificationBag()->getClientCertificate()
        );
        $this->transactionDetails[] = $detail;

        return $this;
    }
public function addTransactionDetail($amount, $buyOrder, $commerceCode = null)
    {
        $detail = new TransactionDetail();
        $detail->amount = $amount;
        $detail->buyOrder = $buyOrder;
        $detail->commerceCode = $commerceCode ? $commerceCode : SecurityHelper::getCommonName(
            $this->service->getCertificationBag()->getClientCertificate()
        );
        $this->transactionDetails[] = $detail;

        return $this;
    }
public function addTransactionDetail ( $ amount , $ buyOrder , $ commerceCode = null ) { $ detail = new TransactionDetail ( ) ; $ detail -> amount = $ amount ; $ detail -> buyOrder = $ buyOrder ; $ detail -> commerceCode = $ commerceCode ? $ commerceCode : SecurityHelper :: getCommonName ( $ this -> service -> getCertificationBag ( ) -> getClientCertificate ( ) ) ; $ this -> transactionDetails [ ] = $ detail ; return $ this ; }
Add transactions details

@param float|int $amount Transaction amount
@param string $buyOrder Order identifier
@param string $commerceCode Commerce's code
@return $this
Add transactions details