Sha256: 2d894593b10cbccc4cf0160d7011c3bb29c2d4d30b9a0a1bb1900d8ac3f5135b

Contents?: true

Size: 326 Bytes

Versions: 6

Compression:

Stored size: 326 Bytes

Contents

Factory.define :creditcard_payment do |f|
  f.association :creditcard
  f.creditcard_txns { [Factory(:creditcard_txn, :txn_type => CreditcardTxn::TxnType::AUTHORIZE)] }
  f.association :order
end

Factory.define :creditcard_txn do |f|
  f.amount 45.75
  f.response_code 12345
  f.txn_type CreditcardTxn::TxnType::AUTHORIZE
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
spree-enriquez-0.9.4 test/factories/creditcard_payment_factory.rb
spree-0.9.4 test/factories/creditcard_payment_factory.rb
spree-0.9.3 test/factories/creditcard_payment_factory.rb
spree-0.9.2 test/factories/creditcard_payment_factory.rb
spree-0.9.1 test/factories/creditcard_payment_factory.rb
spree-0.9.0 test/factories/creditcard_payment_factory.rb