Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

CC# lost between checkout_payment and checkout_confirmation


Recommended Posts

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) {
  &array(0) {
  &array(10) {
    string(32) "5b219c15c93cb4e93f07353410eec71c"
    string(12) "moneriscampg"
    string(15) "Nicolas Charest"
    string(16) "47890111##########" (# removed, but it was correct)
    string(2) "01"
    string(2) "##" (# removed, but it was correct)
    string(3) "###" (# removed, but it was correct)
    string(1) "0"
    string(0) ""

But not in the order object:

  object(order)#20 (7) {
    array(15) {
      string(1) "6"
      string(3) "CAD"
      string(10) "1.00000000"
      string(30) "Visa, MasterCard or Visa Debit"
      string(0) ""
      string(0) ""
      string(0) ""
      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!

Link to comment
Share on other sites

You can try using php backtrace to help see what the code is doing. It may not display on all pages so you would need to save the results to a file.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites


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

  • Create New...