troyphp Posted November 26, 2013 Share Posted November 26, 2013 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 More sharing options...
BSS Posted February 22, 2014 Share Posted February 22, 2014 Can you share your module in a pm with me to look after the issue? Link to comment Share on other sites More sharing options...
bellini13 Posted February 23, 2014 Share Posted February 23, 2014 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 More sharing options...
Recommended Posts