Closed (fixed)
Project:
Authorize.net Advanced (CIM) Payment Gateway
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Feb 2011 at 00:09 UTC
Updated:
20 Jun 2012 at 03:14 UTC
Jump to comment: Most recent file
Comments
Comment #1
torgospizzaFigured it out. The order_id column is set to a mediumint, which does not have a high enough max value to compensate for order_id which is usually an int(11). Changing the title to reflect this, will write a patch shortly.
Comment #2
torgospizzaBetter title, and here's a patch. Before this value, every order_id stored in the table would have a value of 8388607.
My patch also updates the table to have order_id be a primary key; this is needed so that we can use db_write_record() to insert new rows and to update them as needed. You should never have more than one ppid per order, as that could lead to returning the wrong value (especially in cases like this).
Comment #3
m.stentaThanks torgosPizza! I tested this out and it works great. Committed to the 6.x-1.x branch (with you as the author).
Let's close some tickets!