Jump to content

Strict standards: Declaration of Ccavenue::validateOrder() should be compatible with that of Payment


Recommended Posts

when installing the ccavenue module i get this error 

 

Strict standards: Declaration of Ccavenue::validateOrder() should be compatible with that of Payment in in D:\Program Files\ wamp\www\sample\modules\ccavenue\ccavenue.php on line 7

 

This is my code ,which i have mentioned below

 

ccavenue.php

line 6 class Ccavenue extends PaymentModule
line 7 {
              .....
              ......
             public function validateOrder($id_cart, $id_order_state, $amountPaid, $paymentMethod = 'Unknown', $message = NULL, $extraVars = array(), $currency_special = NULL, $dont_touch_amount = false, $secure_key = false ,$shop=null)
            {
              ........
               ........
            parent::validateOrder($id_cart, $id_order_state, $amountPaid, $paymentMethod, $message, $extraVars, $currency_special, $dont_touch_amount, $secure_key,$shop = null,0, $cc_discount);
            }
         }
why do i get this error .
 
 
 
Link to comment
Share on other sites

  • 2 months later...

why do you have 2 extra parameters in your parent call?  what is 0 and $cc_discount?

 

parent::validateOrder($id_cart, $id_order_state, $amountPaid, $paymentMethod, $message, $extraVars, $currency_special, $dont_touch_amount, $secure_key,$shop = null,0, $cc_discount);

Link to comment
Share on other sites

×
×
  • Create New...