local/modules/Klikandpay/Klikandpay.php
/**
     * Method used to replace some elements in the url
     *
     * @param  string $variable
     * @param  \Thelia\Model\Order $order processed order
     *
     * @return string Return's URL with the real values
     */
Method used to replace some elements in the url
@param  string $variable
@param  \Thelia\Model\Order $order processed order

@return string Return's URL with the real values
Method used to replace some elements in the url @param string $variable @param \ Thelia \ Model \ Order $order processed order @return string Return ' s URL with the real values
function returnURL($variable, Order $order)
    {
        $variable = strtolower($variable);
        $variable = str_replace('%order_id%', $order->getId(), $variable);
        $variable = str_replace('%order_ref%', $order->getRef(), $variable);
        $variable = str_replace('%order_hash%', $order->getTransactionRef(), $variable);
        return $variable;
    }
function returnURL ( $ variable , Order $ order ) { $ variable = strtolower ( $ variable ) ; $ variable = str_replace ( '%order_id%' , $ order -> getId ( ) , $ variable ) ; $ variable = str_replace ( '%order_ref%' , $ order -> getRef ( ) , $ variable ) ; $ variable = str_replace ( '%order_hash%' , $ order -> getTransactionRef ( ) , $ variable ) ; return $ variable ; }
Method used to replace some elements in the url
 @param  string $variable
 @param  \Thelia\Model\Order $order processed order
Method used to replace some elements in the url @param string $variable @param \ Thelia \ Model \ Order $order processed order