STEVE!!!!
You are a freakin genius!!! Looks like only one more error left now... I am using the Moneris eSelect payment module API and I get this error as soon as I hit continue to complete the OPC:
Warning: str_repeat() [function.str-repeat]: Second argument has to be greater than or equal to 0 in /oscomm/includes/modeuls/payment/monerisusmpg.php on line 205
Processing Order, Please Wait....
Here is the code behind that
function confirmation() {
global $HTTP_POST_VARS, $order;
$confirmation = array('title' => $this->title . ': ' . $this->cc_card_type,
'fields' => array(array('title' => MODULE_PAYMENT_MONERISUSMPG_TEXT_CREDIT_CARD_OWNER,
'field' => $order->billing['firstname'] . ' ' . $order->billing['lastname']),
array('title' => MODULE_PAYMENT_MONERISUSMPG_TEXT_CREDIT_CARD_NUMBER,
'field' => substr($this->cc_card_number, 0, 4) . str_repeat('X', (strlen($this->cc_card_number) - 8)) . substr($this->cc_card_number, -4)),
array('title' => MODULE_PAYMENT_MONERISUSMPG_TEXT_CREDIT_CARD_EXPIRES,
'field' => strftime('%B, %Y', mktime(0,0,0,$HTTP_POST_VARS['usmpg_cc_expires_month'], 1, '20' . $HTTP_POST_VARS['usmpg_cc_expires_year'])))));
return $confirmation;
}