Jump to content
cinolas

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) {
  ["_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!

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

×