Closed (fixed)
Project:
Commerce Authorize.Net
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2011 at 21:52 UTC
Updated:
11 Oct 2012 at 21:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
dabblela commentedComment #2
eisagholi commentedI had the same issue, tried the patch didn't work because the error was caused by the $pane_values['cardonfile']
So I changed line 186 from:
if (module_exists('commerce_cardonfile') && $payment_method['settings']['cim_cardonfile'] && $pane_values['cardonfile'] !== 'new') {
to:
if (module_exists('commerce_cardonfile') && $payment_method['settings']['cim_cardonfile'] && !empty($pane_values['cardonfile']) && $pane_values['cardonfile'] !== 'new') {
And this worked for me.
Comment #3
stevesmename commentedThe suggested patch is similar to line 208 in the .module file as well.
Comment #4
andyg5000Here's a patch that matches the convention in line 208 as was suggested as a fix in #2. #1 works as well, but best to follow convention already set.
Changing from Bug Report to task since it's just an notice.
Comment #5
andyg5000After further review, both $payment_method['settings']['cim_cardonfile'] & $pane_values['cardonfile'] throw undefined index errors. Attached is a patch that checks both. It also adds an additional check to the line 209.
Comment #6
rickmanelius commentedHi. I'm unable to recreate the php error using Commerce Kickstart 2.0-rc1 and the latest dev version of this module. Can anyone provide instructions on how to recreate it? I'll gladly review/test the patch.
Comment #7
rszrama commentedSorry, unknowingly I already committed a fix for this bug when I turned it up in testing of the transaction type select list on the payment terminal form. : O