cinolas Posted January 6, 2021 Share Posted January 6, 2021 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! Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 7, 2021 Share Posted January 7, 2021 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. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
cinolas Posted January 12, 2021 Author Share Posted January 12, 2021 Thanks @Jack_mcs I did not know of this function, looks promising. Link to comment Share on other sites More sharing options...
cinolas Posted January 12, 2021 Author Share Posted January 12, 2021 If someone feels competent enough in PHP and osC to troubleshoot this one for me / with me, I am willing to pay. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.