Class: TestCard

Inherits:
Spree::CreditCard show all
Defined in:
lib/spree/testing_support/factories/credit_card_factory.rb

Overview

allows credit card info to be saved to the database which is needed for factories to work properly

Constant Summary

Constants inherited from Spree::CreditCard

Spree::CreditCard::CARD_TYPES

Instance Attribute Summary

Attributes inherited from Spree::CreditCard

#number, #verification_value

Instance Method Summary collapse

Methods inherited from Spree::CreditCard

#actions, #can_capture?, #can_credit?, #can_void?, #cc_type=, #display_number, #expiry=, #has_payment_profile?, #name, #name?, #set_last_digits, #to_active_merchant, #try_type_from_number, #verification_value?

Instance Method Details

#remove_readonly_attributes(attributes) ⇒ Object



3
# File 'lib/spree/testing_support/factories/credit_card_factory.rb', line 3

def remove_readonly_attributes(attributes) attributes; end