src/Payline/PaylineSDK.php
public function doWebPayment(array $array) 
    {
        $this->formatRequest($array);
        $WSRequest = array(
            'payment'                    => $this->payment($array['payment']),
            'returnURL'                  => $array['returnURL'],
            'cancelURL'                  => $array['cancelURL'],
            'order'                      => $this->order($array['order']),
            'notificationURL'            => $array['notificationURL'],
            'customPaymentTemplateURL'   => $array['customPaymentTemplateURL'],
            'selectedContractList'       => $array['contracts'],
            'secondSelectedContractList' => $array['secondContracts'],
            'privateDataList'            => $this->privateData,
            'languageCode'               => $array['languageCode'],
            'customPaymentPageCode'      => $array['customPaymentPageCode'],
            'buyer'                      => $this->buyer($array['buyer'], $array['shippingAddress'], $array['billingAddress']),
            'owner'                      => $this->owner($array['owner'], $array['ownerAddress']),
            'securityMode'               => $array['securityMode'],
            'contractNumberWalletList'   => $array['walletContracts'],
            'merchantName'               => $array['merchantName'],
            'subMerchant'                => $this->subMerchant($array['subMerchant']),
            'miscData'                   => $array['miscData'],
            'asynchronousRetryTimeout'   => $array['asynchronousRetryTimeout']
        );

        if (isset($array['payment']['mode'])) {
            if (($array['payment']['mode'] == "REC") || ($array['payment']['mode'] == "NX")) {
                $WSRequest['recurring'] = $this->recurring($array['recurring']);
            }
        }
        return $this->webServiceRequest($array, $WSRequest, self::WEB_API, 'doWebPayment');
    }
public function doWebPayment(array $array) 
    {
        $this->formatRequest($array);
        $WSRequest = array(
            'payment'                    => $this->payment($array['payment']),
            'returnURL'                  => $array['returnURL'],
            'cancelURL'                  => $array['cancelURL'],
            'order'                      => $this->order($array['order']),
            'notificationURL'            => $array['notificationURL'],
            'customPaymentTemplateURL'   => $array['customPaymentTemplateURL'],
            'selectedContractList'       => $array['contracts'],
            'secondSelectedContractList' => $array['secondContracts'],
            'privateDataList'            => $this->privateData,
            'languageCode'               => $array['languageCode'],
            'customPaymentPageCode'      => $array['customPaymentPageCode'],
            'buyer'                      => $this->buyer($array['buyer'], $array['shippingAddress'], $array['billingAddress']),
            'owner'                      => $this->owner($array['owner'], $array['ownerAddress']),
            'securityMode'               => $array['securityMode'],
            'contractNumberWalletList'   => $array['walletContracts'],
            'merchantName'               => $array['merchantName'],
            'subMerchant'                => $this->subMerchant($array['subMerchant']),
            'miscData'                   => $array['miscData'],
            'asynchronousRetryTimeout'   => $array['asynchronousRetryTimeout']
        );

        if (isset($array['payment']['mode'])) {
            if (($array['payment']['mode'] == "REC") || ($array['payment']['mode'] == "NX")) {
                $WSRequest['recurring'] = $this->recurring($array['recurring']);
            }
        }
        return $this->webServiceRequest($array, $WSRequest, self::WEB_API, 'doWebPayment');
    }
public function doWebPayment ( array $ array ) { $ this -> formatRequest ( $ array ) ; $ WSRequest = array ( 'payment' => $ this -> payment ( $ array [ 'payment' ] ) , 'returnURL' => $ array [ 'returnURL' ] , 'cancelURL' => $ array [ 'cancelURL' ] , 'order' => $ this -> order ( $ array [ 'order' ] ) , 'notificationURL' => $ array [ 'notificationURL' ] , 'customPaymentTemplateURL' => $ array [ 'customPaymentTemplateURL' ] , 'selectedContractList' => $ array [ 'contracts' ] , 'secondSelectedContractList' => $ array [ 'secondContracts' ] , 'privateDataList' => $ this -> privateData , 'languageCode' => $ array [ 'languageCode' ] , 'customPaymentPageCode' => $ array [ 'customPaymentPageCode' ] , 'buyer' => $ this -> buyer ( $ array [ 'buyer' ] , $ array [ 'shippingAddress' ] , $ array [ 'billingAddress' ] ) , 'owner' => $ this -> owner ( $ array [ 'owner' ] , $ array [ 'ownerAddress' ] ) , 'securityMode' => $ array [ 'securityMode' ] , 'contractNumberWalletList' => $ array [ 'walletContracts' ] , 'merchantName' => $ array [ 'merchantName' ] , 'subMerchant' => $ this -> subMerchant ( $ array [ 'subMerchant' ] ) , 'miscData' => $ array [ 'miscData' ] , 'asynchronousRetryTimeout' => $ array [ 'asynchronousRetryTimeout' ] ) ; if ( isset ( $ array [ 'payment' ] [ 'mode' ] ) ) { if ( ( $ array [ 'payment' ] [ 'mode' ] == "REC" ) || ( $ array [ 'payment' ] [ 'mode' ] == "NX" ) ) { $ WSRequest [ 'recurring' ] = $ this -> recurring ( $ array [ 'recurring' ] ) ; } } return $ this -> webServiceRequest ( $ array , $ WSRequest , self :: WEB_API , 'doWebPayment' ) ; }
calls doWebPayment web service

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