Shopify/active_merchant — Issue #270: firstname and lastname seem to be required in credit_card.rb
Author: vra5107
Created: 2012-02-13 03:22:54+00:00
State: open

Hi

I want to ask for only full name on my billing page just like Amazon does. But credit_card.rb requires firstname and lastname. credit_card.rb seems to put the first_name and last_name together to get full name anyway. Wouldn't it be nice to make first_name and last_name optional and make name necessary?

I have name field on the UI which I split and populate credit_card.rb which inturn combines them into name again.

def name
[@first_name, @last_name].compact.join(' ')
end