Class: Pay::FakeProcessor::Merchant

Inherits:
Merchant show all
Defined in:
app/models/pay/fake_processor/merchant.rb

Instance Method Summary collapse

Methods inherited from Merchant

#onboarding_complete?

Instance Method Details



10
11
12
# File 'app/models/pay/fake_processor/merchant.rb', line 10

def (refresh_url:, return_url:, type: "account_onboarding", **options)
  Struct.new(:url).new("/fake_processor/account_link")
end

#create_account(**options) ⇒ Object



4
5
6
7
8
# File 'app/models/pay/fake_processor/merchant.rb', line 4

def (**options)
   = Struct.new(:id).new("fake_account_id")
  update(processor_id: .id)
  
end


14
15
16
# File 'app/models/pay/fake_processor/merchant.rb', line 14

def (**options)
  Struct.new(:url).new("/fake_processor/login_link")
end