Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Payment
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Feb 2011 at 16:18 UTC
Updated:
26 Feb 2011 at 06:31 UTC
Jump to comment: Most recent file
Comments
Comment #1
recidive commentedI'm not sure if this is plausible to be in core, but I think it makes sense.
+ 'dc' => t('Diner\'s Club'),In the line above you should use double quotes to avoid the need for escaping the single quote in "Diner's Club".
Comment #2
ikos commentedRevised patch version taking into account #1.
This is a small change really and will avoid people having to hack a core commerce module just to add different card types.
Comment #3
recidive commentedActually you don't need to hack a core commerce module. You can form alter commerce_payment_credit_card_form form and add your options to $form['credit_card']['type']['#options'].
But since there's a way for the payment modules to tell which credit cards they accept, it sounds ok having those other cards on the list as a Developer Experience improvement.
Comment #4
rszrama commentedCommitted, thanks guys.