Hi,

This is a small non-critical patch that writes the type of card (eg. Visa) back into the database during the transaction, if the customer didn't have to select it at checkout.

This populates $order->payment_details['cc_type'] so it can be used in any custom interfaces that require it.

I don't believe Ubercart actually outputs the card type anywhere except the review step (where it won't show), so the benefit to doing this is only for custom modules that need to know this data.

Thanks

CommentFileSizeAuthor
pxpost_cardtype.patch1.61 KBneilnz

Comments

neilnz’s picture

I just realised my patch is reliant on #528454: No support for Maestro, Laser, Diners, Solo to get the uc_credit_card_types() function. I'll need to rehash this to work when that function doesn't exist...

xurizaemon’s picture

Status: Needs review » Needs work

Thanks for the update Neil.