Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

CC# lost between checkout_payment and checkout_confirmation


cinolas

Recommended Posts

Posted

I'm using osC 2.3.4 BS GOLD with a modified version of the Gift Voucher add on. I just finished installing and customizing the Gift Voucher add-on for what I need it to do, and there's obviously something wrong in the modifications I did: the credit card number gets blanked out between the payment and confirmation page when I'm checking out with my CC payment method (Moneris).

It's definitely something I changed on the checkout_payment or checkout_confirmation page, or related payment and order total classes.

The CC info is being passed by the post but is not being added to the order object, a vardump shows:

array(85) {
  ["_GET"]=>
  &array(0) {
  }
  ["_POST"]=>
  &array(10) {
    ["formid"]=>
    string(32) "5b219c15c93cb4e93f07353410eec71c"
    ["payment"]=>
    string(12) "moneriscampg"
    ["campg_cc_name"]=>
    string(15) "Nicolas Charest"
    ["campg_cc_number"]=>
    string(16) "47890111##########" (# removed, but it was correct)
    ["campg_cc_expires_month"]=>
    string(2) "01"
    ["campg_cc_expires_year"]=>
    string(2) "##" (# removed, but it was correct)
    ["campg_cvd"]=>
    string(3) "###" (# removed, but it was correct)
    ["cot_gv"]=>
    string(1) "0"
    ["gv_redeem_code"]=>
    string(0) ""

But not in the order object:

["order"]=>
  object(order)#20 (7) {
    ["info"]=>
    array(15) {
      ["order_status"]=>
      string(1) "6"
      ["currency"]=>
      string(3) "CAD"
      ["currency_value"]=>
      string(10) "1.00000000"
      ["payment_method"]=>
      string(30) "Visa, MasterCard or Visa Debit"
      ["cc_type"]=>
      string(0) ""
      ["cc_owner"]=>
      string(0) ""
      ["cc_number"]=>
      string(0) ""
      ["cc_expires"]=>
      string(0) ""

 

How can I troubleshoot this issue? I'm a total hack at php... where in the process do those variables get set? how can I trace them to see when they get reset?

My php error log only logs an error in the Moneris payment module because the cc# is empty.

Any help is greatly appreciated. Cheers!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...