lib/active_merchant/billing/credit_card.rb in activemerchant-1.15.0 vs lib/active_merchant/billing/credit_card.rb in activemerchant-1.16.0
- old
+ new
@@ -78,9 +78,15 @@
def name
[@first_name, @last_name].compact.join(' ')
end
+ def name=(full_name)
+ names = full_name.split
+ self.last_name = names.pop
+ self.first_name = names.join(" ")
+ end
+
def verification_value?
!@verification_value.blank?
end
# Show the card number, with all but last 4 numbers replace with "X". (XXXX-XXXX-XXXX-4338)