local/modules/Klikandpay/Klikandpay.php
/**
     * This method is call on Payment loop.
     * Check if the conditions are respected to display this payment method.
     *
     * @return boolean Return True (Display the payment method) or False (Payment method will not be display)
     */
This method is call on Payment loop.
Check if the conditions are respected to display this payment method.

@return boolean Return True (Display the payment method) or False (Payment method will not be display)
This method is call on Payment loop . Check if the conditions are respected to display this payment method . @return boolean Return True ( Display the payment method ) or False ( Payment method will not be display )
public function isValidPayment()
    {
        if(0 === intval(ConfigQuery::read('klikandpay_identifiant')))
        {
            return false;
        }
        $total = $this->getCartTotal();
        if(intval(ConfigQuery::read('klikandpay_montant_min')) > 0 && $total < ConfigQuery::read('klikandpay_montant_min'))
        {
            return false;
        }
        if(intval(ConfigQuery::read('klikandpay_montant_max')) > 0 && $total > ConfigQuery::read('klikandpay_montant_max'))
        {
            return false;
        }
        return true;
    }
public function isValidPayment ( ) { if ( 0 === intval ( ConfigQuery :: read ( 'klikandpay_identifiant' ) ) ) { return false ; } $ total = $ this -> getCartTotal ( ) ; if ( intval ( ConfigQuery :: read ( 'klikandpay_montant_min' ) ) > 0 && $ total < ConfigQuery :: read ( 'klikandpay_montant_min' ) ) { return false ; } if ( intval ( ConfigQuery :: read ( 'klikandpay_montant_max' ) ) > 0 && $ total > ConfigQuery :: read ( 'klikandpay_montant_max' ) ) { return false ; } return true ; }
This method is call on Payment loop.
This method is call on Payment loop .
// Security: missing account id // Retrieve the total amount in the cart without shipping // Minimum amount // Maximum amount // Return True if all conditions are respected