src/Payline/PaylineSDK.php
public function doCredit(array $array)
    {
        $this->formatRequest($array);
        $WSRequest = array(
            'payment'         => $this->payment($array['payment']),
            'card'            => $this->card($array['card']),
            'buyer'           => $this->buyer($array['buyer'], $array['shippingAddress'], $array['billingAddress']),
            'privateDataList' => $this->privateData,
            'order'           => $this->order($array['order']),
            'comment'         => $array['comment'],
            'subMerchant'     => $this->subMerchant($array['subMerchant'])
        );
        return $this->webServiceRequest($array, $WSRequest, self::DIRECT_API, 'doCredit');
    }
public function doCredit(array $array)
    {
        $this->formatRequest($array);
        $WSRequest = array(
            'payment'         => $this->payment($array['payment']),
            'card'            => $this->card($array['card']),
            'buyer'           => $this->buyer($array['buyer'], $array['shippingAddress'], $array['billingAddress']),
            'privateDataList' => $this->privateData,
            'order'           => $this->order($array['order']),
            'comment'         => $array['comment'],
            'subMerchant'     => $this->subMerchant($array['subMerchant'])
        );
        return $this->webServiceRequest($array, $WSRequest, self::DIRECT_API, 'doCredit');
    }
public function doCredit ( array $ array ) { $ this -> formatRequest ( $ array ) ; $ WSRequest = array ( 'payment' => $ this -> payment ( $ array [ 'payment' ] ) , 'card' => $ this -> card ( $ array [ 'card' ] ) , 'buyer' => $ this -> buyer ( $ array [ 'buyer' ] , $ array [ 'shippingAddress' ] , $ array [ 'billingAddress' ] ) , 'privateDataList' => $ this -> privateData , 'order' => $ this -> order ( $ array [ 'order' ] ) , 'comment' => $ array [ 'comment' ] , 'subMerchant' => $ this -> subMerchant ( $ array [ 'subMerchant' ] ) ) ; return $ this -> webServiceRequest ( $ array , $ WSRequest , self :: DIRECT_API , 'doCredit' ) ; }
calls doCredit web service

@param array $array
associative array containing doCredit parameters
calls doCredit web service