Sha256: 091ee0e416bff88dbca867a94f36aefcc277324299fe9a9f0e9f8f878f62e9f8

Contents?: true

Size: 1.02 KB

Versions: 71

Compression:

Stored size: 1.02 KB

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :payment_method, aliases: [:credit_card_payment_method], class: 'Spree::PaymentMethod::BogusCreditCard' do
    name { 'Credit Card' }
    available_to_admin { true }
    available_to_users { true }
  end

  factory :check_payment_method, class: 'Spree::PaymentMethod::Check' do
    name { 'Check' }
    available_to_admin { true }
    available_to_users { true }
  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::PaymentMethod::SimpleBogusCreditCard' do
    name { 'Credit Card' }
    available_to_admin { true }
    available_to_users { true }
  end

  factory :store_credit_payment_method, class: 'Spree::PaymentMethod::StoreCredit' do
    name          { "Store Credit" }
    description   { "Store Credit" }
    active        { true }
    available_to_admin { false }
    available_to_users { false }
    auto_capture { true }
  end
end

Version data entries

71 entries across 71 versions & 2 rubygems

Version Path
solidus_core-4.4.1 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.4.0 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.3.4 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.2.4 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.1.5 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.3.3 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.3.2 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.1.4 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.3.1 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.3.0 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.2.3 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.1.3 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.0.4 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.0.3 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.1.2 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.2.2 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.2.1 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.2.0 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.1.1 lib/spree/testing_support/factories/payment_method_factory.rb
solidus_core-4.0.2 lib/spree/testing_support/factories/payment_method_factory.rb