src/Payline/PaylineSDK.php
public function addOrderDetail(array $newOrderDetail)
    {
        $orderDetail = new OrderDetail();
        if ($newOrderDetail) {
            foreach ($newOrderDetail as $k => $v) {
                if (array_key_exists($k, $orderDetail) && (strlen($v))) {
                    $orderDetail->$k = $v;
                }
            }
        }
        $this->orderDetails[] = new \SoapVar($orderDetail, SOAP_ENC_OBJECT, self::SOAP_ORDERDETAIL, self::PAYLINE_NAMESPACE);
    }
public function addOrderDetail(array $newOrderDetail)
    {
        $orderDetail = new OrderDetail();
        if ($newOrderDetail) {
            foreach ($newOrderDetail as $k => $v) {
                if (array_key_exists($k, $orderDetail) && (strlen($v))) {
                    $orderDetail->$k = $v;
                }
            }
        }
        $this->orderDetails[] = new \SoapVar($orderDetail, SOAP_ENC_OBJECT, self::SOAP_ORDERDETAIL, self::PAYLINE_NAMESPACE);
    }
public function addOrderDetail ( array $ newOrderDetail ) { $ orderDetail = new OrderDetail ( ) ; if ( $ newOrderDetail ) { foreach ( $ newOrderDetail as $ k => $ v ) { if ( array_key_exists ( $ k , $ orderDetail ) && ( strlen ( $ v ) ) ) { $ orderDetail -> $ k = $ v ; } } } $ this -> orderDetails [ ] = new \ SoapVar ( $ orderDetail , SOAP_ENC_OBJECT , self :: SOAP_ORDERDETAIL , self :: PAYLINE_NAMESPACE ) ; }
Adds details about an order item

@param array $newOrderDetail
associative array containing details about an order item
Adds details about an order item