Jump to content

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!

Share this post

Link to post
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.

Share this post

Link to post
Share on other sites

If someone feels competent enough in PHP and osC to troubleshoot this one for me / with me, I am willing to pay.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now