When selecting a "previously used card" in the checkout form, and hitting "Review Order", the payment information fields are left blank. It appears the only way you can pass card information to the Review form is by entering a new card.

Anyone else having this issue? I will be troubleshooting over the weekend and will provide a patch if I'm able to fix it.

CommentFileSizeAuthor
#2 1066368.install.update6203.patch1.36 KBtorgospizza

Comments

torgospizza’s picture

Title: Can't use stored cards (no card information passed from checkout to review) » Change schema for order_id; storing cim_ppid breaks otherwise

Figured 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.

torgospizza’s picture

Title: Change schema for order_id; storing cim_ppid breaks otherwise » order_id field in {uc_payment_cim} should be int not mediumint; storing cim_ppid breaks otherwise
Status: Active » Needs review
StatusFileSize
new1.36 KB

Better 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).

m.stenta’s picture

Status: Needs review » Closed (fixed)

Thanks 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!