Sha256: affce21112ff92a2ce1afdd1ec3b4acc86bf7b5b3a62bd167295136e664a40fe

Contents?: true

Size: 711 Bytes

Versions: 4

Compression:

Stored size: 711 Bytes

Contents

FactoryGirl.define do
  factory :check_payment_method, class: Spree::PaymentMethod::Check do
    name 'Check'
  end

  factory :credit_card_payment_method, class: Spree::Gateway::Bogus do
    name 'Credit Card'
  end

  # authorize.net was moved to spree_gateway.
  # Leaving this factory in place with bogus in case anyone is using it.
  factory :simple_credit_card_payment_method, class: Spree::Gateway::BogusSimple do
    name 'Credit Card'
  end

  factory :store_credit_payment_method, class: Spree::PaymentMethod::StoreCredit do
    type          'Spree::PaymentMethod::StoreCredit'
    name          'Store Credit'
    description   'Store Credit'
    active        true
    auto_capture  true
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_core-3.4.1 lib/spree/testing_support/factories/payment_method_factory.rb
spree_core-3.4.0 lib/spree/testing_support/factories/payment_method_factory.rb
spree_core-3.4.0.rc2 lib/spree/testing_support/factories/payment_method_factory.rb
spree_core-3.4.0.rc1 lib/spree/testing_support/factories/payment_method_factory.rb