Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

aboyz

Archived
  • Posts

    267
  • Joined

  • Last visited

Profile Information

  • Real Name
    David Lee

aboyz's Achievements

  1. Ken wei, I'm having the same issues, Test is working fine, but everything i set it to live mode, and test it with a real credit card, it always say that the credit card is invalid, please check your card . Can someone help me? I'm still using the OLD SDK which will expire sept 2009. Can someone help me? I signed up with a new payflow and the login i use is pilot-payflowpro.paypal.com = testing payflowpro.paypal.com = live
  2. This is my cc_validation.php <?php /* $Id: cc_validation.php,v 1.3 2003/02/12 20:43:41 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ class cc_validation { var $cc_type, $cc_number, $cc_expiry_month, $cc_expiry_year, $phone_number , $cc_cvv; function validate($number, $expiry_m, $expiry_y, $phone_number="" , $cc_cvv ) { $this->cc_number = ereg_replace('[^0-9]', '', $number); if (ereg('^4[0-9]{12}([0-9]{3})?$', $this->cc_number)) { $this->cc_type = 'Visa'; } elseif (ereg('^5[1-5][0-9]{14}$', $this->cc_number)) { $this->cc_type = 'Master Card'; } elseif (ereg('^3[47][0-9]{13}$', $this->cc_number)) { $this->cc_type = 'American Express'; } elseif (ereg('^3(0[0-5]|[68][0-9])[0-9]{11}$', $this->cc_number)) { $this->cc_type = 'Diners Club'; } elseif (ereg('^6011[0-9]{12}$', $this->cc_number)) { $this->cc_type = 'Discover'; } elseif (ereg('^(3[0-9]{4}|2131|1800)[0-9]{11}$', $this->cc_number)) { $this->cc_type = 'JCB'; } elseif (ereg('^5610[0-9]{12}$', $this->cc_number)) { $this->cc_type = 'Australian BankCard'; } else { return -1; } if ( is_numeric($expiry_m) && ($expiry_m > 0) && ($expiry_m < 13) ) { $this->cc_expiry_month = $expiry_m; } else { return -2; } if( strlen( $cc_cvv ) == 3 || strlen( $cc_cvv ) == 4 && is_numeric( $cc_cvv ) ){ $this->cc_cvv = $cc_cvv; } else{ return -6; } $current_year = date('Y'); $expiry_y = substr($current_year, 0, 2) . $expiry_y; if (is_numeric($expiry_y) && ($expiry_y >= $current_year) && ($expiry_y <= ($current_year + 10))) { $this->cc_expiry_year = $expiry_y; } else { return -3; } if ($expiry_y == $current_year) { if ($expiry_m < date('n')) { return -4; } } $phone = str_replace("-", "", $phone_number); if (strlen($phone)==10) $this->phone_number = $phone; else return -5; return $this->is_valid(); } function is_valid() { $cardNumber = strrev($this->cc_number); $numSum = 0; for ($i=0; $i<strlen($cardNumber); $i++) { $currentNum = substr($cardNumber, $i, 1); // Double every second digit if ($i % 2 == 1) { $currentNum *= 2; } // Add digits of 2-digit numbers together if ($currentNum > 9) { $firstNum = $currentNum % 10; $secondNum = ($currentNum - $firstNum) / 10; $currentNum = $firstNum + $secondNum; } $numSum += $currentNum; } // If the total has no remainder it's OK return ($numSum % 10 == 0); } } ?> Only differnet is i added the phone number for validation anyway to fix this? without chaning the cc_validation.?
  3. Thanks!! i'll try it out!! Will update.
  4. I tried this and I'm getting this error. Old version of payflow is working fine, but I gotta use the /bin and /certs file for the payflow modules. and they says they will not support it 2009 and discontinue so I'm trying this module and its not working. any help will be appreicilate. errno: 2 errstr: Missing argument 5 for cc_validation::validate(), called in /home/www/includes/modules/payment/paypal_payflow_pro.php on line 115 and defined errfile: /home/www/includes/classes/cc_validation.php errline: 16 errcontext: SERVER INFO: Array ( [HTTP_HOST] => test.mydomain.com [HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5 [HTTP_ACCEPT_ENCODING] => gzip,deflate [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7 [HTTP_KEEP_ALIVE] => 300 [HTTP_CONNECTION] => keep-alive [HTTP_REFERER] => http://test.mydomain.com/checkout_confirmation.php [HTTP_COOKIE] => __utmz=31074234.1213910578.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmz=172075839.1219774548.49.3.utmcsr=test.mydomain.com|utmccn=(referral)|utmc md=referral|utmcct=/; __utma=31074234.337618847028810500.1213910578.1222295879.1222298046.185; bn_u=32575558; WT_FPC=id=24c5d458d2be5b9437d1213906977293:lv=1222295317484:ss=1222294446009; cookie_test=please_accept_for_session; __utma=172075839.2014671464289330700.1214000800.1221700877.1221772197.76; osCsid=2tg3jga5j72q7ad7ej2ku2h422; __utmc=31074234; __utmb=31074234.25.10.1222298046 [CONTENT_TYPE] => application/x-www-form-urlencoded [CONTENT_LENGTH] => 0 [PATH] => /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin [sERVER_SIGNATURE] => <address>Apache/2.0.52 (Red Hat) Server at test.mydomain.com Port 80</address> [sERVER_SOFTWARE] => Apache/2.0.52 (Red Hat) [sERVER_NAME] => test.mydomain.com [sERVER_ADDR] => 192.168.1.212 [sERVER_PORT] => 80 [REMOTE_ADDR] => 74.7.61.2 [DOCUMENT_ROOT] => /home/www/ [sERVER_ADMIN] => root@localhost [sCRIPT_FILENAME] => /home/www/checkout_process.php [REMOTE_PORT] => 36960 [REMOTE_USER] => stage [AUTH_TYPE] => Basic [GATEWAY_INTERFACE] => CGI/1.1 [sERVER_PROTOCOL] => HTTP/1.1 [REQUEST_METHOD] => POST [QUERY_STRING] => [REQUEST_URI] => /checkout_process.php [sCRIPT_NAME] => /checkout_process.php [php_SELF] => /checkout_process.php [php_AUTH_USER] => pokgai [php_AUTH_PW] => pokgai111 [REQUEST_TIME] => 1222298919 [argv] => Array ( ) [argc] => 0 ) POST: Array ( ) DEBUG BACKTRACE: Array ( [0] => Array ( [file] => /home/www/includes/classes/cc_validation.php [line] => 16 [function] => mydomain_error_handler [args] => Array ( [0] => 2 [1] => Missing argument 5 for cc_validation::validate(), called in /home/www/includes/modules/payment/paypal_payflow_pro.php on line 115 and defined [2] => /home/www/includes/classes/cc_validation.php [3] => 16 [4] => Array ( [number] => [expiry_m] => [expiry_y] => [phone_number] => ) ) ) [1] => Array ( [file] => /home/www/includes/modules/payment/paypal_payflow_pro.php [line] => 115 [function] => validate [class] => cc_validation [object] => cc_validation Object ( [cc_type] => [cc_number] => [cc_expiry_month] => [cc_expiry_year] => [phone_number] => [cc_cvv] => ) [type] => -> [args] => Array ( [0] => [1] => [2] => ) ) [2] => Array ( [file] => /home/www/includes/classes/payment.php [line] => 170 [function] => before_process [class] => paypal_payflow_pro [object] => paypal_payflow_pro Object ( => paypal_payflow_pro [title] => PayPal Payflow Pro [description] => <center><b><h2>PayPal Payflow Pro for osCommerce 2.2MS2+</h2><i>Developed and maintained by:</i><br><a href="http://www.oscommerce.com/forums/index.php?showuser=80233">Brian Burton (dynamoeffects)</a></b></center> [enabled] => 1 [public_title] => Secure Credit Card [sort_order] => 0 ) [type] => -> [args] => Array ( ) ) [3] => Array ( [file] => /home/www/checkout_process.php [line] => 121 [function] => before_process [class] => payment [object] => payment Object ( [modules] => Array ( [0] => paypal_payflow_pro.php ) [selected_module] => paypal_payflow_pro ) [type] => -> [args] => Array ( ) ) )
  5. Hi, I'm getting the following error on my oscommerce store. I searched the forum and I have some post related to this issues. But my issues is that this issues only happen once every other day or so. Not so often. But I think i'm loosing sales on this. Customer can check out find like I says, but this only happen some time. I cannot seem to find out a pattern for this or duplicate the error on my own. Was hoping something actually find out the cause of this. One thing I find out is when that error appear. If you re entering it for the second time or 3rd time it will go thru. So is it an issues with payflow? or oscommerce bug? thanks Payflow Credit Card Error!: The first four digits of the number entered are If that number is correct, we do not accept that type of credit card.
  6. Hi, I already setup a usps webtool account and everything is working fine, my questions is do i need to put weight on all my product? If so that is not an issues, but if there is a fix that will be GREAT. Anyway, All my shipping is flat rate. Is there a way just to tell usps to charge a flat rate? Anyone know a way to do this? thanks
  7. Wondering if this is possible. I have an account on usps. Is there a api module or addon, that will auto assign a tracking number after checkout is complete? So I don't have to enter each tracking number for each order. The reason I want to do this because all my shipping are flat rate. Anyone know if this is possible if so how? thanks
  8. I installed master product v2. I tested it and some part are not working. Anyone got any solution to this, Am I missing some step in the installation. Please advise. First is that slave product are not being hidden, when i select hide product in the admin area. Second, is when you select one of the slave product to buy now. It doesn't check out the slave product name, instead it just check it out as the master product name. I think i'm missing a line somewhere. Can someone help me out. thanks
  9. Can someone give me a few pointer. Right now, I'm download the master product here http://www.oscommerce.com/community/contributions,1681 Master Products - 1.1.5 Master Products Attributes Add-on Rev4 Those are the two i installed do i need to install Master Product Slave Attributes Is there a howto or can someone help me out. Walk me thru how to get this done. What I want to do is this. I sell shoes. RED BOOT (main boot) What i want to do is under RED BOOT, i want to have size RED BOOT size 5 = 5 quantity RED BOOT size 6 = 10 quantity RED BOOT size 7 = 5 quantity So when a customer click on the RED BOOT and choose say size5 and check out it'll deduct it from RED BOOT size 5 = 4 quanity left say RED BOOT size 5 = 0 quantity, customer can't order this no more. Can someone walk me thru how to do this. thanks
  10. anyone?? please can someone help me plesae.. thanks
  11. Hi, I was wondering if anyone be kind enough to help me install option type2, I got alot of other modules installed and i don't want to mess it up. If someone is kindly and have some time, and willing to help me install the option type 2 I will greatly appreiciate this. Please pm me aim = AboyZ or pm me and send me your AIM or MSN thanks I'm willing to pay $10 bucks via paypal. thanks
  12. i searched for loaded and nothing came up for the contribution, I heard something about that name. daman i forogt. can someone please point out some name for me.. so i can search for it easies.. thanks
  13. i know there are a loaded version already.. Alot of the contribution which i don't need, I just need a certain of them, If someone willing to help me install this contribution, I'll donate $20 paypal for the time and help. :)
  14. Hi, I was wondering if anyone created like a list of all in one contributions, Like the most popular one? I seen it here somewhere but i forgot the site or link. Can someone give me the link or know where i can grab myself a copy.. I was wondering if anyone done like a list of contribution, in which they can release to us to download instead of having us install it all. because some contribution is just too hard. If you have this, Please be kind enough to share it. Please pm me so i can grab a copy. I'm willing to donate $20 bucks for all the contributioin. Please let me know if you can do this. Or if someone can help me install around 5 contribuition, I'll donate $20 for the time. As that is all i got :(. Please pm me AIM = AboyZ thanks
×
×
  • Create New...